Hi Lukas, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v6.1-rc4 next-20221111] [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/20221108-213245 patch link: https://lore.kernel.org/r/20221108133010.75226-2-lczerner%40redhat.com patch subject: [PATCH 1/2] shmem: implement user/group quota support for tmpfs config: riscv-randconfig-r033-20221108 compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 463da45892e2d2a262277b91b96f5f8c05dc25d0) 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-riscv-linux-gnu # https://github.com/intel-lab-lkp/linux/commit/6f979020eab836196937e50c4e87e4504a56a845 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/20221108-213245 git checkout 6f979020eab836196937e50c4e87e4504a56a845 # 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:4515:11: error: casting from randomized structure pointer type 'struct inode *' to 'struct file *' return (struct file *)inode; ^ 1 error generated. vim +4515 mm/shmem.c 4494 4495 static struct file *__shmem_file_setup(struct vfsmount *mnt, const char *name, loff_t size, 4496 unsigned long flags, unsigned int i_flags) 4497 { 4498 struct inode *inode; 4499 struct file *res; 4500 4501 if (IS_ERR(mnt)) 4502 return ERR_CAST(mnt); 4503 4504 if (size < 0 || size > MAX_LFS_FILESIZE) 4505 return ERR_PTR(-EINVAL); 4506 4507 if (shmem_acct_size(flags, size)) 4508 return ERR_PTR(-ENOMEM); 4509 4510 inode = shmem_get_inode(mnt->mnt_sb, NULL, S_IFREG | S_IRWXUGO, 0, 4511 flags); 4512 if (IS_ERR_OR_NULL(inode)) { 4513 shmem_unacct_size(flags, size); 4514 if (IS_ERR(inode)) > 4515 return (struct file *)inode; 4516 return ERR_PTR(-ENOSPC); 4517 } 4518 inode->i_flags |= i_flags; 4519 inode->i_size = size; 4520 clear_nlink(inode); /* It is unlinked */ 4521 res = ERR_PTR(ramfs_nommu_expand_for_mapping(inode, size)); 4522 if (!IS_ERR(res)) 4523 res = alloc_file_pseudo(inode, mnt, name, O_RDWR, 4524 &shmem_file_operations); 4525 if (IS_ERR(res)) 4526 iput(inode); 4527 return res; 4528 } 4529 -- 0-DAY CI Kernel Test Service https://01.org/lkp