Loading
RNPVF: NET: Fix wanrings
mucse inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I9DTS3 CVE: NA -------------------------------- LKP reports below warning when building for arm64 with "W=1 build" ...skipping... >> drivers/net/ethernet/mucse/rnpvf/vf.c:256:6: warning: variable 'number_of_queues' set but not used [-Wunused-but-set-variable] 256 | u32 number_of_queues; | ^ >> drivers/net/ethernet/mucse/rnpvf/vf.c:486:5: warning: no previous prototype for function 'rnpvf_addr_list_itr' [-Wmissing-prototypes] 486 | u8 *rnpvf_addr_list_itr(struct rnpvf_hw __maybe_unused *hw, | ^ drivers/net/ethernet/mucse/rnpvf/vf.c:486:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 486 | u8 *rnpvf_addr_list_itr(struct rnpvf_hw __maybe_unused *hw, | ^ | static ...skipping... Reported-by:kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202403290654.z6VnxcxA-lkp@intel.com/ Signed-off-by:
Dong Yibo <dong100@mucse.com>