* [android-common:upstream-f2fs-stable-linux-5.4.y 665/677] fs/ubifs/file.c:1644:23: sparse: sparse: incorrect type in argument 1 (different base types)
@ 2021-12-07 14:29 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-12-07 14:29 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 4343 bytes --]
tree: https://android.googlesource.com/kernel/common upstream-f2fs-stable-linux-5.4.y
head: d0d54eba2632d617f4c131ae55dd5379464194ac
commit: 0e764ea6471e002f101dd7726b6e97f0e55c2288 [665/677] ubifs: report correct st_size for encrypted symlinks
config: x86_64-randconfig-s022-20211207 (https://download.01.org/0day-ci/archive/20211207/202112072229.OBr7ZdAb-lkp(a)intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.4-dirty
git remote add android-common https://android.googlesource.com/kernel/common
git fetch --no-tags android-common upstream-f2fs-stable-linux-5.4.y
git checkout 0e764ea6471e002f101dd7726b6e97f0e55c2288
# save the config file to linux build tree
mkdir build_dir
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash fs/ubifs/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
sparse warnings: (new ones prefixed by >>)
>> fs/ubifs/file.c:1644:23: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected struct path const *path @@ got struct user_namespace *mnt_userns @@
fs/ubifs/file.c:1644:23: sparse: expected struct path const *path
fs/ubifs/file.c:1644:23: sparse: got struct user_namespace *mnt_userns
>> fs/ubifs/file.c:1644:35: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected struct kstat *stat @@ got struct path const *path @@
fs/ubifs/file.c:1644:35: sparse: expected struct kstat *stat
fs/ubifs/file.c:1644:35: sparse: got struct path const *path
>> fs/ubifs/file.c:1644:41: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected unsigned int [usertype] request_mask @@ got struct kstat *stat @@
fs/ubifs/file.c:1644:41: sparse: expected unsigned int [usertype] request_mask
fs/ubifs/file.c:1644:41: sparse: got struct kstat *stat
>> fs/ubifs/file.c:1644:22: sparse: sparse: too many arguments for function ubifs_getattr
>> fs/ubifs/file.c:1676:24: sparse: sparse: incorrect type in initializer (incompatible argument 1 (different base types)) @@ expected int ( *getattr )( ... ) @@ got int ( * )( ... ) @@
fs/ubifs/file.c:1676:24: sparse: expected int ( *getattr )( ... )
fs/ubifs/file.c:1676:24: sparse: got int ( * )( ... )
>> fs/ubifs/file.c:1644:41: sparse: sparse: non size-preserving pointer to integer cast
vim +1644 fs/ubifs/file.c
1639
1640 static int ubifs_symlink_getattr(struct user_namespace *mnt_userns,
1641 const struct path *path, struct kstat *stat,
1642 u32 request_mask, unsigned int query_flags)
1643 {
> 1644 ubifs_getattr(mnt_userns, path, stat, request_mask, query_flags);
1645
1646 if (IS_ENCRYPTED(d_inode(path->dentry)))
1647 return fscrypt_symlink_getattr(path, stat);
1648 return 0;
1649 }
1650
1651 const struct address_space_operations ubifs_file_address_operations = {
1652 .readpage = ubifs_readpage,
1653 .writepage = ubifs_writepage,
1654 .write_begin = ubifs_write_begin,
1655 .write_end = ubifs_write_end,
1656 .invalidatepage = ubifs_invalidatepage,
1657 .set_page_dirty = ubifs_set_page_dirty,
1658 #ifdef CONFIG_MIGRATION
1659 .migratepage = ubifs_migrate_page,
1660 #endif
1661 .releasepage = ubifs_releasepage,
1662 };
1663
1664 const struct inode_operations ubifs_file_inode_operations = {
1665 .setattr = ubifs_setattr,
1666 .getattr = ubifs_getattr,
1667 #ifdef CONFIG_UBIFS_FS_XATTR
1668 .listxattr = ubifs_listxattr,
1669 #endif
1670 .update_time = ubifs_update_time,
1671 };
1672
1673 const struct inode_operations ubifs_symlink_inode_operations = {
1674 .get_link = ubifs_get_link,
1675 .setattr = ubifs_setattr,
> 1676 .getattr = ubifs_symlink_getattr,
1677 #ifdef CONFIG_UBIFS_FS_XATTR
1678 .listxattr = ubifs_listxattr,
1679 #endif
1680 .update_time = ubifs_update_time,
1681 };
1682
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-12-07 14:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-07 14:29 [android-common:upstream-f2fs-stable-linux-5.4.y 665/677] fs/ubifs/file.c:1644:23: sparse: sparse: incorrect type in argument 1 (different base types) 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.