Re: [net-next PATCH 5/9] octeontx2-af: Add packet path between representor and VF

From: Dan Carpenter
Date: Wed Apr 17 2024 - 14:09:01 EST


Hi Geetha,

kernel test robot noticed the following build warnings:

url: https://github.com/intel-lab-lkp/linux/commits/Geetha-sowjanya/octeontx2-pf-Refactoring-RVU-driver/20240416-131052
base: net-next/main
patch link: https://lore.kernel.org/r/20240416050616.6056-6-gakula%40marvell.com
patch subject: [net-next PATCH 5/9] octeontx2-af: Add packet path between representor and VF
config: alpha-randconfig-r081-20240417 (https://download.01.org/0day-ci/archive/20240417/202404172319.ys4PQfP0-lkp@xxxxxxxxx/config)
compiler: alpha-linux-gcc (GCC) 13.2.0

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Reported-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
| Closes: https://lore.kernel.org/r/202404172319.ys4PQfP0-lkp@xxxxxxxxx/

smatch warnings:
drivers/net/ethernet/marvell/octeontx2/af/rvu_rep.c:23 rvu_rep_get_vlan_id() warn: signedness bug returning '(-19)'

vim +23 drivers/net/ethernet/marvell/octeontx2/af/rvu_rep.c

5c25d7a685d906 Geetha sowjanya 2024-04-16 16 static u16 rvu_rep_get_vlan_id(struct rvu *rvu, u16 pcifunc)
^^^
u16 type

5c25d7a685d906 Geetha sowjanya 2024-04-16 17 {
5c25d7a685d906 Geetha sowjanya 2024-04-16 18 int id;
5c25d7a685d906 Geetha sowjanya 2024-04-16 19
5c25d7a685d906 Geetha sowjanya 2024-04-16 20 for (id = 0; id < rvu->rep_cnt; id++)
5c25d7a685d906 Geetha sowjanya 2024-04-16 21 if (rvu->rep2pfvf_map[id] == pcifunc)
5c25d7a685d906 Geetha sowjanya 2024-04-16 22 return id;
5c25d7a685d906 Geetha sowjanya 2024-04-16 @23 return -ENODEV;
^^^^^^^^^^^^^^

5c25d7a685d906 Geetha sowjanya 2024-04-16 24 }

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki