]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
i40iw: fix build warning in i40iw_manage_apbvt()
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Jun 2023 14:58:27 +0000 (16:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jun 2023 08:35:24 +0000 (10:35 +0200)
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>
drivers/infiniband/hw/i40iw/i40iw.h

index 8cabd293fc21545455b22e1cbf4a8302ec44fe12..8cd4fc71ee0778c33ffcab85b2e36d4fa4a74516 100644 (file)
@@ -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);