Re: [PATCH DRAFT 1/4] : tracefs: port to kernfs

From: kernel test robot
Date: Thu Feb 01 2024 - 02:02:08 EST


Hi Christian,

kernel test robot noticed the following build warnings:

[auto build test WARNING on 41bccc98fb7931d63d03f326a746ac4d429c1dd3]

url: https://github.com/intel-lab-lkp/linux/commits/Christian-Brauner/tracefs-port-to-kernfs/20240131-214120
base: 41bccc98fb7931d63d03f326a746ac4d429c1dd3
patch link: https://lore.kernel.org/r/20240131-tracefs-kernfs-v1-1-f20e2e9a8d61%40kernel.org
patch subject: [PATCH DRAFT 1/4] : tracefs: port to kernfs
config: i386-randconfig-061-20240201 (https://download.01.org/0day-ci/archive/20240201/202402011431.c6K3rKZS-lkp@xxxxxxxxx/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240201/202402011431.c6K3rKZS-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/202402011431.c6K3rKZS-lkp@xxxxxxxxx/

sparse warnings: (new ones prefixed by >>)
>> fs/tracefs/inode.c:88:27: sparse: sparse: symbol 'global_opts' was not declared. Should it be static?

vim +/global_opts +88 fs/tracefs/inode.c

87
> 88 struct tracefs_mount_opts global_opts = {
89 .mode = TRACEFS_DEFAULT_MODE,
90 .uid = GLOBAL_ROOT_UID,
91 .gid = GLOBAL_ROOT_GID,
92 .opts = 0,
93 };
94

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