mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
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>
This commit is contained in:
parent
d2b5e8d319
commit
06c42142cf
|
|
@ -472,6 +472,8 @@ static struct qm_typical_qos_table shaper_cbs_s[] = {
|
|||
|
||||
static void qm_irqs_unregister(struct hisi_qm *qm);
|
||||
static int qm_reset_device(struct hisi_qm *qm);
|
||||
static void hisi_qm_stop_qp(struct hisi_qp *qp);
|
||||
|
||||
int hisi_qm_q_num_set(const char *val, const struct kernel_param *kp,
|
||||
unsigned int device)
|
||||
{
|
||||
|
|
@ -2262,7 +2264,7 @@ static int qm_start_qp_nolock(struct hisi_qp *qp, unsigned long arg)
|
|||
* After this function, qp can receive request from user. Return 0 if
|
||||
* successful, negative error code if failed.
|
||||
*/
|
||||
int hisi_qm_start_qp(struct hisi_qp *qp, unsigned long arg)
|
||||
static int hisi_qm_start_qp(struct hisi_qp *qp, unsigned long arg)
|
||||
{
|
||||
struct hisi_qm *qm = qp->qm;
|
||||
int ret;
|
||||
|
|
@ -2273,7 +2275,6 @@ int hisi_qm_start_qp(struct hisi_qp *qp, unsigned long arg)
|
|||
|
||||
return ret;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(hisi_qm_start_qp);
|
||||
|
||||
/**
|
||||
* qp_stop_fail_cb() - call request cb.
|
||||
|
|
@ -2418,13 +2419,12 @@ static void qm_stop_qp_nolock(struct hisi_qp *qp)
|
|||
*
|
||||
* This function is reverse of hisi_qm_start_qp.
|
||||
*/
|
||||
void hisi_qm_stop_qp(struct hisi_qp *qp)
|
||||
static void hisi_qm_stop_qp(struct hisi_qp *qp)
|
||||
{
|
||||
down_write(&qp->qm->qps_lock);
|
||||
qm_stop_qp_nolock(qp);
|
||||
up_write(&qp->qm->qps_lock);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(hisi_qm_stop_qp);
|
||||
|
||||
/**
|
||||
* hisi_qp_send() - Queue up a task in the hardware queue.
|
||||
|
|
|
|||
|
|
@ -285,7 +285,5 @@ enum sec_cap_table_type {
|
|||
|
||||
void sec_destroy_qps(struct hisi_qp **qps, int qp_num);
|
||||
struct hisi_qp **sec_create_qps(void);
|
||||
int sec_register_to_crypto(struct hisi_qm *qm);
|
||||
void sec_unregister_from_crypto(struct hisi_qm *qm);
|
||||
u64 sec_get_alg_bitmap(struct hisi_qm *qm, u32 high, u32 low);
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -558,8 +558,6 @@ int hisi_qm_init(struct hisi_qm *qm);
|
|||
void hisi_qm_uninit(struct hisi_qm *qm);
|
||||
int hisi_qm_start(struct hisi_qm *qm);
|
||||
int hisi_qm_stop(struct hisi_qm *qm, enum qm_stop_reason r);
|
||||
int hisi_qm_start_qp(struct hisi_qp *qp, unsigned long arg);
|
||||
void hisi_qm_stop_qp(struct hisi_qp *qp);
|
||||
int hisi_qp_send(struct hisi_qp *qp, const void *msg);
|
||||
void hisi_qm_debug_init(struct hisi_qm *qm);
|
||||
void hisi_qm_debug_regs_clear(struct hisi_qm *qm);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user