public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [vfs-idmapping:fs.posix_acl.vfsuid 15/37] fs/9p/acl.h:29:1: error: expected identifier or '('
@ 2022-09-09 21:37 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-09-09 21:37 UTC (permalink / raw)
  To: Christian Brauner; +Cc: llvm, kbuild-all, linux-kernel

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/vfs/idmapping.git fs.posix_acl.vfsuid
head:   d37e11d9b40fc35810217121aa3205b7975fd4c6
commit: c45bf675834bb2d099f0a8375cadeb30f4d915e5 [15/37] 9p: add ->get_dentry_acl() method
config: arm-randconfig-r002-20220907 (https://download.01.org/0day-ci/archive/20220910/202209100550.85zb3adU-lkp@intel.com/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 1546df49f5a6d09df78f569e4137ddb365a3e827)
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 arm cross compiling tool for clang build
        # apt-get install binutils-arm-linux-gnueabi
        # https://git.kernel.org/pub/scm/linux/kernel/git/vfs/idmapping.git/commit/?id=c45bf675834bb2d099f0a8375cadeb30f4d915e5
        git remote add vfs-idmapping https://git.kernel.org/pub/scm/linux/kernel/git/vfs/idmapping.git
        git fetch --no-tags vfs-idmapping fs.posix_acl.vfsuid
        git checkout c45bf675834bb2d099f0a8375cadeb30f4d915e5
        # 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=arm SHELL=/bin/bash fs/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from fs/9p/vfs_super.c:31:
>> fs/9p/acl.h:29:1: error: expected identifier or '('
   v9fs_iop_get_dentry_acl(struct user_namespace *mnt_userns,
   ^
   fs/9p/acl.h:23:33: note: expanded from macro 'v9fs_iop_get_dentry_acl'
   #define v9fs_iop_get_dentry_acl NULL
                                   ^
   include/linux/stddef.h:8:16: note: expanded from macro 'NULL'
   #define NULL ((void *)0)
                  ^
   In file included from fs/9p/vfs_super.c:31:
>> fs/9p/acl.h:29:1: error: expected ')'
   fs/9p/acl.h:23:33: note: expanded from macro 'v9fs_iop_get_dentry_acl'
   #define v9fs_iop_get_dentry_acl NULL
                                   ^
   include/linux/stddef.h:8:16: note: expanded from macro 'NULL'
   #define NULL ((void *)0)
                  ^
   fs/9p/acl.h:29:1: note: to match this '('
   fs/9p/acl.h:23:33: note: expanded from macro 'v9fs_iop_get_dentry_acl'
   #define v9fs_iop_get_dentry_acl NULL
                                   ^
   include/linux/stddef.h:8:15: note: expanded from macro 'NULL'
   #define NULL ((void *)0)
                 ^
   In file included from fs/9p/vfs_super.c:31:
>> fs/9p/acl.h:29:1: error: expected ')'
   v9fs_iop_get_dentry_acl(struct user_namespace *mnt_userns,
   ^
   fs/9p/acl.h:23:33: note: expanded from macro 'v9fs_iop_get_dentry_acl'
   #define v9fs_iop_get_dentry_acl NULL
                                   ^
   include/linux/stddef.h:8:23: note: expanded from macro 'NULL'
   #define NULL ((void *)0)
                         ^
   fs/9p/acl.h:29:1: note: to match this '('
   fs/9p/acl.h:23:33: note: expanded from macro 'v9fs_iop_get_dentry_acl'
   #define v9fs_iop_get_dentry_acl NULL
                                   ^
   include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
   #define NULL ((void *)0)
                ^
   3 errors generated.


vim +29 fs/9p/acl.h

     8	
     9	#ifdef CONFIG_9P_FS_POSIX_ACL
    10	int v9fs_get_acl(struct inode *inode, struct p9_fid *fid);
    11	struct posix_acl *v9fs_iop_get_acl(struct inode *inode, int type,
    12					   bool rcu);
    13	struct posix_acl *v9fs_iop_get_dentry_acl(struct user_namespace *mnt_userns,
    14						  struct dentry *dentry, int type);
    15	int v9fs_acl_chmod(struct inode *inode, struct p9_fid *fid);
    16	int v9fs_set_create_acl(struct inode *inode, struct p9_fid *fid,
    17				struct posix_acl *dacl, struct posix_acl *acl);
    18	int v9fs_acl_mode(struct inode *dir, umode_t *modep,
    19			  struct posix_acl **dpacl, struct posix_acl **pacl);
    20	void v9fs_put_acl(struct posix_acl *dacl, struct posix_acl *acl);
    21	#else
    22	#define v9fs_iop_get_acl	NULL
    23	#define v9fs_iop_get_dentry_acl NULL
    24	static inline int v9fs_get_acl(struct inode *inode, struct p9_fid *fid)
    25	{
    26		return 0;
    27	}
    28	static inline struct posix_acl *
  > 29	v9fs_iop_get_dentry_acl(struct user_namespace *mnt_userns,
    30				struct dentry *dentry, int type)
    31	{
    32		return NULL;
    33	}
    34	static inline int v9fs_acl_chmod(struct inode *inode, struct p9_fid *fid)
    35	{
    36		return 0;
    37	}
    38	static inline int v9fs_set_create_acl(struct inode *inode,
    39					      struct p9_fid *fid,
    40					      struct posix_acl *dacl,
    41					      struct posix_acl *acl)
    42	{
    43		return 0;
    44	}
    45	static inline void v9fs_put_acl(struct posix_acl *dacl,
    46					struct posix_acl *acl)
    47	{
    48	}
    49	static inline int v9fs_acl_mode(struct inode *dir, umode_t *modep,
    50					struct posix_acl **dpacl,
    51					struct posix_acl **pacl)
    52	{
    53		return 0;
    54	}
    55	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-09-09 21:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-09 21:37 [vfs-idmapping:fs.posix_acl.vfsuid 15/37] fs/9p/acl.h:29:1: error: expected identifier or '(' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox