Re: [PATCH 1/1] exfat: Add support for FS_IOC_{GET,SET}FSLABEL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Ethan,

kernel test robot noticed the following build warnings:

[auto build test WARNING on 37816488247ddddbc3de113c78c83572274b1e2e]

url:    https://github.com/intel-lab-lkp/linux/commits/Ethan-Ferguson/exfat-Add-support-for-FS_IOC_-GET-SET-FSLABEL/20250816-011428
base:   37816488247ddddbc3de113c78c83572274b1e2e
patch link:    https://lore.kernel.org/r/20250815171056.103751-2-ethan.ferguson%40zetier.com
patch subject: [PATCH 1/1] exfat: Add support for FS_IOC_{GET,SET}FSLABEL
config: nios2-randconfig-r121-20250816 (https://download.01.org/0day-ci/archive/20250816/202508162026.aFXpZAKm-lkp@xxxxxxxxx/config)
compiler: nios2-linux-gcc (GCC) 11.5.0
reproduce: (https://download.01.org/0day-ci/archive/20250816/202508162026.aFXpZAKm-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/202508162026.aFXpZAKm-lkp@xxxxxxxxx/

sparse warnings: (new ones prefixed by >>)
>> fs/exfat/super.c:656:28: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short const [usertype] *ucs1 @@     got restricted __le16 * @@
   fs/exfat/super.c:656:28: sparse:     expected unsigned short const [usertype] *ucs1
   fs/exfat/super.c:656:28: sparse:     got restricted __le16 *

vim +656 fs/exfat/super.c

   639	
   640	int exfat_write_volume_label(struct super_block *sb)
   641	{
   642		int ret;
   643		struct exfat_sb_info *sbi = EXFAT_SB(sb);
   644		struct buffer_head *bh;
   645		struct exfat_dentry *ep;
   646	
   647		ret = exfat_get_volume_label_ptrs(sb, &bh, &ep);
   648		if (ret < 0)
   649			goto cleanup;
   650	
   651		mutex_lock(&sbi->s_lock);
   652		memcpy(ep->dentry.volume_label.volume_label, sbi->volume_label,
   653					sizeof(sbi->volume_label));
   654	
   655		ep->dentry.volume_label.char_count =
 > 656			UniStrnlen(ep->dentry.volume_label.volume_label,
   657					EXFAT_VOLUME_LABEL_LEN);
   658		mutex_unlock(&sbi->s_lock);
   659	
   660	cleanup:
   661		if (bh) {
   662			exfat_update_bh(bh, true);
   663			brelse(bh);
   664		}
   665	
   666		return ret;
   667	}
   668	

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




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux