Re: [PATCH v1] net: dsa: mv88e6xxx: Add FID map cache

From: kernel test robot
Date: Thu Jun 20 2024 - 10:41:30 EST


Hi Aryan,

kernel test robot noticed the following build warnings:

[auto build test WARNING on net-next/main]
[also build test WARNING on net/main linus/master v6.10-rc4 next-20240619]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/Aryan-Srivastava/net-dsa-mv88e6xxx-Add-FID-map-cache/20240620-083100
base: net-next/main
patch link: https://lore.kernel.org/r/20240620002826.213013-1-aryan.srivastava%40alliedtelesis.co.nz
patch subject: [PATCH v1] net: dsa: mv88e6xxx: Add FID map cache
config: arm-randconfig-003-20240620 (https://download.01.org/0day-ci/archive/20240620/202406202033.cdjd66Gh-lkp@xxxxxxxxx/config)
compiler: arm-linux-gnueabi-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240620/202406202033.cdjd66Gh-lkp@xxxxxxxxx/reproduce)

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>
| Closes: https://lore.kernel.org/oe-kbuild-all/202406202033.cdjd66Gh-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

drivers/net/dsa/mv88e6xxx/chip.c: In function 'mv88e6xxx_atu_new':
>> drivers/net/dsa/mv88e6xxx/chip.c:1960:13: warning: unused variable 'err' [-Wunused-variable]
1960 | int err;
| ^~~


vim +/err +1960 drivers/net/dsa/mv88e6xxx/chip.c

1957
1958 static int mv88e6xxx_atu_new(struct mv88e6xxx_chip *chip, u16 *fid)
1959 {
> 1960 int err;
1961
1962 *fid = find_first_zero_bit(chip->fid_bitmap, MV88E6XXX_N_FID);
1963 if (unlikely(*fid >= mv88e6xxx_num_databases(chip)))
1964 return -ENOSPC;
1965
1966 /* Clear the database */
1967 return mv88e6xxx_g1_atu_flush(chip, *fid, true);
1968 }
1969

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