summaryrefslogtreecommitdiff
path: root/drivers/common
diff options
context:
space:
mode:
authorKeith Wiles <keith.wiles@intel.com>2018-10-05 09:48:25 -0500
committerThomas Monjalon <thomas@monjalon.net>2018-10-25 02:11:23 +0200
commit81bede55e3f5b821fc68986e42f188f8d492f050 (patch)
treea9d067ac01e25de12ca75f3b99ee8f1617a946d0 /drivers/common
parentdea302eb4e79469477c649db18e0e622945eb0fd (diff)
downloaddpdk-next-eventdev-81bede55e3f5b821fc68986e42f188f8d492f050.zip
dpdk-next-eventdev-81bede55e3f5b821fc68986e42f188f8d492f050.tar.gz
dpdk-next-eventdev-81bede55e3f5b821fc68986e42f188f8d492f050.tar.xz
eal: add macro for attribute weak
eal: add shorthand __rte_weak macro qat: update code to use __rte_weak macro avf: update code to use __rte_weak macro fm10k: update code to use __rte_weak macro i40e: update code to use __rte_weak macro ixgbe: update code to use __rte_weak macro mlx5: update code to use __rte_weak macro virtio: update code to use __rte_weak macro acl: update code to use __rte_weak macro bpf: update code to use __rte_weak macro Signed-off-by: Keith Wiles <keith.wiles@intel.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
Diffstat (limited to 'drivers/common')
-rw-r--r--drivers/common/qat/qat_device.c12
-rw-r--r--drivers/common/qat/qat_qp.c2
2 files changed, 7 insertions, 7 deletions
diff --git a/drivers/common/qat/qat_device.c b/drivers/common/qat/qat_device.c
index 8d4df92..4ff8b88 100644
--- a/drivers/common/qat/qat_device.c
+++ b/drivers/common/qat/qat_device.c
@@ -259,37 +259,37 @@ static struct rte_pci_driver rte_qat_pmd = {
.remove = qat_pci_remove
};
-__attribute__((weak)) int
+__rte_weak int
qat_sym_dev_create(struct qat_pci_device *qat_pci_dev __rte_unused)
{
return 0;
}
-__attribute__((weak)) int
+__rte_weak int
qat_asym_dev_create(struct qat_pci_device *qat_pci_dev __rte_unused)
{
return 0;
}
-__attribute__((weak)) int
+__rte_weak int
qat_sym_dev_destroy(struct qat_pci_device *qat_pci_dev __rte_unused)
{
return 0;
}
-__attribute__((weak)) int
+__rte_weak int
qat_asym_dev_destroy(struct qat_pci_device *qat_pci_dev __rte_unused)
{
return 0;
}
-__attribute__((weak)) int
+__rte_weak int
qat_comp_dev_create(struct qat_pci_device *qat_pci_dev __rte_unused)
{
return 0;
}
-__attribute__((weak)) int
+__rte_weak int
qat_comp_dev_destroy(struct qat_pci_device *qat_pci_dev __rte_unused)
{
return 0;
diff --git a/drivers/common/qat/qat_qp.c b/drivers/common/qat/qat_qp.c
index 1d83aac..ec7f2b3 100644
--- a/drivers/common/qat/qat_qp.c
+++ b/drivers/common/qat/qat_qp.c
@@ -673,7 +673,7 @@ qat_dequeue_op_burst(void *qp, void **ops, uint16_t nb_ops)
return resp_counter;
}
-__attribute__((weak)) int
+__rte_weak int
qat_comp_process_response(void **op __rte_unused, uint8_t *resp __rte_unused)
{
return 0;