tree: https://github.com/ammarfaizi2/linux-block brauner/linux/fs.xattr.simple.rework.rbtree head: b1999797db0738e60ae9730fcdd5ec6dd7604cd0 commit: b1999797db0738e60ae9730fcdd5ec6dd7604cd0 [1/1] xattr: use rbtree for simple_xattrs config: m68k-randconfig-r021-20221110 compiler: m68k-linux-gcc (GCC) 12.1.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/ammarfaizi2/linux-block/commit/b1999797db0738e60ae9730fcdd5ec6dd7604cd0 git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block brauner/linux/fs.xattr.simple.rework.rbtree git checkout b1999797db0738e60ae9730fcdd5ec6dd7604cd0 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=m68k SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All warnings (new ones prefixed by >>): fs/xattr.c: In function 'simple_xattr_add': >> fs/xattr.c:1325:25: warning: variable 'parent' set but not used [-Wunused-but-set-variable] 1325 | struct rb_node *parent = NULL, **rbp; | ^~~~~~ vim +/parent +1325 fs/xattr.c 1313 1314 /** 1315 * simple_xattr_add - add xattr objects 1316 * @xattrs: the header of the xattr object 1317 * @new_xattr: the xattr object to add 1318 * 1319 * Add an xattr object to @xattrs. This assumes no replacement or removal of 1320 * matching xattrs is wanted. 1321 */ 1322 void simple_xattr_add(struct simple_xattrs *xattrs, 1323 struct simple_xattr *new_xattr) 1324 { > 1325 struct rb_node *parent = NULL, **rbp; 1326 1327 write_seqlock(&xattrs->lock); 1328 rbp = &xattrs->rb_root.rb_node; 1329 while (*rbp) { 1330 struct simple_xattr *xattr; 1331 1332 parent = *rbp; 1333 xattr = rb_entry(*rbp, struct simple_xattr, rb_node); 1334 if (strcmp(xattr->name, new_xattr->name) < 0) 1335 rbp = &(*rbp)->rb_left; 1336 else if (strcmp(xattr->name, new_xattr->name) > 0) 1337 rbp = &(*rbp)->rb_right; 1338 else 1339 break; 1340 } 1341 rb_link_node_rcu(&new_xattr->rb_node, xattrs->rb_root.rb_node, 1342 &xattrs->rb_root.rb_node); 1343 rb_insert_color(&new_xattr->rb_node, &xattrs->rb_root); 1344 write_sequnlock(&xattrs->lock); 1345 } 1346 -- 0-DAY CI Kernel Test Service https://01.org/lkp