Hi Lukas, Thank you for the patch! Yet something to improve: [auto build test ERROR on jack-fs/for_next] [also build test ERROR on linus/master v6.1-rc6 next-20221122] [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-3-lczerner%40redhat.com patch subject: [PATCH v2 2/3] shmem: implement user/group quota support for tmpfs config: riscv-randconfig-r011-20221120 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 # install riscv cross compiling tool for clang build # apt-get install binutils-riscv64-linux-gnu # https://github.com/intel-lab-lkp/linux/commit/1d7fa75b27cff11f4a69cff07058d541c4bf8a9e 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 1d7fa75b27cff11f4a69cff07058d541c4bf8a9e # 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=riscv SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All errors (new ones prefixed by >>): >> mm/shmem.c:4354:11: error: casting from randomized structure pointer type 'struct inode *' to 'struct file *' return (struct file *)inode; ^ 1 error generated. vim +4354 mm/shmem.c 4333 4334 static struct file *__shmem_file_setup(struct vfsmount *mnt, const char *name, loff_t size, 4335 unsigned long flags, unsigned int i_flags) 4336 { 4337 struct inode *inode; 4338 struct file *res; 4339 4340 if (IS_ERR(mnt)) 4341 return ERR_CAST(mnt); 4342 4343 if (size < 0 || size > MAX_LFS_FILESIZE) 4344 return ERR_PTR(-EINVAL); 4345 4346 if (shmem_acct_size(flags, size)) 4347 return ERR_PTR(-ENOMEM); 4348 4349 inode = shmem_get_inode(mnt->mnt_sb, NULL, S_IFREG | S_IRWXUGO, 0, 4350 flags); 4351 if (IS_ERR_OR_NULL(inode)) { 4352 shmem_unacct_size(flags, size); 4353 if (IS_ERR(inode)) > 4354 return (struct file *)inode; 4355 return ERR_PTR(-ENOSPC); 4356 } 4357 inode->i_flags |= i_flags; 4358 inode->i_size = size; 4359 clear_nlink(inode); /* It is unlinked */ 4360 res = ERR_PTR(ramfs_nommu_expand_for_mapping(inode, size)); 4361 if (!IS_ERR(res)) 4362 res = alloc_file_pseudo(inode, mnt, name, O_RDWR, 4363 &shmem_file_operations); 4364 if (IS_ERR(res)) 4365 iput(inode); 4366 return res; 4367 } 4368 -- 0-DAY CI Kernel Test Service https://01.org/lkp