Re: [PATCH v2 2/2] fat: Add FS_IOC_SETFSLABEL ioctl
From: kernel test robot
Date: Wed Feb 18 2026 - 11:27:26 EST
Hi Ethan,
kernel test robot noticed the following build warnings:
[auto build test WARNING on 9f2693489ef8558240d9e80bfad103650daed0af]
url: https://github.com/intel-lab-lkp/linux/commits/Ethan-Ferguson/fat-Add-FS_IOC_GETFSLABEL-ioctl/20260218-071019
base: 9f2693489ef8558240d9e80bfad103650daed0af
patch link: https://lore.kernel.org/r/20260217230628.719475-3-ethan.ferguson%40zetier.com
patch subject: [PATCH v2 2/2] fat: Add FS_IOC_SETFSLABEL ioctl
config: hexagon-randconfig-r121-20260218 (https://download.01.org/0day-ci/archive/20260219/202602190010.tPRKu8kq-lkp@xxxxxxxxx/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project e86750b29fa0ff207cd43213d66dabe565417638)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260219/202602190010.tPRKu8kq-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/202602190010.tPRKu8kq-lkp@xxxxxxxxx/
sparse warnings: (new ones prefixed by >>)
>> fs/fat/dir.c:1439:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] size @@ got unsigned char [addressable] [assigned] [usertype] lcase @@
fs/fat/dir.c:1439:41: sparse: expected restricted __le32 [addressable] [assigned] [usertype] size
fs/fat/dir.c:1439:41: sparse: got unsigned char [addressable] [assigned] [usertype] lcase
>> fs/fat/dir.c:1449:48: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] ctime @@ got unsigned char [addressable] [assigned] [usertype] ctime_cs @@
fs/fat/dir.c:1449:48: sparse: expected restricted __le16 [addressable] [assigned] [usertype] ctime
fs/fat/dir.c:1449:48: sparse: got unsigned char [addressable] [assigned] [usertype] ctime_cs
vim +1439 fs/fat/dir.c
1426
1427 static int fat_create_volume_label_dentry(struct super_block *sb, char *vol_label)
1428 {
1429 struct msdos_sb_info *sbi = MSDOS_SB(sb);
1430 struct inode *root_inode = sb->s_root->d_inode;
1431 struct msdos_dir_entry de;
1432 struct fat_slot_info sinfo;
1433 struct timespec64 ts = current_time(root_inode);
1434 __le16 date, time;
1435 u8 time_cs;
1436
1437 memcpy(de.name, vol_label, MSDOS_NAME);
1438 de.attr = ATTR_VOLUME;
> 1439 de.starthi = de.start = de.size = de.lcase = 0;
1440
1441 fat_time_unix2fat(sbi, &ts, &time, &date, &time_cs);
1442 de.time = time;
1443 de.date = date;
1444 if (sbi->options.isvfat) {
1445 de.cdate = de.adate = date;
1446 de.ctime = time;
1447 de.ctime_cs = time_cs;
1448 } else
> 1449 de.cdate = de.adate = de.ctime = de.ctime_cs = 0;
1450
1451 return fat_add_entries(root_inode, &de, 1, &sinfo);
1452 }
1453
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki