Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: hisilicon - remove unused and non-public APIs for qm and sec

- sec_register_to_crypto() and sec_unregister_from_crypto()
have been removed, the function declarations have not been
removed. Remove them.
- hisi_qm_start_qp and hisi_qm_stop_qp are called internally by the
QM. Therefore, the EXPORT_SYMBOL_GPL declaration of these
non-public interfaces is deleted.

Signed-off-by: Chenghai Huang <huangchenghai2@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Chenghai Huang and committed by
Herbert Xu
06c42142 d2b5e8d3

+4 -8
+4 -4
drivers/crypto/hisilicon/qm.c
··· 472 472 473 473 static void qm_irqs_unregister(struct hisi_qm *qm); 474 474 static int qm_reset_device(struct hisi_qm *qm); 475 + static void hisi_qm_stop_qp(struct hisi_qp *qp); 476 + 475 477 int hisi_qm_q_num_set(const char *val, const struct kernel_param *kp, 476 478 unsigned int device) 477 479 { ··· 2264 2262 * After this function, qp can receive request from user. Return 0 if 2265 2263 * successful, negative error code if failed. 2266 2264 */ 2267 - int hisi_qm_start_qp(struct hisi_qp *qp, unsigned long arg) 2265 + static int hisi_qm_start_qp(struct hisi_qp *qp, unsigned long arg) 2268 2266 { 2269 2267 struct hisi_qm *qm = qp->qm; 2270 2268 int ret; ··· 2275 2273 2276 2274 return ret; 2277 2275 } 2278 - EXPORT_SYMBOL_GPL(hisi_qm_start_qp); 2279 2276 2280 2277 /** 2281 2278 * qp_stop_fail_cb() - call request cb. ··· 2419 2418 * 2420 2419 * This function is reverse of hisi_qm_start_qp. 2421 2420 */ 2422 - void hisi_qm_stop_qp(struct hisi_qp *qp) 2421 + static void hisi_qm_stop_qp(struct hisi_qp *qp) 2423 2422 { 2424 2423 down_write(&qp->qm->qps_lock); 2425 2424 qm_stop_qp_nolock(qp); 2426 2425 up_write(&qp->qm->qps_lock); 2427 2426 } 2428 - EXPORT_SYMBOL_GPL(hisi_qm_stop_qp); 2429 2427 2430 2428 /** 2431 2429 * hisi_qp_send() - Queue up a task in the hardware queue.
-2
drivers/crypto/hisilicon/sec2/sec.h
··· 285 285 286 286 void sec_destroy_qps(struct hisi_qp **qps, int qp_num); 287 287 struct hisi_qp **sec_create_qps(void); 288 - int sec_register_to_crypto(struct hisi_qm *qm); 289 - void sec_unregister_from_crypto(struct hisi_qm *qm); 290 288 u64 sec_get_alg_bitmap(struct hisi_qm *qm, u32 high, u32 low); 291 289 #endif
-2
include/linux/hisi_acc_qm.h
··· 558 558 void hisi_qm_uninit(struct hisi_qm *qm); 559 559 int hisi_qm_start(struct hisi_qm *qm); 560 560 int hisi_qm_stop(struct hisi_qm *qm, enum qm_stop_reason r); 561 - int hisi_qm_start_qp(struct hisi_qp *qp, unsigned long arg); 562 - void hisi_qm_stop_qp(struct hisi_qp *qp); 563 561 int hisi_qp_send(struct hisi_qp *qp, const void *msg); 564 562 void hisi_qm_debug_init(struct hisi_qm *qm); 565 563 void hisi_qm_debug_regs_clear(struct hisi_qm *qm);