From: kernel test robot <lkp@intel.com>
To: Ethan Ferguson <ethan.ferguson@zetier.com>
Cc: oe-kbuild-all@lists.linux.dev, 0day robot <lkp@intel.com>
Subject: fs/fat/dir.c:121:13: warning: 'bh' is used uninitialized
Date: Wed, 11 Feb 2026 05:01:03 +0100 [thread overview]
Message-ID: <202602110537.1DPbicra-lkp@intel.com> (raw)
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
reply other threads:[~2026-02-11 4:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202602110537.1DPbicra-lkp@intel.com \
--to=lkp@intel.com \
--cc=ethan.ferguson@zetier.com \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.