All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: KP Singh <kpsingh@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev,
	Casey Schaufler <casey@schaufler-ca.com>,
	Kees Cook <keescook@chromium.org>
Subject: [kpsingh:static_calls 3/4] include/linux/lsm_count.h:103:59: error: expected expression before '...' token
Date: Sat, 27 Apr 2024 18:27:05 +0800	[thread overview]
Message-ID: <202404271857.DbtTvMCO-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/kpsingh/linux.git static_calls
head:   06bb8ee551361059ecddd590b22e22143b4def41
commit: 2882213a96f2dfd572afdc46a9238e7b1cf88eb7 [3/4] security: Replace indirect LSM hook calls with static calls
config: arm-allmodconfig (https://download.01.org/0day-ci/archive/20240427/202404271857.DbtTvMCO-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240427/202404271857.DbtTvMCO-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202404271857.DbtTvMCO-lkp@intel.com/

All error/warnings (new ones prefixed by >>):

   In file included from include/linux/string.h:5,
                    from include/linux/bitmap.h:13,
                    from include/linux/cpumask.h:13,
                    from include/linux/sched.h:16,
                    from include/linux/audit.h:12,
                    from security/commoncap.c:6:
>> include/linux/lsm_count.h:103:59: error: expected expression before '...' token
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                                           ^~~
   include/linux/args.h:21:87: note: in definition of macro '__COUNT_ARGS'
      21 | #define __COUNT_ARGS(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _n, X...) _n
         |                                                                                       ^~
   include/linux/lsm_count.h:103:44: note: in expansion of macro 'COUNT_ARGS'
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                            ^~~~~~~~~~
   include/linux/lsm_count.h:104:29: note: in expansion of macro '__COUNT_LSMS'
     104 | #define COUNT_LSMS(args...) __COUNT_LSMS(args)
         |                             ^~~~~~~~~~~~
   include/linux/lsm_count.h:107:9: note: in expansion of macro 'COUNT_LSMS'
     107 |         COUNT_LSMS(                     \
         |         ^~~~~~~~~~
   include/linux/lsm_hooks.h:88:45: note: in expansion of macro 'MAX_LSM_COUNT'
      88 |                 struct lsm_static_call NAME[MAX_LSM_COUNT];
         |                                             ^~~~~~~~~~~~~
   include/linux/lsm_hook_defs.h:29:1: note: in expansion of macro 'LSM_HOOK'
      29 | LSM_HOOK(int, 0, binder_set_context_mgr, const struct cred *mgr)
         | ^~~~~~~~
>> include/linux/lsm_count.h:103:59: error: expected expression before '...' token
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                                           ^~~
   include/linux/args.h:21:87: note: in definition of macro '__COUNT_ARGS'
      21 | #define __COUNT_ARGS(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _n, X...) _n
         |                                                                                       ^~
   include/linux/lsm_count.h:103:44: note: in expansion of macro 'COUNT_ARGS'
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                            ^~~~~~~~~~
   include/linux/lsm_count.h:104:29: note: in expansion of macro '__COUNT_LSMS'
     104 | #define COUNT_LSMS(args...) __COUNT_LSMS(args)
         |                             ^~~~~~~~~~~~
   include/linux/lsm_count.h:107:9: note: in expansion of macro 'COUNT_LSMS'
     107 |         COUNT_LSMS(                     \
         |         ^~~~~~~~~~
   include/linux/lsm_hooks.h:88:45: note: in expansion of macro 'MAX_LSM_COUNT'
      88 |                 struct lsm_static_call NAME[MAX_LSM_COUNT];
         |                                             ^~~~~~~~~~~~~
   include/linux/lsm_hook_defs.h:30:1: note: in expansion of macro 'LSM_HOOK'
      30 | LSM_HOOK(int, 0, binder_transaction, const struct cred *from,
         | ^~~~~~~~
>> include/linux/lsm_count.h:103:59: error: expected expression before '...' token
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                                           ^~~
   include/linux/args.h:21:87: note: in definition of macro '__COUNT_ARGS'
      21 | #define __COUNT_ARGS(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _n, X...) _n
         |                                                                                       ^~
   include/linux/lsm_count.h:103:44: note: in expansion of macro 'COUNT_ARGS'
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                            ^~~~~~~~~~
   include/linux/lsm_count.h:104:29: note: in expansion of macro '__COUNT_LSMS'
     104 | #define COUNT_LSMS(args...) __COUNT_LSMS(args)
         |                             ^~~~~~~~~~~~
   include/linux/lsm_count.h:107:9: note: in expansion of macro 'COUNT_LSMS'
     107 |         COUNT_LSMS(                     \
         |         ^~~~~~~~~~
   include/linux/lsm_hooks.h:88:45: note: in expansion of macro 'MAX_LSM_COUNT'
      88 |                 struct lsm_static_call NAME[MAX_LSM_COUNT];
         |                                             ^~~~~~~~~~~~~
   include/linux/lsm_hook_defs.h:32:1: note: in expansion of macro 'LSM_HOOK'
      32 | LSM_HOOK(int, 0, binder_transfer_binder, const struct cred *from,
         | ^~~~~~~~
>> include/linux/lsm_count.h:103:59: error: expected expression before '...' token
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                                           ^~~
   include/linux/args.h:21:87: note: in definition of macro '__COUNT_ARGS'
      21 | #define __COUNT_ARGS(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _n, X...) _n
         |                                                                                       ^~
   include/linux/lsm_count.h:103:44: note: in expansion of macro 'COUNT_ARGS'
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                            ^~~~~~~~~~
   include/linux/lsm_count.h:104:29: note: in expansion of macro '__COUNT_LSMS'
     104 | #define COUNT_LSMS(args...) __COUNT_LSMS(args)
         |                             ^~~~~~~~~~~~
   include/linux/lsm_count.h:107:9: note: in expansion of macro 'COUNT_LSMS'
     107 |         COUNT_LSMS(                     \
         |         ^~~~~~~~~~
   include/linux/lsm_hooks.h:88:45: note: in expansion of macro 'MAX_LSM_COUNT'
      88 |                 struct lsm_static_call NAME[MAX_LSM_COUNT];
         |                                             ^~~~~~~~~~~~~
   include/linux/lsm_hook_defs.h:34:1: note: in expansion of macro 'LSM_HOOK'
      34 | LSM_HOOK(int, 0, binder_transfer_file, const struct cred *from,
         | ^~~~~~~~
>> include/linux/lsm_count.h:103:59: error: expected expression before '...' token
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                                           ^~~
   include/linux/args.h:21:87: note: in definition of macro '__COUNT_ARGS'
      21 | #define __COUNT_ARGS(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _n, X...) _n
         |                                                                                       ^~
   include/linux/lsm_count.h:103:44: note: in expansion of macro 'COUNT_ARGS'
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                            ^~~~~~~~~~
   include/linux/lsm_count.h:104:29: note: in expansion of macro '__COUNT_LSMS'
     104 | #define COUNT_LSMS(args...) __COUNT_LSMS(args)
         |                             ^~~~~~~~~~~~
   include/linux/lsm_count.h:107:9: note: in expansion of macro 'COUNT_LSMS'
     107 |         COUNT_LSMS(                     \
         |         ^~~~~~~~~~
   include/linux/lsm_hooks.h:88:45: note: in expansion of macro 'MAX_LSM_COUNT'
      88 |                 struct lsm_static_call NAME[MAX_LSM_COUNT];
         |                                             ^~~~~~~~~~~~~
   include/linux/lsm_hook_defs.h:36:1: note: in expansion of macro 'LSM_HOOK'
      36 | LSM_HOOK(int, 0, ptrace_access_check, struct task_struct *child,
         | ^~~~~~~~
>> include/linux/lsm_count.h:103:59: error: expected expression before '...' token
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                                           ^~~
   include/linux/args.h:21:87: note: in definition of macro '__COUNT_ARGS'
      21 | #define __COUNT_ARGS(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _n, X...) _n
         |                                                                                       ^~
   include/linux/lsm_count.h:103:44: note: in expansion of macro 'COUNT_ARGS'
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                            ^~~~~~~~~~
   include/linux/lsm_count.h:104:29: note: in expansion of macro '__COUNT_LSMS'
     104 | #define COUNT_LSMS(args...) __COUNT_LSMS(args)
         |                             ^~~~~~~~~~~~
   include/linux/lsm_count.h:107:9: note: in expansion of macro 'COUNT_LSMS'
     107 |         COUNT_LSMS(                     \
         |         ^~~~~~~~~~
   include/linux/lsm_hooks.h:88:45: note: in expansion of macro 'MAX_LSM_COUNT'
      88 |                 struct lsm_static_call NAME[MAX_LSM_COUNT];
         |                                             ^~~~~~~~~~~~~
   include/linux/lsm_hook_defs.h:38:1: note: in expansion of macro 'LSM_HOOK'
      38 | LSM_HOOK(int, 0, ptrace_traceme, struct task_struct *parent)
         | ^~~~~~~~
>> include/linux/lsm_count.h:103:59: error: expected expression before '...' token
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                                           ^~~
   include/linux/args.h:21:87: note: in definition of macro '__COUNT_ARGS'
      21 | #define __COUNT_ARGS(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _n, X...) _n
         |                                                                                       ^~
   include/linux/lsm_count.h:103:44: note: in expansion of macro 'COUNT_ARGS'
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                            ^~~~~~~~~~
   include/linux/lsm_count.h:104:29: note: in expansion of macro '__COUNT_LSMS'
     104 | #define COUNT_LSMS(args...) __COUNT_LSMS(args)
         |                             ^~~~~~~~~~~~
   include/linux/lsm_count.h:107:9: note: in expansion of macro 'COUNT_LSMS'
     107 |         COUNT_LSMS(                     \
         |         ^~~~~~~~~~
   include/linux/lsm_hooks.h:88:45: note: in expansion of macro 'MAX_LSM_COUNT'
      88 |                 struct lsm_static_call NAME[MAX_LSM_COUNT];
         |                                             ^~~~~~~~~~~~~
   include/linux/lsm_hook_defs.h:39:1: note: in expansion of macro 'LSM_HOOK'
      39 | LSM_HOOK(int, 0, capget, const struct task_struct *target, kernel_cap_t *effective,
         | ^~~~~~~~
>> include/linux/lsm_count.h:103:59: error: expected expression before '...' token
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                                           ^~~
   include/linux/args.h:21:87: note: in definition of macro '__COUNT_ARGS'
      21 | #define __COUNT_ARGS(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _n, X...) _n
         |                                                                                       ^~
   include/linux/lsm_count.h:103:44: note: in expansion of macro 'COUNT_ARGS'
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                            ^~~~~~~~~~
   include/linux/lsm_count.h:104:29: note: in expansion of macro '__COUNT_LSMS'
     104 | #define COUNT_LSMS(args...) __COUNT_LSMS(args)
         |                             ^~~~~~~~~~~~
   include/linux/lsm_count.h:107:9: note: in expansion of macro 'COUNT_LSMS'
     107 |         COUNT_LSMS(                     \
         |         ^~~~~~~~~~
   include/linux/lsm_hooks.h:88:45: note: in expansion of macro 'MAX_LSM_COUNT'
      88 |                 struct lsm_static_call NAME[MAX_LSM_COUNT];
         |                                             ^~~~~~~~~~~~~
   include/linux/lsm_hook_defs.h:41:1: note: in expansion of macro 'LSM_HOOK'
      41 | LSM_HOOK(int, 0, capset, struct cred *new, const struct cred *old,
         | ^~~~~~~~
>> include/linux/lsm_count.h:103:59: error: expected expression before '...' token
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                                           ^~~
   include/linux/args.h:21:87: note: in definition of macro '__COUNT_ARGS'
      21 | #define __COUNT_ARGS(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _n, X...) _n
         |                                                                                       ^~
   include/linux/lsm_count.h:103:44: note: in expansion of macro 'COUNT_ARGS'
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                            ^~~~~~~~~~
   include/linux/lsm_count.h:104:29: note: in expansion of macro '__COUNT_LSMS'
     104 | #define COUNT_LSMS(args...) __COUNT_LSMS(args)
         |                             ^~~~~~~~~~~~
   include/linux/lsm_count.h:107:9: note: in expansion of macro 'COUNT_LSMS'
     107 |         COUNT_LSMS(                     \
         |         ^~~~~~~~~~
   include/linux/lsm_hooks.h:88:45: note: in expansion of macro 'MAX_LSM_COUNT'
      88 |                 struct lsm_static_call NAME[MAX_LSM_COUNT];
         |                                             ^~~~~~~~~~~~~
   include/linux/lsm_hook_defs.h:44:1: note: in expansion of macro 'LSM_HOOK'
      44 | LSM_HOOK(int, 0, capable, const struct cred *cred, struct user_namespace *ns,
         | ^~~~~~~~
>> include/linux/lsm_count.h:103:59: error: expected expression before '...' token
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                                           ^~~
   include/linux/args.h:21:87: note: in definition of macro '__COUNT_ARGS'
      21 | #define __COUNT_ARGS(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _n, X...) _n
         |                                                                                       ^~
   include/linux/lsm_count.h:103:44: note: in expansion of macro 'COUNT_ARGS'
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                            ^~~~~~~~~~
   include/linux/lsm_count.h:104:29: note: in expansion of macro '__COUNT_LSMS'
     104 | #define COUNT_LSMS(args...) __COUNT_LSMS(args)
         |                             ^~~~~~~~~~~~
   include/linux/lsm_count.h:107:9: note: in expansion of macro 'COUNT_LSMS'
     107 |         COUNT_LSMS(                     \
         |         ^~~~~~~~~~
   include/linux/lsm_hooks.h:88:45: note: in expansion of macro 'MAX_LSM_COUNT'
      88 |                 struct lsm_static_call NAME[MAX_LSM_COUNT];
         |                                             ^~~~~~~~~~~~~
   include/linux/lsm_hook_defs.h:46:1: note: in expansion of macro 'LSM_HOOK'
      46 | LSM_HOOK(int, 0, quotactl, int cmds, int type, int id, const struct super_block *sb)
         | ^~~~~~~~
>> include/linux/lsm_count.h:103:59: error: expected expression before '...' token
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                                           ^~~
   include/linux/args.h:21:87: note: in definition of macro '__COUNT_ARGS'
      21 | #define __COUNT_ARGS(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _n, X...) _n
         |                                                                                       ^~
   include/linux/lsm_count.h:103:44: note: in expansion of macro 'COUNT_ARGS'
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                            ^~~~~~~~~~
   include/linux/lsm_count.h:104:29: note: in expansion of macro '__COUNT_LSMS'
     104 | #define COUNT_LSMS(args...) __COUNT_LSMS(args)
         |                             ^~~~~~~~~~~~
   include/linux/lsm_count.h:107:9: note: in expansion of macro 'COUNT_LSMS'
     107 |         COUNT_LSMS(                     \
         |         ^~~~~~~~~~
   include/linux/lsm_hooks.h:88:45: note: in expansion of macro 'MAX_LSM_COUNT'
      88 |                 struct lsm_static_call NAME[MAX_LSM_COUNT];
         |                                             ^~~~~~~~~~~~~
   include/linux/lsm_hook_defs.h:47:1: note: in expansion of macro 'LSM_HOOK'
      47 | LSM_HOOK(int, 0, quota_on, struct dentry *dentry)
         | ^~~~~~~~
>> include/linux/lsm_count.h:103:59: error: expected expression before '...' token
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                                           ^~~
   include/linux/args.h:21:87: note: in definition of macro '__COUNT_ARGS'
      21 | #define __COUNT_ARGS(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _n, X...) _n
         |                                                                                       ^~
   include/linux/lsm_count.h:103:44: note: in expansion of macro 'COUNT_ARGS'
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                            ^~~~~~~~~~
   include/linux/lsm_count.h:104:29: note: in expansion of macro '__COUNT_LSMS'
     104 | #define COUNT_LSMS(args...) __COUNT_LSMS(args)
         |                             ^~~~~~~~~~~~
   include/linux/lsm_count.h:107:9: note: in expansion of macro 'COUNT_LSMS'
     107 |         COUNT_LSMS(                     \
         |         ^~~~~~~~~~
   include/linux/lsm_hooks.h:88:45: note: in expansion of macro 'MAX_LSM_COUNT'
      88 |                 struct lsm_static_call NAME[MAX_LSM_COUNT];
         |                                             ^~~~~~~~~~~~~
   include/linux/lsm_hook_defs.h:48:1: note: in expansion of macro 'LSM_HOOK'
      48 | LSM_HOOK(int, 0, syslog, int type)
         | ^~~~~~~~
>> include/linux/lsm_count.h:103:59: error: expected expression before '...' token
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                                           ^~~
   include/linux/args.h:21:87: note: in definition of macro '__COUNT_ARGS'
      21 | #define __COUNT_ARGS(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _n, X...) _n
         |                                                                                       ^~
   include/linux/lsm_count.h:103:44: note: in expansion of macro 'COUNT_ARGS'
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                            ^~~~~~~~~~
   include/linux/lsm_count.h:104:29: note: in expansion of macro '__COUNT_LSMS'
     104 | #define COUNT_LSMS(args...) __COUNT_LSMS(args)
         |                             ^~~~~~~~~~~~
   include/linux/lsm_count.h:107:9: note: in expansion of macro 'COUNT_LSMS'
     107 |         COUNT_LSMS(                     \
         |         ^~~~~~~~~~
   include/linux/lsm_hooks.h:88:45: note: in expansion of macro 'MAX_LSM_COUNT'
      88 |                 struct lsm_static_call NAME[MAX_LSM_COUNT];
         |                                             ^~~~~~~~~~~~~
   include/linux/lsm_hook_defs.h:49:1: note: in expansion of macro 'LSM_HOOK'
      49 | LSM_HOOK(int, 0, settime, const struct timespec64 *ts,
         | ^~~~~~~~
>> include/linux/lsm_count.h:103:59: error: expected expression before '...' token
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                                           ^~~
   include/linux/args.h:21:87: note: in definition of macro '__COUNT_ARGS'
      21 | #define __COUNT_ARGS(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _n, X...) _n
         |                                                                                       ^~
   include/linux/lsm_count.h:103:44: note: in expansion of macro 'COUNT_ARGS'
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                            ^~~~~~~~~~
   include/linux/lsm_count.h:104:29: note: in expansion of macro '__COUNT_LSMS'
     104 | #define COUNT_LSMS(args...) __COUNT_LSMS(args)
         |                             ^~~~~~~~~~~~
   include/linux/lsm_count.h:107:9: note: in expansion of macro 'COUNT_LSMS'
     107 |         COUNT_LSMS(                     \
         |         ^~~~~~~~~~
   include/linux/lsm_hooks.h:88:45: note: in expansion of macro 'MAX_LSM_COUNT'
      88 |                 struct lsm_static_call NAME[MAX_LSM_COUNT];
         |                                             ^~~~~~~~~~~~~
   include/linux/lsm_hook_defs.h:51:1: note: in expansion of macro 'LSM_HOOK'
      51 | LSM_HOOK(int, 1, vm_enough_memory, struct mm_struct *mm, long pages)
         | ^~~~~~~~
>> include/linux/lsm_count.h:103:59: error: expected expression before '...' token
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                                           ^~~
   include/linux/args.h:21:87: note: in definition of macro '__COUNT_ARGS'
      21 | #define __COUNT_ARGS(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _n, X...) _n
         |                                                                                       ^~
   include/linux/lsm_count.h:103:44: note: in expansion of macro 'COUNT_ARGS'
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                            ^~~~~~~~~~
   include/linux/lsm_count.h:104:29: note: in expansion of macro '__COUNT_LSMS'
     104 | #define COUNT_LSMS(args...) __COUNT_LSMS(args)
         |                             ^~~~~~~~~~~~
   include/linux/lsm_count.h:107:9: note: in expansion of macro 'COUNT_LSMS'
     107 |         COUNT_LSMS(                     \
         |         ^~~~~~~~~~
   include/linux/lsm_hooks.h:88:45: note: in expansion of macro 'MAX_LSM_COUNT'
      88 |                 struct lsm_static_call NAME[MAX_LSM_COUNT];
         |                                             ^~~~~~~~~~~~~
   include/linux/lsm_hook_defs.h:52:1: note: in expansion of macro 'LSM_HOOK'
      52 | LSM_HOOK(int, 0, bprm_creds_for_exec, struct linux_binprm *bprm)
         | ^~~~~~~~
>> include/linux/lsm_count.h:103:59: error: expected expression before '...' token
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                                           ^~~
   include/linux/args.h:21:87: note: in definition of macro '__COUNT_ARGS'
      21 | #define __COUNT_ARGS(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _n, X...) _n
         |                                                                                       ^~
   include/linux/lsm_count.h:103:44: note: in expansion of macro 'COUNT_ARGS'
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                            ^~~~~~~~~~
   include/linux/lsm_count.h:104:29: note: in expansion of macro '__COUNT_LSMS'
     104 | #define COUNT_LSMS(args...) __COUNT_LSMS(args)
         |                             ^~~~~~~~~~~~
   include/linux/lsm_count.h:107:9: note: in expansion of macro 'COUNT_LSMS'
     107 |         COUNT_LSMS(                     \
         |         ^~~~~~~~~~
   include/linux/lsm_hooks.h:88:45: note: in expansion of macro 'MAX_LSM_COUNT'
      88 |                 struct lsm_static_call NAME[MAX_LSM_COUNT];
         |                                             ^~~~~~~~~~~~~
   include/linux/lsm_hook_defs.h:53:1: note: in expansion of macro 'LSM_HOOK'
      53 | LSM_HOOK(int, 0, bprm_creds_from_file, struct linux_binprm *bprm, const struct file *file)
         | ^~~~~~~~
>> include/linux/lsm_count.h:103:59: error: expected expression before '...' token
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                                           ^~~
   include/linux/args.h:21:87: note: in definition of macro '__COUNT_ARGS'
      21 | #define __COUNT_ARGS(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _n, X...) _n
         |                                                                                       ^~
   include/linux/lsm_count.h:103:44: note: in expansion of macro 'COUNT_ARGS'
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                            ^~~~~~~~~~
   include/linux/lsm_count.h:104:29: note: in expansion of macro '__COUNT_LSMS'
     104 | #define COUNT_LSMS(args...) __COUNT_LSMS(args)
         |                             ^~~~~~~~~~~~
   include/linux/lsm_count.h:107:9: note: in expansion of macro 'COUNT_LSMS'
     107 |         COUNT_LSMS(                     \
         |         ^~~~~~~~~~
   include/linux/lsm_hooks.h:88:45: note: in expansion of macro 'MAX_LSM_COUNT'
      88 |                 struct lsm_static_call NAME[MAX_LSM_COUNT];
         |                                             ^~~~~~~~~~~~~
   include/linux/lsm_hook_defs.h:54:1: note: in expansion of macro 'LSM_HOOK'
      54 | LSM_HOOK(int, 0, bprm_check_security, struct linux_binprm *bprm)
         | ^~~~~~~~
>> include/linux/lsm_count.h:103:59: error: expected expression before '...' token
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                                           ^~~
   include/linux/args.h:21:87: note: in definition of macro '__COUNT_ARGS'
      21 | #define __COUNT_ARGS(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _n, X...) _n
         |                                                                                       ^~
   include/linux/lsm_count.h:103:44: note: in expansion of macro 'COUNT_ARGS'
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                            ^~~~~~~~~~
   include/linux/lsm_count.h:104:29: note: in expansion of macro '__COUNT_LSMS'
     104 | #define COUNT_LSMS(args...) __COUNT_LSMS(args)
         |                             ^~~~~~~~~~~~
   include/linux/lsm_count.h:107:9: note: in expansion of macro 'COUNT_LSMS'
     107 |         COUNT_LSMS(                     \
         |         ^~~~~~~~~~
   include/linux/lsm_hooks.h:88:45: note: in expansion of macro 'MAX_LSM_COUNT'
      88 |                 struct lsm_static_call NAME[MAX_LSM_COUNT];
         |                                             ^~~~~~~~~~~~~
   include/linux/lsm_hook_defs.h:55:1: note: in expansion of macro 'LSM_HOOK'
      55 | LSM_HOOK(void, LSM_RET_VOID, bprm_committing_creds, const struct linux_binprm *bprm)
         | ^~~~~~~~
>> include/linux/lsm_count.h:103:59: error: expected expression before '...' token
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                                           ^~~
   include/linux/args.h:21:87: note: in definition of macro '__COUNT_ARGS'
      21 | #define __COUNT_ARGS(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _n, X...) _n
         |                                                                                       ^~
   include/linux/lsm_count.h:103:44: note: in expansion of macro 'COUNT_ARGS'
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                            ^~~~~~~~~~
   include/linux/lsm_count.h:104:29: note: in expansion of macro '__COUNT_LSMS'
     104 | #define COUNT_LSMS(args...) __COUNT_LSMS(args)
         |                             ^~~~~~~~~~~~
   include/linux/lsm_count.h:107:9: note: in expansion of macro 'COUNT_LSMS'
     107 |         COUNT_LSMS(                     \
         |         ^~~~~~~~~~
   include/linux/lsm_hooks.h:88:45: note: in expansion of macro 'MAX_LSM_COUNT'
      88 |                 struct lsm_static_call NAME[MAX_LSM_COUNT];
         |                                             ^~~~~~~~~~~~~
   include/linux/lsm_hook_defs.h:56:1: note: in expansion of macro 'LSM_HOOK'
      56 | LSM_HOOK(void, LSM_RET_VOID, bprm_committed_creds, const struct linux_binprm *bprm)
         | ^~~~~~~~
>> include/linux/lsm_count.h:103:59: error: expected expression before '...' token
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                                           ^~~
   include/linux/args.h:21:87: note: in definition of macro '__COUNT_ARGS'
      21 | #define __COUNT_ARGS(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _n, X...) _n
         |                                                                                       ^~
   include/linux/lsm_count.h:103:44: note: in expansion of macro 'COUNT_ARGS'
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                            ^~~~~~~~~~
   include/linux/lsm_count.h:104:29: note: in expansion of macro '__COUNT_LSMS'
     104 | #define COUNT_LSMS(args...) __COUNT_LSMS(args)
         |                             ^~~~~~~~~~~~
   include/linux/lsm_count.h:107:9: note: in expansion of macro 'COUNT_LSMS'
     107 |         COUNT_LSMS(                     \
         |         ^~~~~~~~~~
   include/linux/lsm_hooks.h:88:45: note: in expansion of macro 'MAX_LSM_COUNT'
      88 |                 struct lsm_static_call NAME[MAX_LSM_COUNT];
         |                                             ^~~~~~~~~~~~~
   include/linux/lsm_hook_defs.h:57:1: note: in expansion of macro 'LSM_HOOK'
      57 | LSM_HOOK(int, 0, fs_context_submount, struct fs_context *fc, struct super_block *reference)
         | ^~~~~~~~
   include/linux/lsm_count.h:103:59: error: expected expression before '...' token
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                                           ^~~
   include/linux/args.h:21:87: note: in definition of macro '__COUNT_ARGS'
      21 | #define __COUNT_ARGS(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _n, X...) _n
         |                                                                                       ^~
   include/linux/lsm_count.h:103:44: note: in expansion of macro 'COUNT_ARGS'
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                            ^~~~~~~~~~
   include/linux/lsm_count.h:104:29: note: in expansion of macro '__COUNT_LSMS'
     104 | #define COUNT_LSMS(args...) __COUNT_LSMS(args)
         |                             ^~~~~~~~~~~~
   include/linux/lsm_count.h:107:9: note: in expansion of macro 'COUNT_LSMS'
     107 |         COUNT_LSMS(                     \
         |         ^~~~~~~~~~
   include/linux/lsm_hooks.h:88:45: note: in expansion of macro 'MAX_LSM_COUNT'
      88 |                 struct lsm_static_call NAME[MAX_LSM_COUNT];
         |                                             ^~~~~~~~~~~~~
   include/linux/lsm_hook_defs.h:58:1: note: in expansion of macro 'LSM_HOOK'
      58 | LSM_HOOK(int, 0, fs_context_dup, struct fs_context *fc,
         | ^~~~~~~~
   include/linux/lsm_count.h:103:59: error: expected expression before '...' token
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                                           ^~~
   include/linux/args.h:21:87: note: in definition of macro '__COUNT_ARGS'
      21 | #define __COUNT_ARGS(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _n, X...) _n
         |                                                                                       ^~
   include/linux/lsm_count.h:103:44: note: in expansion of macro 'COUNT_ARGS'
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                            ^~~~~~~~~~
   include/linux/lsm_count.h:104:29: note: in expansion of macro '__COUNT_LSMS'
     104 | #define COUNT_LSMS(args...) __COUNT_LSMS(args)
         |                             ^~~~~~~~~~~~
   include/linux/lsm_count.h:107:9: note: in expansion of macro 'COUNT_LSMS'
     107 |         COUNT_LSMS(                     \
         |         ^~~~~~~~~~
   include/linux/lsm_hooks.h:88:45: note: in expansion of macro 'MAX_LSM_COUNT'
      88 |                 struct lsm_static_call NAME[MAX_LSM_COUNT];
         |                                             ^~~~~~~~~~~~~
   include/linux/lsm_hook_defs.h:60:1: note: in expansion of macro 'LSM_HOOK'
      60 | LSM_HOOK(int, -ENOPARAM, fs_context_parse_param, struct fs_context *fc,
         | ^~~~~~~~
   include/linux/lsm_count.h:103:59: error: expected expression before '...' token
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                                           ^~~
   include/linux/args.h:21:87: note: in definition of macro '__COUNT_ARGS'
      21 | #define __COUNT_ARGS(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _n, X...) _n
         |                                                                                       ^~
   include/linux/lsm_count.h:103:44: note: in expansion of macro 'COUNT_ARGS'
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                            ^~~~~~~~~~
   include/linux/lsm_count.h:104:29: note: in expansion of macro '__COUNT_LSMS'
     104 | #define COUNT_LSMS(args...) __COUNT_LSMS(args)
         |                             ^~~~~~~~~~~~
   include/linux/lsm_count.h:107:9: note: in expansion of macro 'COUNT_LSMS'
     107 |         COUNT_LSMS(                     \
         |         ^~~~~~~~~~
   include/linux/lsm_hooks.h:88:45: note: in expansion of macro 'MAX_LSM_COUNT'
      88 |                 struct lsm_static_call NAME[MAX_LSM_COUNT];
         |                                             ^~~~~~~~~~~~~
   include/linux/lsm_hook_defs.h:62:1: note: in expansion of macro 'LSM_HOOK'
      62 | LSM_HOOK(int, 0, sb_alloc_security, struct super_block *sb)
         | ^~~~~~~~
   include/linux/lsm_count.h:103:59: error: expected expression before '...' token
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                                           ^~~
   include/linux/args.h:21:87: note: in definition of macro '__COUNT_ARGS'
      21 | #define __COUNT_ARGS(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _n, X...) _n
         |                                                                                       ^~
   include/linux/lsm_count.h:103:44: note: in expansion of macro 'COUNT_ARGS'
     103 | #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
         |                                            ^~~~~~~~~~
   include/linux/lsm_count.h:104:29: note: in expansion of macro '__COUNT_LSMS'
     104 | #define COUNT_LSMS(args...) __COUNT_LSMS(args)
         |                             ^~~~~~~~~~~~
   include/linux/lsm_count.h:107:9: note: in expansion of macro 'COUNT_LSMS'
     107 |         COUNT_LSMS(                     \
         |         ^~~~~~~~~~
   include/linux/lsm_hooks.h:88:45: note: in expansion of macro 'MAX_LSM_COUNT'
      88 |                 struct lsm_static_call NAME[MAX_LSM_COUNT];
..


vim +103 include/linux/lsm_count.h

5b632c6e0372b36 KP Singh 2023-11-10   98  
5b632c6e0372b36 KP Singh 2023-11-10   99  /*
5b632c6e0372b36 KP Singh 2023-11-10  100   *  There is a trailing comma that we need to be accounted for. This is done by
5b632c6e0372b36 KP Singh 2023-11-10  101   *  using a skipped argument in __COUNT_LSMS
5b632c6e0372b36 KP Singh 2023-11-10  102   */
5b632c6e0372b36 KP Singh 2023-11-10 @103  #define __COUNT_LSMS(skipped_arg, args...) COUNT_ARGS(args...)
5b632c6e0372b36 KP Singh 2023-11-10  104  #define COUNT_LSMS(args...) __COUNT_LSMS(args)
5b632c6e0372b36 KP Singh 2023-11-10  105  

:::::: The code at line 103 was first introduced by commit
:::::: 5b632c6e0372b367164faa875a9537aa1932a4e3 security: Count the LSMs enabled at compile time

:::::: TO: KP Singh <kpsingh@kernel.org>
:::::: CC: kpsingh <kpsingh@kernel.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2024-04-27 10:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202404271857.DbtTvMCO-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=casey@schaufler-ca.com \
    --cc=keescook@chromium.org \
    --cc=kpsingh@kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.