Re: [PATCH] iouring:added boundary value check for io_uring_group systl

From: kernel test robot
Date: Sat Jan 20 2024 - 07:14:57 EST


Hi Subramanya,

kernel test robot noticed the following build warnings:

[auto build test WARNING on akpm-mm/mm-everything]
[also build test WARNING on linus/master v6.7 next-20240119]
[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/Subramanya-Swamy/iouring-added-boundary-value-check-for-io_uring_group-systl/20240115-205112
base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
patch link: https://lore.kernel.org/r/20240115124925.1735-1-subramanya.swamy.linux%40gmail.com
patch subject: [PATCH] iouring:added boundary value check for io_uring_group systl
config: i386-buildonly-randconfig-002-20240116 (https://download.01.org/0day-ci/archive/20240120/202401202013.dEvDNaAX-lkp@xxxxxxxxx/config)
compiler: ClangBuiltLinux clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240120/202401202013.dEvDNaAX-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/202401202013.dEvDNaAX-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> io_uring/io_uring.c:157:21: warning: unused variable 'min_gid' [-Wunused-variable]
157 | static unsigned int min_gid;
| ^~~~~~~
>> io_uring/io_uring.c:158:21: warning: unused variable 'max_gid' [-Wunused-variable]
158 | static unsigned int max_gid = 4294967294; /*4294967294 is the max guid*/
| ^~~~~~~
2 warnings generated.


vim +/min_gid +157 io_uring/io_uring.c

154
155 static int __read_mostly sysctl_io_uring_disabled;
156 static unsigned int __read_mostly sysctl_io_uring_group;
> 157 static unsigned int min_gid;
> 158 static unsigned int max_gid = 4294967294; /*4294967294 is the max guid*/
159

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