tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: a48b0872e69428d3d02994dcfad3519f01def7fa commit: 7ad08a58bf67594057362e45cbddd3e27e53e557 f2fs: Handle casefolding with Encryption date: 5 months ago config: powerpc64-randconfig-r024-20210507 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project a3a8a1a15b524d91b5308db68e9d293b34cd88dd) 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 # install powerpc64 cross compiling tool for clang build # apt-get install binutils-powerpc64-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7ad08a58bf67594057362e45cbddd3e27e53e557 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 7ad08a58bf67594057362e45cbddd3e27e53e557 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=powerpc64 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 arch/powerpc/include/asm/hardirq.h:6: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/powerpc/include/asm/io.h:604: arch/powerpc/include/asm/io-defs.h:45:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] DEF_PCI_AC_NORET(insw, (unsigned long p, void *b, unsigned long c), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/powerpc/include/asm/io.h:601:3: note: expanded from macro 'DEF_PCI_AC_NORET' __do_##name al; \ ^~~~~~~~~~~~~~ :106:1: note: expanded from here __do_insw ^ arch/powerpc/include/asm/io.h:542:56: note: expanded from macro '__do_insw' #define __do_insw(p, b, n) readsw((PCI_IO_ADDR)_IO_BASE+(p), (b), (n)) ~~~~~~~~~~~~~~~~~~~~~^ In file included from fs/f2fs/recovery.c:10: In file included from include/linux/f2fs_fs.h:11: In file included from include/linux/pagemap.h:11: In file included from include/linux/highmem.h:10: In file included from include/linux/hardirq.h:10: In file included from arch/powerpc/include/asm/hardirq.h:6: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/powerpc/include/asm/io.h:604: arch/powerpc/include/asm/io-defs.h:47:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] DEF_PCI_AC_NORET(insl, (unsigned long p, void *b, unsigned long c), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/powerpc/include/asm/io.h:601:3: note: expanded from macro 'DEF_PCI_AC_NORET' __do_##name al; \ ^~~~~~~~~~~~~~ :110:1: note: expanded from here __do_insl ^ arch/powerpc/include/asm/io.h:543:56: note: expanded from macro '__do_insl' #define __do_insl(p, b, n) readsl((PCI_IO_ADDR)_IO_BASE+(p), (b), (n)) ~~~~~~~~~~~~~~~~~~~~~^ In file included from fs/f2fs/recovery.c:10: In file included from include/linux/f2fs_fs.h:11: In file included from include/linux/pagemap.h:11: In file included from include/linux/highmem.h:10: In file included from include/linux/hardirq.h:10: In file included from arch/powerpc/include/asm/hardirq.h:6: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/powerpc/include/asm/io.h:604: arch/powerpc/include/asm/io-defs.h:49:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] DEF_PCI_AC_NORET(outsb, (unsigned long p, const void *b, unsigned long c), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/powerpc/include/asm/io.h:601:3: note: expanded from macro 'DEF_PCI_AC_NORET' __do_##name al; \ ^~~~~~~~~~~~~~ :114:1: note: expanded from here __do_outsb ^ arch/powerpc/include/asm/io.h:544:58: note: expanded from macro '__do_outsb' #define __do_outsb(p, b, n) writesb((PCI_IO_ADDR)_IO_BASE+(p),(b),(n)) ~~~~~~~~~~~~~~~~~~~~~^ In file included from fs/f2fs/recovery.c:10: In file included from include/linux/f2fs_fs.h:11: In file included from include/linux/pagemap.h:11: In file included from include/linux/highmem.h:10: In file included from include/linux/hardirq.h:10: In file included from arch/powerpc/include/asm/hardirq.h:6: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/powerpc/include/asm/io.h:604: arch/powerpc/include/asm/io-defs.h:51:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] DEF_PCI_AC_NORET(outsw, (unsigned long p, const void *b, unsigned long c), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/powerpc/include/asm/io.h:601:3: note: expanded from macro 'DEF_PCI_AC_NORET' __do_##name al; \ ^~~~~~~~~~~~~~ :118:1: note: expanded from here __do_outsw ^ arch/powerpc/include/asm/io.h:545:58: note: expanded from macro '__do_outsw' #define __do_outsw(p, b, n) writesw((PCI_IO_ADDR)_IO_BASE+(p),(b),(n)) ~~~~~~~~~~~~~~~~~~~~~^ In file included from fs/f2fs/recovery.c:10: In file included from include/linux/f2fs_fs.h:11: In file included from include/linux/pagemap.h:11: In file included from include/linux/highmem.h:10: In file included from include/linux/hardirq.h:10: In file included from arch/powerpc/include/asm/hardirq.h:6: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/powerpc/include/asm/io.h:604: arch/powerpc/include/asm/io-defs.h:53:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] DEF_PCI_AC_NORET(outsl, (unsigned long p, const void *b, unsigned long c), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/powerpc/include/asm/io.h:601:3: note: expanded from macro 'DEF_PCI_AC_NORET' __do_##name al; \ ^~~~~~~~~~~~~~ :122:1: note: expanded from here __do_outsl ^ arch/powerpc/include/asm/io.h:546:58: note: expanded from macro '__do_outsl' #define __do_outsl(p, b, n) writesl((PCI_IO_ADDR)_IO_BASE+(p),(b),(n)) ~~~~~~~~~~~~~~~~~~~~~^ >> fs/f2fs/recovery.c:765:5: warning: stack frame size of 2080 bytes in function 'f2fs_recover_fsync_data' [-Wframe-larger-than=] int f2fs_recover_fsync_data(struct f2fs_sb_info *sbi, bool check_only) ^ 13 warnings generated. vim +/f2fs_recover_fsync_data +765 fs/f2fs/recovery.c d624c96fb3249e5 Jaegeuk Kim 2012-11-02 764 4d57b86dd86404f Chao Yu 2018-05-30 @765 int f2fs_recover_fsync_data(struct f2fs_sb_info *sbi, bool check_only) d624c96fb3249e5 Jaegeuk Kim 2012-11-02 766 { 26b5a079197c8cb Sheng Yong 2018-10-12 767 struct list_head inode_list, tmp_inode_list; f61cce5b81f91ba Chao Yu 2016-05-07 768 struct list_head dir_list; 6ead114232f786e Jaegeuk Kim 2013-03-20 769 int err; 6781eabba1bdb13 Jaegeuk Kim 2016-03-23 770 int ret = 0; 4b2414d04e99120 Chao Yu 2017-08-08 771 unsigned long s_flags = sbi->sb->s_flags; aabe51364f44681 Haicheng Li 2013-10-23 772 bool need_writecp = false; c426d99127b1ab7 Shin'ichiro Kawasaki 2019-12-09 773 bool fix_curseg_write_pointer = false; ea6767337f86312 Jaegeuk Kim 2017-10-06 774 #ifdef CONFIG_QUOTA ea6767337f86312 Jaegeuk Kim 2017-10-06 775 int quota_enabled; ea6767337f86312 Jaegeuk Kim 2017-10-06 776 #endif d624c96fb3249e5 Jaegeuk Kim 2012-11-02 777 1751e8a6cb935e5 Linus Torvalds 2017-11-27 778 if (s_flags & SB_RDONLY) { dcbb4c10e6d9693 Joe Perches 2019-06-18 779 f2fs_info(sbi, "recover fsync data on readonly fs"); 1751e8a6cb935e5 Linus Torvalds 2017-11-27 780 sbi->sb->s_flags &= ~SB_RDONLY; 4b2414d04e99120 Chao Yu 2017-08-08 781 } 4b2414d04e99120 Chao Yu 2017-08-08 782 :::::: The code at line 765 was first introduced by commit :::::: 4d57b86dd86404fd8bb4f87d277d5a86a7fe537e f2fs: clean up symbol namespace :::::: TO: Chao Yu :::::: CC: Jaegeuk Kim --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org