Hi Lukas, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on jack-fs/for_next] [also build test WARNING on linus/master v6.1-rc6 next-20221121] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Lukas-Czerner/shmem-user-and-group-quota-support-for-tmpfs/20221121-223006 base: https://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs.git for_next patch link: https://lore.kernel.org/r/20221121142854.91109-4-lczerner%40redhat.com patch subject: [PATCH v2 3/3] shmem: implement mount options for global quota limits config: hexagon-randconfig-r045-20221121 compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project af8c49dc1ec44339d915d988ffe0f38da68ca0e7) 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 # https://github.com/intel-lab-lkp/linux/commit/e5478d3304138f156d65c72620adfb05ce079aa1 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Lukas-Czerner/shmem-user-and-group-quota-support-for-tmpfs/20221121-223006 git checkout e5478d3304138f156d65c72620adfb05ce079aa1 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from mm/shmem.c:29: In file included from include/linux/pagemap.h:11: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:547:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:560:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from mm/shmem.c:29: In file included from include/linux/pagemap.h:11: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:573:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from mm/shmem.c:29: In file included from include/linux/pagemap.h:11: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:594:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:604:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ >> mm/shmem.c:276:5: warning: no previous prototype for function 'shmem_dquot_acquire' [-Wmissing-prototypes] int shmem_dquot_acquire(struct dquot *dquot) ^ mm/shmem.c:276:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int shmem_dquot_acquire(struct dquot *dquot) ^ static 7 warnings generated. vim +/shmem_dquot_acquire +276 mm/shmem.c 275 > 276 int shmem_dquot_acquire(struct dquot *dquot) 277 { 278 int type, ret = 0; 279 unsigned int memalloc; 280 struct quota_info *dqopt = sb_dqopt(dquot->dq_sb); 281 struct shmem_sb_info *sbinfo = SHMEM_SB(dquot->dq_sb); 282 283 284 mutex_lock(&dquot->dq_lock); 285 memalloc = memalloc_nofs_save(); 286 if (test_bit(DQ_READ_B, &dquot->dq_flags)) { 287 smp_mb__before_atomic(); 288 set_bit(DQ_ACTIVE_B, &dquot->dq_flags); 289 goto out_iolock; 290 } 291 292 type = dquot->dq_id.type; 293 ret = dqopt->ops[type]->read_dqblk(dquot); 294 if (ret < 0) 295 goto out_iolock; 296 /* Set the defaults */ 297 if (type == USRQUOTA) { 298 dquot->dq_dqb.dqb_bhardlimit = 299 (sbinfo->usrquota_block_hardlimit << PAGE_SHIFT); 300 dquot->dq_dqb.dqb_ihardlimit = sbinfo->usrquota_inode_hardlimit; 301 } else if (type == GRPQUOTA) { 302 dquot->dq_dqb.dqb_bhardlimit = 303 (sbinfo->grpquota_block_hardlimit << PAGE_SHIFT); 304 dquot->dq_dqb.dqb_ihardlimit = sbinfo->grpquota_inode_hardlimit; 305 } 306 /* Make sure flags update is visible after dquot has been filled */ 307 smp_mb__before_atomic(); 308 set_bit(DQ_READ_B, &dquot->dq_flags); 309 set_bit(DQ_ACTIVE_B, &dquot->dq_flags); 310 out_iolock: 311 memalloc_nofs_restore(memalloc); 312 mutex_unlock(&dquot->dq_lock); 313 return ret; 314 } 315 -- 0-DAY CI Kernel Test Service https://01.org/lkp