All of lore.kernel.org
 help / color / mirror / Atom feed
* fs/fat/dir.c:121:13: warning: 'bh' is used uninitialized
@ 2026-02-11  4:01 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-02-11  4:01 UTC (permalink / raw)
  To: Ethan Ferguson; +Cc: oe-kbuild-all, 0day robot

tree:   https://github.com/intel-lab-lkp/linux/commits/Ethan-Ferguson/fat-Add-FS_IOC_GETFSLABEL-ioctl/20260211-062606
head:   70cd4ab45a99c9830702281d9b29fcf07a4dcff8
commit: 70cd4ab45a99c9830702281d9b29fcf07a4dcff8 fat: Add FS_IOC_SETFSLABEL ioctl
date:   6 hours ago
config: x86_64-rhel-9.4 (https://download.01.org/0day-ci/archive/20260211/202602110537.1DPbicra-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260211/202602110537.1DPbicra-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202602110537.1DPbicra-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In function 'fat_get_entry',
       inlined from 'fat_rename_volume_label_dentry' at fs/fat/dir.c:1435:7:
>> fs/fat/dir.c:121:13: warning: 'bh' is used uninitialized [-Wuninitialized]
     121 |         if (*bh && *de &&
         |             ^~~
   fs/fat/dir.c: In function 'fat_rename_volume_label_dentry':
   fs/fat/dir.c:1430:29: note: 'bh' declared here
    1430 |         struct buffer_head *bh;
         |                             ^~


vim +/bh +121 fs/fat/dir.c

^1da177e4c3f415 Linus Torvalds     2005-04-16  115  
^1da177e4c3f415 Linus Torvalds     2005-04-16  116  static inline int fat_get_entry(struct inode *dir, loff_t *pos,
^1da177e4c3f415 Linus Torvalds     2005-04-16  117  				struct buffer_head **bh,
^1da177e4c3f415 Linus Torvalds     2005-04-16  118  				struct msdos_dir_entry **de)
^1da177e4c3f415 Linus Torvalds     2005-04-16  119  {
^1da177e4c3f415 Linus Torvalds     2005-04-16  120  	/* Fast stuff first */
^1da177e4c3f415 Linus Torvalds     2005-04-16 @121  	if (*bh && *de &&
f08b4988f229fb4 Cruz Julian Bishop 2012-10-04  122  	   (*de - (struct msdos_dir_entry *)(*bh)->b_data) <
f08b4988f229fb4 Cruz Julian Bishop 2012-10-04  123  				MSDOS_SB(dir->i_sb)->dir_per_block - 1) {
^1da177e4c3f415 Linus Torvalds     2005-04-16  124  		*pos += sizeof(struct msdos_dir_entry);
^1da177e4c3f415 Linus Torvalds     2005-04-16  125  		(*de)++;
^1da177e4c3f415 Linus Torvalds     2005-04-16  126  		return 0;
^1da177e4c3f415 Linus Torvalds     2005-04-16  127  	}
^1da177e4c3f415 Linus Torvalds     2005-04-16  128  	return fat__get_entry(dir, pos, bh, de);
^1da177e4c3f415 Linus Torvalds     2005-04-16  129  }
^1da177e4c3f415 Linus Torvalds     2005-04-16  130  

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-02-11  4:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-11  4:01 fs/fat/dir.c:121:13: warning: 'bh' is used uninitialized kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.