From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============6488554559737038560==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [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) Date: Tue, 07 Dec 2021 22:29:15 +0800 Message-ID: <202112072229.OBr7ZdAb-lkp@intel.com> List-Id: --===============6488554559737038560== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tree: https://android.googlesource.com/kernel/common upstream-f2fs-stable= -linux-5.4.y head: d0d54eba2632d617f4c131ae55dd5379464194ac commit: 0e764ea6471e002f101dd7726b6e97f0e55c2288 [665/677] ubifs: report co= rrect st_size for encrypted symlinks config: x86_64-randconfig-s022-20211207 (https://download.01.org/0day-ci/ar= chive/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/kern= el/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=3D1 C=3D1 CF=3D'-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=3D= build_dir ARCH=3Dx86_64 SHELL=3D/bin/bash fs/ubifs/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> fs/ubifs/file.c:1644:23: sparse: sparse: incorrect type in argument 1 (d= ifferent base types) @@ expected struct path const *path @@ got str= uct 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_user= ns >> fs/ubifs/file.c:1644:35: sparse: sparse: incorrect type in argument 2 (d= ifferent base types) @@ expected struct kstat *stat @@ got struct p= ath 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 (d= ifferent base types) @@ expected unsigned int [usertype] request_mask @= @ got struct kstat *stat @@ fs/ubifs/file.c:1644:41: sparse: expected unsigned int [usertype] re= quest_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 ( *geta= ttr )( ... ) @@ 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 = =3D { 1652 .readpage =3D ubifs_readpage, 1653 .writepage =3D ubifs_writepage, 1654 .write_begin =3D ubifs_write_begin, 1655 .write_end =3D ubifs_write_end, 1656 .invalidatepage =3D ubifs_invalidatepage, 1657 .set_page_dirty =3D ubifs_set_page_dirty, 1658 #ifdef CONFIG_MIGRATION 1659 .migratepage =3D ubifs_migrate_page, 1660 #endif 1661 .releasepage =3D ubifs_releasepage, 1662 }; 1663 = 1664 const struct inode_operations ubifs_file_inode_operations =3D { 1665 .setattr =3D ubifs_setattr, 1666 .getattr =3D ubifs_getattr, 1667 #ifdef CONFIG_UBIFS_FS_XATTR 1668 .listxattr =3D ubifs_listxattr, 1669 #endif 1670 .update_time =3D ubifs_update_time, 1671 }; 1672 = 1673 const struct inode_operations ubifs_symlink_inode_operations =3D { 1674 .get_link =3D ubifs_get_link, 1675 .setattr =3D ubifs_setattr, > 1676 .getattr =3D ubifs_symlink_getattr, 1677 #ifdef CONFIG_UBIFS_FS_XATTR 1678 .listxattr =3D ubifs_listxattr, 1679 #endif 1680 .update_time =3D 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 --===============6488554559737038560==--