summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-06-09 16:58:27 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-06-14 10:35:24 +0200
commitd1e5e69dc90c5c43f6fcc0f780baca100e972701 (patch)
tree316ef3dfc47f1a7ba6c9d2946b57157fc88d5ab4
parent1914956342c8cf52a377aecc4944e63f9229cb9b (diff)
downloadlinux-stable-d1e5e69dc90c5c43f6fcc0f780baca100e972701.tar.gz
linux-stable-d1e5e69dc90c5c43f6fcc0f780baca100e972701.tar.bz2
linux-stable-d1e5e69dc90c5c43f6fcc0f780baca100e972701.zip
i40iw: fix build warning in i40iw_manage_apbvt()
Not upstream as this function is no longer around anymore. The function i40iw_manage_apbvt() has the wrong prototype match from the .h file to the .c declaration, so fix it up, otherwise gcc-13 complains (rightfully) that the type is incorrect. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/infiniband/hw/i40iw/i40iw.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/i40iw/i40iw.h b/drivers/infiniband/hw/i40iw/i40iw.h
index 8cabd293fc21..8cd4fc71ee07 100644
--- a/drivers/infiniband/hw/i40iw/i40iw.h
+++ b/drivers/infiniband/hw/i40iw/i40iw.h
@@ -414,9 +414,8 @@ void i40iw_manage_arp_cache(struct i40iw_device *iwdev,
bool ipv4,
u32 action);
-int i40iw_manage_apbvt(struct i40iw_device *iwdev,
- u16 accel_local_port,
- bool add_port);
+enum i40iw_status_code i40iw_manage_apbvt(struct i40iw_device *iwdev,
+ u16 accel_local_port, bool add_port);
struct i40iw_cqp_request *i40iw_get_cqp_request(struct i40iw_cqp *cqp, bool wait);
void i40iw_free_cqp_request(struct i40iw_cqp *cqp, struct i40iw_cqp_request *cqp_request);