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>
This commit is contained in:
@@ -20,16 +20,11 @@ enum i40e_memory_type {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* prototype for functions used for dynamic memory allocation */
|
/* prototype for functions used for dynamic memory allocation */
|
||||||
i40e_status i40e_allocate_dma_mem(struct i40e_hw *hw,
|
int i40e_allocate_dma_mem(struct i40e_hw *hw, struct i40e_dma_mem *mem,
|
||||||
struct i40e_dma_mem *mem,
|
enum i40e_memory_type type, u64 size, u32 alignment);
|
||||||
enum i40e_memory_type type,
|
int i40e_free_dma_mem(struct i40e_hw *hw, struct i40e_dma_mem *mem);
|
||||||
u64 size, u32 alignment);
|
int i40e_allocate_virt_mem(struct i40e_hw *hw, struct i40e_virt_mem *mem,
|
||||||
i40e_status i40e_free_dma_mem(struct i40e_hw *hw,
|
u32 size);
|
||||||
struct i40e_dma_mem *mem);
|
int i40e_free_virt_mem(struct i40e_hw *hw, struct i40e_virt_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);
|
|
||||||
|
|
||||||
#endif /* _I40E_ALLOC_H_ */
|
#endif /* _I40E_ALLOC_H_ */
|
||||||
|
|||||||
Reference in New Issue
Block a user