]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
5.4-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Jun 2023 15:16:26 +0000 (17:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Jun 2023 15:16:26 +0000 (17:16 +0200)
added patches:
i40e-fix-build-warnings-in-i40e_alloc.h.patch

queue-5.4/i40e-fix-build-warnings-in-i40e_alloc.h.patch [new file with mode: 0644]
queue-5.4/series

diff --git a/queue-5.4/i40e-fix-build-warnings-in-i40e_alloc.h.patch b/queue-5.4/i40e-fix-build-warnings-in-i40e_alloc.h.patch
new file mode 100644 (file)
index 0000000..1a3356a
--- /dev/null
@@ -0,0 +1,43 @@
+From foo@baz Fri Jun  9 05:10:11 PM CEST 2023
+Date: Fri, 09 Jun 2023 17:10:11 +0200
+To: Greg KH <gregkh@linuxfoundation.org>
+From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+Subject: i40e: fix build warnings in i40e_alloc.h
+
+Not upstream as it was fixed in a much larger api change in newer
+kernels.
+
+gcc-13 rightfully complains that enum is not the same as an int, so fix
+up the function prototypes in i40e_alloc.h to be correct, solving a
+bunch of build warnings.
+
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ drivers/net/ethernet/intel/i40e/i40e_alloc.h |   17 ++++++-----------
+ 1 file changed, 6 insertions(+), 11 deletions(-)
+
+--- a/drivers/net/ethernet/intel/i40e/i40e_alloc.h
++++ b/drivers/net/ethernet/intel/i40e/i40e_alloc.h
+@@ -20,16 +20,11 @@ enum i40e_memory_type {
+ };
+ /* prototype for functions used for dynamic memory allocation */
+-i40e_status i40e_allocate_dma_mem(struct i40e_hw *hw,
+-                                          struct i40e_dma_mem *mem,
+-                                          enum i40e_memory_type type,
+-                                          u64 size, u32 alignment);
+-i40e_status i40e_free_dma_mem(struct i40e_hw *hw,
+-                                      struct i40e_dma_mem *mem);
+-i40e_status i40e_allocate_virt_mem(struct i40e_hw *hw,
+-                                           struct i40e_virt_mem *mem,
+-                                           u32 size);
+-i40e_status i40e_free_virt_mem(struct i40e_hw *hw,
+-                                       struct i40e_virt_mem *mem);
++int i40e_allocate_dma_mem(struct i40e_hw *hw, struct i40e_dma_mem *mem,
++                        enum i40e_memory_type type, u64 size, u32 alignment);
++int i40e_free_dma_mem(struct i40e_hw *hw, struct i40e_dma_mem *mem);
++int i40e_allocate_virt_mem(struct i40e_hw *hw, struct i40e_virt_mem *mem,
++                         u32 size);
++int i40e_free_virt_mem(struct i40e_hw *hw, struct i40e_virt_mem *mem);
+ #endif /* _I40E_ALLOC_H_ */
index 88f66f87332e94b96d66abba3f274011a7d02d4e..5eb5b3047ec15d3a3ede556a602d2bd6d3ad9461 100644 (file)
@@ -1,3 +1,4 @@
 blk-iocost-avoid-64-bit-division-in-ioc_timer_fn.patch
 block-blk-iocost-gcc13-keep-large-values-in-a-new-enum.patch
 i40iw-fix-build-warning-in-i40iw_manage_apbvt.patch
+i40e-fix-build-warnings-in-i40e_alloc.h.patch