History

crypto: hisilicon/qm - set function with static

These functions 'hisi_qm_create_qp' and 'hisi_qm_set_vft' are not used outside qm.c, so they are marked as static.

Weili Qian committed 4 years ago

Commit fb06eb91 parent 0b000232 files · +2 −6Browse files

Unified · Split

2 files
  1. drivers/crypto/hisilicon/qm.c +2 −4
  2. include/linux/hisi_acc_qm.h +0 −2
drivers/crypto/hisilicon/qm.c+2−4
@@ -2835,7 +2835,7 @@ static struct hisi_qp *qm_create_qp_nolock(struct hisi_qm *qm, u8 alg_type) · 2834 unmodified lines
28352835 * return created qp, -EBUSY if all qps in qm allocated, -ENOMEM if allocating
28362836 * qp memory fails.
28372837 */
2838−struct hisi_qp *hisi_qm_create_qp(struct hisi_qm *qm, u8 alg_type)
2838+static struct hisi_qp *hisi_qm_create_qp(struct hisi_qm *qm, u8 alg_type)
28392839 {
28402840 struct hisi_qp *qp;
28412841 int ret;
@@ -2853,7 +2853,6 @@ struct hisi_qp *hisi_qm_create_qp(struct hisi_qm *qm, u8 alg_type) · 11 unmodified lines
28532853
28542854 return qp;
28552855 }
2856−EXPORT_SYMBOL_GPL(hisi_qm_create_qp);
28572856
28582857 /**
28592858 * hisi_qm_release_qp() - Release a qp back to its qm.
@@ -3738,7 +3737,7 @@ EXPORT_SYMBOL_GPL(hisi_qm_uninit); · 878 unmodified lines
37383737 *
37393738 * qm hw v1 does not support this interface.
37403739 */
3741−int hisi_qm_get_vft(struct hisi_qm *qm, u32 *base, u32 *number)
3740+static int hisi_qm_get_vft(struct hisi_qm *qm, u32 *base, u32 *number)
37423741 {
37433742 if (!base || !number)
37443743 return -EINVAL;
@@ -3750,7 +3749,6 @@ int hisi_qm_get_vft(struct hisi_qm *qm, u32 *base, u32 *number) · 5 unmodified lines
37503749
37513750 return qm->ops->get_vft(qm, base, number);
37523751 }
3753−EXPORT_SYMBOL_GPL(hisi_qm_get_vft);
37543752
37553753 /**
37563754 * hisi_qm_set_vft() - Set vft to a qm.
include/linux/hisi_acc_qm.h+0−2
@@ -445,13 +445,11 @@ int hisi_qm_init(struct hisi_qm *qm); · 444 unmodified lines
445445 void hisi_qm_uninit(struct hisi_qm *qm);
446446 int hisi_qm_start(struct hisi_qm *qm);
447447 int hisi_qm_stop(struct hisi_qm *qm, enum qm_stop_reason r);
448−struct hisi_qp *hisi_qm_create_qp(struct hisi_qm *qm, u8 alg_type);
449448 int hisi_qm_start_qp(struct hisi_qp *qp, unsigned long arg);
450449 int hisi_qm_stop_qp(struct hisi_qp *qp);
451450 void hisi_qm_release_qp(struct hisi_qp *qp);
452451 int hisi_qp_send(struct hisi_qp *qp, const void *msg);
453452 int hisi_qm_get_free_qp_num(struct hisi_qm *qm);
454−int hisi_qm_get_vft(struct hisi_qm *qm, u32 *base, u32 *number);
455453 void hisi_qm_debug_init(struct hisi_qm *qm);
456454 void hisi_qm_debug_regs_clear(struct hisi_qm *qm);
457455 int hisi_qm_sriov_enable(struct pci_dev *pdev, int max_vfs);