Loading
RNPVF: NET: Fix "'%d' directive output may be truncated" warnings
mucse inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I9HCET CVE: NA -------------------------------- LKP reports below erros when building for loongarch64 with "W=1 build" All warnings (new ones prefixed by >>): ---skip drivers/net/ethernet/mucse/rnpvf/rnpvf_main.c:2128:25: note: 'snprintf' output between 10 and 29 bytes into a destination of size 24 2128 | snprintf(q_vector->name, | ^~~~~~~~~~~~~~~~~~~~~~~~ 2129 | sizeof(q_vector->name) - 1, "%s-%s-%d-%d", | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2130 | netdev->name, "TxRx", i, q_vector->v_idx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ---skip Fixes: 6adab536 (drivers: initial support for rnpvf drivers) Reported-by:kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202404030557.mZnvUtOv-lkp@intel.com/ Signed-off-by:
Dong Yibo <dong100@mucse.com>