Hi Chao,
FYI, the error/warning still remains.
tree:
https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-stable.git
linux-4.19.y
head: 551162c9bf51fda41d2d5ff5e2c5f70a5800cd5f
commit: 2f7cc89b033f4d379139ec47a801a531f4f12f67 [359/596] f2fs: support
FS_IOC_{GET,SET}FSLABEL
config: alpha-allyesconfig (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.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
git checkout 2f7cc89b033f4d379139ec47a801a531f4f12f67
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
In file included from fs/f2fs/file.c:25:
fs/f2fs/f2fs.h: In function 'blkaddr_in_node':
fs/f2fs/f2fs.h:2280:30: warning: taking address of packed member of 'struct
f2fs_inode' may result in an unaligned pointer value [-Waddress-of-packed-member]
2280 | return RAW_IS_INODE(node) ? node->i.i_addr : node->dn.addr;
| ^~~~
fs/f2fs/f2fs.h:2280:47: warning: taking address of packed member of 'struct
direct_node' may result in an unaligned pointer value [-Waddress-of-packed-member]
2280 | return RAW_IS_INODE(node) ? node->i.i_addr : node->dn.addr;
| ^~~~
fs/f2fs/file.c: In function 'f2fs_get_volume_name':
> fs/f2fs/file.c:3176:40: warning: taking address of packed member
of 'struct f2fs_super_block' may result in an unaligned pointer value
[-Waddress-of-packed-member]
3176 | count =
utf16s_to_utf8s(sbi->raw_super->volume_name,
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~
fs/f2fs/file.c: In function 'f2fs_set_volume_name':
fs/f2fs/file.c:3212:18: warning: taking address of packed member of 'struct
f2fs_super_block' may result in an unaligned pointer value
[-Waddress-of-packed-member]
3212 | sbi->raw_super->volume_name,
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~
vim +3176 fs/f2fs/file.c
3162
3163 static int f2fs_get_volume_name(struct file *filp, unsigned long arg)
3164 {
3165 struct inode *inode = file_inode(filp);
3166 struct f2fs_sb_info *sbi = F2FS_I_SB(inode);
3167 char *vbuf;
3168 int count;
3169 int err = 0;
3170
3171 vbuf = f2fs_kzalloc(sbi, MAX_VOLUME_NAME, GFP_KERNEL);
3172 if (!vbuf)
3173 return -ENOMEM;
3174
3175 down_read(&sbi->sb_lock);
3176 count = utf16s_to_utf8s(sbi->raw_super->volume_name,
3177 ARRAY_SIZE(sbi->raw_super->volume_name),
3178 UTF16_LITTLE_ENDIAN, vbuf, MAX_VOLUME_NAME);
3179 up_read(&sbi->sb_lock);
3180
3181 if (copy_to_user((char __user *)arg, vbuf,
3182 min(FSLABEL_MAX, count)))
3183 err = -EFAULT;
3184
3185 kvfree(vbuf);
3186 return err;
3187 }
3188
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org