From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============6432055783656394009==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [android-common:upstream-f2fs-stable-linux-4.14.y 927/1431] include/linux/kern_levels.h:5:18: warning: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'blkcnt_t {aka long long unsigned int}' Date: Thu, 20 Jan 2022 11:27:52 +0800 Message-ID: <202201200957.Gz4xTPFP-lkp@intel.com> List-Id: --===============6432055783656394009== 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-4.14.y head: a1f8c5458f03b609b124191a55118e9c11109442 commit: 285ad248f6744133988a915887f1ec35f980ee74 [927/1431] f2fs: fix to ch= eck i_compr_blocks correctly config: i386-randconfig-a001-20220117 (https://download.01.org/0day-ci/arch= ive/20220120/202201200957.Gz4xTPFP-lkp(a)intel.com/config) compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0 reproduce (this is a W=3D1 build): git remote add android-common https://android.googlesource.com/kern= el/common git fetch --no-tags android-common upstream-f2fs-stable-linux-4.14.y git checkout 285ad248f6744133988a915887f1ec35f980ee74 # save the config file to linux build tree mkdir build_dir make W=3D1 O=3Dbuild_dir ARCH=3Di386 SHELL=3D/bin/bash fs/f2fs/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from include/linux/printk.h:7:0, from include/linux/kernel.h:14, from include/linux/list.h:9, from include/linux/wait.h:7, from include/linux/wait_bit.h:8, from include/linux/fs.h:6, from fs/f2fs/inode.c:8: fs/f2fs/inode.c: In function 'sanity_check_inode': >> include/linux/kern_levels.h:5:18: warning: format '%lu' expects argument= of type 'long unsigned int', but argument 6 has type 'blkcnt_t {aka long l= ong unsigned int}' [-Wformat=3D] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:12:22: note: in expansion of macro 'KERN_SOH' #define KERN_WARNING KERN_SOH "4" /* warning conditions */ ^~~~~~~~ fs/f2fs/f2fs.h:1947:19: note: in expansion of macro 'KERN_WARNING' f2fs_printk(sbi, KERN_WARNING fmt, ##__VA_ARGS__) ^~~~~~~~~~~~ fs/f2fs/inode.c:303:4: note: in expansion of macro 'f2fs_warn' f2fs_warn(sbi, "%s: inode (ino=3D%lx) has inconsistent " ^~~~~~~~~ fs/f2fs/inode.c:304:38: note: format string is defined here "i_compr_blocks:%llu, i_blocks:%lu, run fsck to fix", ~~^ %llu vim +5 include/linux/kern_levels.h 314ba3520e513a7 Joe Perches 2012-07-30 4 = 04d2c8c83d0e3ac Joe Perches 2012-07-30 @5 #define KERN_SOH "\001" /* ASCI= I Start Of Header */ 04d2c8c83d0e3ac Joe Perches 2012-07-30 6 #define KERN_SOH_ASCII '\001' 04d2c8c83d0e3ac Joe Perches 2012-07-30 7 = :::::: The code at line 5 was first introduced by commit :::::: 04d2c8c83d0e3ac5f78aeede51babb3236200112 printk: convert the format = for KERN_ to a 2 byte pattern :::::: TO: Joe Perches :::::: CC: Linus Torvalds --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============6432055783656394009==--