* [f2fs-stable:linux-4.19.y 359/663] fs/f2fs/file.c:3176:40: warning: taking address of packed member of 'struct f2fs_super_block' may result in an unaligned pointer value
@ 2020-08-11 6:00 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-08-11 6:00 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3043 bytes --]
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: 4efb07eff34dc1494ad32a21fd61f0cd9febc3ff
commit: 2f7cc89b033f4d379139ec47a801a531f4f12f67 [359/663] f2fs: support FS_IOC_{GET,SET}FSLABEL
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
git checkout 2f7cc89b033f4d379139ec47a801a531f4f12f67
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new 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(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 64244 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-08-11 6:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-11 6:00 [f2fs-stable:linux-4.19.y 359/663] fs/f2fs/file.c:3176:40: warning: taking address of packed member of 'struct f2fs_super_block' may result in an unaligned pointer value 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.