All of lore.kernel.org
 help / color / mirror / Atom feed
* [jfern:coresched 6/34] arch/ia64/include/asm/linkage.h:7:35: warning: ISO C90 forbids mixed declarations and code
@ 2020-11-17 23:53 kernel test robot
  2020-11-18  0:55 ` Joel Fernandes
  0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2020-11-17 23:53 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 64324 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jfern/linux.git coresched
head:   98d0ec68be26c0bb610f4e55b5634289482ca9d4
commit: 1498b6039b75b6500e59f7e55ef12b7d2b5bb164 [6/34] sched: Core-wide rq->lock
config: ia64-randconfig-r011-20201116 (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0
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://git.kernel.org/pub/scm/linux/kernel/git/jfern/linux.git/commit/?id=1498b6039b75b6500e59f7e55ef12b7d2b5bb164
        git remote add jfern https://git.kernel.org/pub/scm/linux/kernel/git/jfern/linux.git
        git fetch --no-tags jfern coresched
        git checkout 1498b6039b75b6500e59f7e55ef12b7d2b5bb164
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64 

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

All warnings (new ones prefixed by >>):

   kernel/sched/core.c:6176:6: note: previous definition of 'sched_set_normal' was here
    6176 | void sched_set_normal(struct task_struct *p, int nice)
         |      ^~~~~~~~~~~~~~~~
   In file included from include/linux/linkage.h:7,
                    from include/linux/kernel.h:8,
                    from include/linux/list.h:9,
                    from include/linux/rculist.h:10,
                    from include/linux/pid.h:5,
                    from include/linux/sched.h:14,
                    from include/linux/sched/numa_balancing.h:10,
                    from include/trace/events/sched.h:8,
                    from kernel/sched/core.c:10:
   include/linux/export.h:67:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
      67 |  static const struct kernel_symbol __ksymtab_##sym  \
         |  ^~~~~~
   include/linux/export.h:108:2: note: in expansion of macro '__KSYMTAB_ENTRY'
     108 |  __KSYMTAB_ENTRY(sym, sec)
         |  ^~~~~~~~~~~~~~~
   include/linux/export.h:147:39: note: in expansion of macro '___EXPORT_SYMBOL'
     147 | #define __EXPORT_SYMBOL(sym, sec, ns) ___EXPORT_SYMBOL(sym, sec, ns)
         |                                       ^~~~~~~~~~~~~~~~
   include/linux/export.h:155:34: note: in expansion of macro '__EXPORT_SYMBOL'
     155 | #define _EXPORT_SYMBOL(sym, sec) __EXPORT_SYMBOL(sym, sec, "")
         |                                  ^~~~~~~~~~~~~~~
   include/linux/export.h:159:33: note: in expansion of macro '_EXPORT_SYMBOL'
     159 | #define EXPORT_SYMBOL_GPL(sym)  _EXPORT_SYMBOL(sym, "_gpl")
         |                                 ^~~~~~~~~~~~~~
   kernel/sched/core.c:6184:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
    6184 | EXPORT_SYMBOL_GPL(sched_set_normal);
         | ^~~~~~~~~~~~~~~~~
   kernel/sched/core.c:6187:1: error: invalid storage class for function 'do_sched_setscheduler'
    6187 | do_sched_setscheduler(pid_t pid, int policy, struct sched_param __user *param)
         | ^~~~~~~~~~~~~~~~~~~~~
   kernel/sched/core.c: In function 'do_sched_setscheduler':
   kernel/sched/core.c:6202:19: error: passing argument 1 of 'get_task_struct' from incompatible pointer type [-Werror=incompatible-pointer-types]
    6202 |   get_task_struct(p);
         |                   ^
         |                   |
         |                   struct task_struct *
   In file included from include/linux/sched/signal.h:9,
                    from include/linux/sched/cputime.h:5,
                    from kernel/sched/sched.h:11,
                    from kernel/sched/core.c:13:
   include/linux/sched/task.h:102:71: note: expected 'struct task_struct *' but argument is of type 'struct task_struct *'
     102 | static inline struct task_struct *get_task_struct(struct task_struct *t)
         |                                                   ~~~~~~~~~~~~~~~~~~~~^
   kernel/sched/core.c:6207:19: error: passing argument 1 of 'put_task_struct' from incompatible pointer type [-Werror=incompatible-pointer-types]
    6207 |   put_task_struct(p);
         |                   ^
         |                   |
         |                   struct task_struct *
   In file included from include/linux/sched/signal.h:9,
                    from include/linux/sched/cputime.h:5,
                    from kernel/sched/sched.h:11,
                    from kernel/sched/core.c:13:
   include/linux/sched/task.h:110:56: note: expected 'struct task_struct *' but argument is of type 'struct task_struct *'
     110 | static inline void put_task_struct(struct task_struct *t)
         |                                    ~~~~~~~~~~~~~~~~~~~~^
   kernel/sched/core.c: In function 'is_migration_disabled':
   kernel/sched/core.c:6216:12: error: invalid storage class for function 'sched_copy_attr'
    6216 | static int sched_copy_attr(struct sched_attr __user *uattr, struct sched_attr *attr)
         |            ^~~~~~~~~~~~~~~
   In file included from kernel/sched/sched.h:65,
                    from kernel/sched/core.c:13:
   kernel/sched/core.c:6266:69: warning: 'alias' attribute ignored [-Wattributes]
    6266 | SYSCALL_DEFINE3(sched_setscheduler, pid_t, pid, int, policy, struct sched_param __user *, param)
         |                                                                     ^~~~~~~~~~~
   include/linux/syscalls.h:115:25: note: in definition of macro '__SC_DECL'
     115 | #define __SC_DECL(t, a) t a
         |                         ^
   include/linux/syscalls.h:108:35: note: in expansion of macro '__MAP1'
     108 | #define __MAP2(m,t,a,...) m(t,a), __MAP1(m,__VA_ARGS__)
         |                                   ^~~~~~
   include/linux/syscalls.h:109:35: note: in expansion of macro '__MAP2'
     109 | #define __MAP3(m,t,a,...) m(t,a), __MAP2(m,__VA_ARGS__)
         |                                   ^~~~~~
   include/linux/syscalls.h:113:22: note: in expansion of macro '__MAP3'
     113 | #define __MAP(n,...) __MAP##n(__VA_ARGS__)
         |                      ^~~~~
   include/linux/syscalls.h:238:28: note: in expansion of macro '__MAP'
     238 |  asmlinkage long sys##name(__MAP(x,__SC_DECL,__VA_ARGS__)) \
         |                            ^~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:215:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     215 | #define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6266:1: note: in expansion of macro 'SYSCALL_DEFINE3'
    6266 | SYSCALL_DEFINE3(sched_setscheduler, pid_t, pid, int, policy, struct sched_param __user *, param)
         | ^~~~~~~~~~~~~~~
   In file included from include/linux/linkage.h:8,
                    from include/linux/kernel.h:8,
                    from include/linux/list.h:9,
                    from include/linux/rculist.h:10,
                    from include/linux/pid.h:5,
                    from include/linux/sched.h:14,
                    from include/linux/sched/numa_balancing.h:10,
                    from include/trace/events/sched.h:8,
                    from kernel/sched/core.c:10:
>> arch/ia64/include/asm/linkage.h:7:35: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
       7 | #define asmlinkage CPP_ASMLINKAGE __attribute__((syscall_linkage))
         |                                   ^~~~~~~~~~~~~
   include/linux/syscalls.h:238:2: note: in expansion of macro 'asmlinkage'
     238 |  asmlinkage long sys##name(__MAP(x,__SC_DECL,__VA_ARGS__)) \
         |  ^~~~~~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:215:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     215 | #define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6266:1: note: in expansion of macro 'SYSCALL_DEFINE3'
    6266 | SYSCALL_DEFINE3(sched_setscheduler, pid_t, pid, int, policy, struct sched_param __user *, param)
         | ^~~~~~~~~~~~~~~
   In file included from kernel/sched/sched.h:65,
                    from kernel/sched/core.c:13:
   include/linux/syscalls.h:241:21: error: invalid storage class for function '__do_sys_sched_setscheduler'
     241 |  static inline long __do_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__));\
         |                     ^~~~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:215:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     215 | #define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6266:1: note: in expansion of macro 'SYSCALL_DEFINE3'
    6266 | SYSCALL_DEFINE3(sched_setscheduler, pid_t, pid, int, policy, struct sched_param __user *, param)
         | ^~~~~~~~~~~~~~~
   include/linux/syscalls.h:241:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
     241 |  static inline long __do_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__));\
         |  ^~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:215:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     215 | #define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6266:1: note: in expansion of macro 'SYSCALL_DEFINE3'
    6266 | SYSCALL_DEFINE3(sched_setscheduler, pid_t, pid, int, policy, struct sched_param __user *, param)
         | ^~~~~~~~~~~~~~~
   include/linux/syscalls.h:243:18: error: static declaration of '__se_sys_sched_setscheduler' follows non-static declaration
     243 |  asmlinkage long __se_sys##name(__MAP(x,__SC_LONG,__VA_ARGS__)) \
         |                  ^~~~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:215:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     215 | #define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6266:1: note: in expansion of macro 'SYSCALL_DEFINE3'
    6266 | SYSCALL_DEFINE3(sched_setscheduler, pid_t, pid, int, policy, struct sched_param __user *, param)
         | ^~~~~~~~~~~~~~~
   include/linux/syscalls.h:242:18: note: previous declaration of '__se_sys_sched_setscheduler' was here
     242 |  asmlinkage long __se_sys##name(__MAP(x,__SC_LONG,__VA_ARGS__)); \
         |                  ^~~~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:215:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     215 | #define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6266:1: note: in expansion of macro 'SYSCALL_DEFINE3'
    6266 | SYSCALL_DEFINE3(sched_setscheduler, pid_t, pid, int, policy, struct sched_param __user *, param)
         | ^~~~~~~~~~~~~~~
   kernel/sched/core.c: In function '__se_sys_sched_setscheduler':
   include/linux/syscalls.h:245:14: error: implicit declaration of function '__do_sys_sched_setscheduler'; did you mean '__se_sys_sched_setscheduler'? [-Werror=implicit-function-declaration]
     245 |   long ret = __do_sys##name(__MAP(x,__SC_CAST,__VA_ARGS__));\
         |              ^~~~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:215:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     215 | #define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6266:1: note: in expansion of macro 'SYSCALL_DEFINE3'
    6266 | SYSCALL_DEFINE3(sched_setscheduler, pid_t, pid, int, policy, struct sched_param __user *, param)
         | ^~~~~~~~~~~~~~~
   kernel/sched/core.c: In function 'is_migration_disabled':
   include/linux/syscalls.h:251:21: error: invalid storage class for function '__do_sys_sched_setscheduler'
     251 |  static inline long __do_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__))
         |                     ^~~~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:215:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     215 | #define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6266:1: note: in expansion of macro 'SYSCALL_DEFINE3'
    6266 | SYSCALL_DEFINE3(sched_setscheduler, pid_t, pid, int, policy, struct sched_param __user *, param)
         | ^~~~~~~~~~~~~~~
   include/linux/syscalls.h:251:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
     251 |  static inline long __do_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__))
         |  ^~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:215:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     215 | #define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6266:1: note: in expansion of macro 'SYSCALL_DEFINE3'
    6266 | SYSCALL_DEFINE3(sched_setscheduler, pid_t, pid, int, policy, struct sched_param __user *, param)
         | ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6281:52: warning: 'alias' attribute ignored [-Wattributes]
    6281 | SYSCALL_DEFINE2(sched_setparam, pid_t, pid, struct sched_param __user *, param)
         |                                                    ^~~~~~~~~~~
   include/linux/syscalls.h:115:25: note: in definition of macro '__SC_DECL'
     115 | #define __SC_DECL(t, a) t a
         |                         ^
   include/linux/syscalls.h:108:35: note: in expansion of macro '__MAP1'
     108 | #define __MAP2(m,t,a,...) m(t,a), __MAP1(m,__VA_ARGS__)
         |                                   ^~~~~~
   include/linux/syscalls.h:113:22: note: in expansion of macro '__MAP2'
     113 | #define __MAP(n,...) __MAP##n(__VA_ARGS__)
         |                      ^~~~~
   include/linux/syscalls.h:238:28: note: in expansion of macro '__MAP'
     238 |  asmlinkage long sys##name(__MAP(x,__SC_DECL,__VA_ARGS__)) \
         |                            ^~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:214:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     214 | #define SYSCALL_DEFINE2(name, ...) SYSCALL_DEFINEx(2, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6281:1: note: in expansion of macro 'SYSCALL_DEFINE2'
    6281 | SYSCALL_DEFINE2(sched_setparam, pid_t, pid, struct sched_param __user *, param)
         | ^~~~~~~~~~~~~~~
   In file included from include/linux/linkage.h:8,
                    from include/linux/kernel.h:8,
                    from include/linux/list.h:9,
                    from include/linux/rculist.h:10,
                    from include/linux/pid.h:5,
                    from include/linux/sched.h:14,
                    from include/linux/sched/numa_balancing.h:10,
                    from include/trace/events/sched.h:8,
                    from kernel/sched/core.c:10:
>> arch/ia64/include/asm/linkage.h:7:35: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
       7 | #define asmlinkage CPP_ASMLINKAGE __attribute__((syscall_linkage))
         |                                   ^~~~~~~~~~~~~
   include/linux/syscalls.h:238:2: note: in expansion of macro 'asmlinkage'
     238 |  asmlinkage long sys##name(__MAP(x,__SC_DECL,__VA_ARGS__)) \
         |  ^~~~~~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:214:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     214 | #define SYSCALL_DEFINE2(name, ...) SYSCALL_DEFINEx(2, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6281:1: note: in expansion of macro 'SYSCALL_DEFINE2'
    6281 | SYSCALL_DEFINE2(sched_setparam, pid_t, pid, struct sched_param __user *, param)
         | ^~~~~~~~~~~~~~~
   In file included from kernel/sched/sched.h:65,
                    from kernel/sched/core.c:13:
   include/linux/syscalls.h:241:21: error: invalid storage class for function '__do_sys_sched_setparam'
     241 |  static inline long __do_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__));\
         |                     ^~~~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:214:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     214 | #define SYSCALL_DEFINE2(name, ...) SYSCALL_DEFINEx(2, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6281:1: note: in expansion of macro 'SYSCALL_DEFINE2'
    6281 | SYSCALL_DEFINE2(sched_setparam, pid_t, pid, struct sched_param __user *, param)
         | ^~~~~~~~~~~~~~~
   include/linux/syscalls.h:241:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
     241 |  static inline long __do_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__));\
         |  ^~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:214:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     214 | #define SYSCALL_DEFINE2(name, ...) SYSCALL_DEFINEx(2, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6281:1: note: in expansion of macro 'SYSCALL_DEFINE2'
    6281 | SYSCALL_DEFINE2(sched_setparam, pid_t, pid, struct sched_param __user *, param)
         | ^~~~~~~~~~~~~~~
   include/linux/syscalls.h:243:18: error: static declaration of '__se_sys_sched_setparam' follows non-static declaration
     243 |  asmlinkage long __se_sys##name(__MAP(x,__SC_LONG,__VA_ARGS__)) \
         |                  ^~~~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:214:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     214 | #define SYSCALL_DEFINE2(name, ...) SYSCALL_DEFINEx(2, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6281:1: note: in expansion of macro 'SYSCALL_DEFINE2'
    6281 | SYSCALL_DEFINE2(sched_setparam, pid_t, pid, struct sched_param __user *, param)
         | ^~~~~~~~~~~~~~~
   include/linux/syscalls.h:242:18: note: previous declaration of '__se_sys_sched_setparam' was here
     242 |  asmlinkage long __se_sys##name(__MAP(x,__SC_LONG,__VA_ARGS__)); \
         |                  ^~~~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:214:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     214 | #define SYSCALL_DEFINE2(name, ...) SYSCALL_DEFINEx(2, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6281:1: note: in expansion of macro 'SYSCALL_DEFINE2'
    6281 | SYSCALL_DEFINE2(sched_setparam, pid_t, pid, struct sched_param __user *, param)
         | ^~~~~~~~~~~~~~~
   kernel/sched/core.c: In function '__se_sys_sched_setparam':
   include/linux/syscalls.h:245:14: error: implicit declaration of function '__do_sys_sched_setparam'; did you mean '__se_sys_sched_setparam'? [-Werror=implicit-function-declaration]
     245 |   long ret = __do_sys##name(__MAP(x,__SC_CAST,__VA_ARGS__));\
         |              ^~~~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:214:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     214 | #define SYSCALL_DEFINE2(name, ...) SYSCALL_DEFINEx(2, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6281:1: note: in expansion of macro 'SYSCALL_DEFINE2'
    6281 | SYSCALL_DEFINE2(sched_setparam, pid_t, pid, struct sched_param __user *, param)
         | ^~~~~~~~~~~~~~~
   kernel/sched/core.c: In function 'is_migration_disabled':
   include/linux/syscalls.h:251:21: error: invalid storage class for function '__do_sys_sched_setparam'
     251 |  static inline long __do_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__))
         |                     ^~~~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:214:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     214 | #define SYSCALL_DEFINE2(name, ...) SYSCALL_DEFINEx(2, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6281:1: note: in expansion of macro 'SYSCALL_DEFINE2'
    6281 | SYSCALL_DEFINE2(sched_setparam, pid_t, pid, struct sched_param __user *, param)
         | ^~~~~~~~~~~~~~~
   include/linux/syscalls.h:251:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
     251 |  static inline long __do_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__))
         |  ^~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:214:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     214 | #define SYSCALL_DEFINE2(name, ...) SYSCALL_DEFINEx(2, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6281:1: note: in expansion of macro 'SYSCALL_DEFINE2'
    6281 | SYSCALL_DEFINE2(sched_setparam, pid_t, pid, struct sched_param __user *, param)
         | ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6292:51: warning: 'alias' attribute ignored [-Wattributes]
    6292 | SYSCALL_DEFINE3(sched_setattr, pid_t, pid, struct sched_attr __user *, uattr,
         |                                                   ^~~~~~~~~~
   include/linux/syscalls.h:115:25: note: in definition of macro '__SC_DECL'
     115 | #define __SC_DECL(t, a) t a
         |                         ^
   include/linux/syscalls.h:109:35: note: in expansion of macro '__MAP2'
     109 | #define __MAP3(m,t,a,...) m(t,a), __MAP2(m,__VA_ARGS__)
         |                                   ^~~~~~
   include/linux/syscalls.h:113:22: note: in expansion of macro '__MAP3'
     113 | #define __MAP(n,...) __MAP##n(__VA_ARGS__)
         |                      ^~~~~
   include/linux/syscalls.h:238:28: note: in expansion of macro '__MAP'
     238 |  asmlinkage long sys##name(__MAP(x,__SC_DECL,__VA_ARGS__)) \
         |                            ^~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:215:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     215 | #define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6292:1: note: in expansion of macro 'SYSCALL_DEFINE3'
    6292 | SYSCALL_DEFINE3(sched_setattr, pid_t, pid, struct sched_attr __user *, uattr,
         | ^~~~~~~~~~~~~~~
   In file included from include/linux/linkage.h:8,
                    from include/linux/kernel.h:8,
                    from include/linux/list.h:9,
                    from include/linux/rculist.h:10,
                    from include/linux/pid.h:5,
                    from include/linux/sched.h:14,
                    from include/linux/sched/numa_balancing.h:10,
                    from include/trace/events/sched.h:8,
                    from kernel/sched/core.c:10:
>> arch/ia64/include/asm/linkage.h:7:35: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
       7 | #define asmlinkage CPP_ASMLINKAGE __attribute__((syscall_linkage))
         |                                   ^~~~~~~~~~~~~
   include/linux/syscalls.h:238:2: note: in expansion of macro 'asmlinkage'
     238 |  asmlinkage long sys##name(__MAP(x,__SC_DECL,__VA_ARGS__)) \
         |  ^~~~~~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:215:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     215 | #define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6292:1: note: in expansion of macro 'SYSCALL_DEFINE3'
    6292 | SYSCALL_DEFINE3(sched_setattr, pid_t, pid, struct sched_attr __user *, uattr,
         | ^~~~~~~~~~~~~~~
   In file included from kernel/sched/sched.h:65,
                    from kernel/sched/core.c:13:
   include/linux/syscalls.h:241:21: error: invalid storage class for function '__do_sys_sched_setattr'
     241 |  static inline long __do_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__));\
         |                     ^~~~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:215:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     215 | #define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6292:1: note: in expansion of macro 'SYSCALL_DEFINE3'
    6292 | SYSCALL_DEFINE3(sched_setattr, pid_t, pid, struct sched_attr __user *, uattr,
         | ^~~~~~~~~~~~~~~
   include/linux/syscalls.h:241:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
     241 |  static inline long __do_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__));\
         |  ^~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:215:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     215 | #define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6292:1: note: in expansion of macro 'SYSCALL_DEFINE3'
    6292 | SYSCALL_DEFINE3(sched_setattr, pid_t, pid, struct sched_attr __user *, uattr,
         | ^~~~~~~~~~~~~~~
   include/linux/syscalls.h:243:18: error: static declaration of '__se_sys_sched_setattr' follows non-static declaration
     243 |  asmlinkage long __se_sys##name(__MAP(x,__SC_LONG,__VA_ARGS__)) \
         |                  ^~~~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:215:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     215 | #define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6292:1: note: in expansion of macro 'SYSCALL_DEFINE3'
    6292 | SYSCALL_DEFINE3(sched_setattr, pid_t, pid, struct sched_attr __user *, uattr,
         | ^~~~~~~~~~~~~~~
   include/linux/syscalls.h:242:18: note: previous declaration of '__se_sys_sched_setattr' was here
     242 |  asmlinkage long __se_sys##name(__MAP(x,__SC_LONG,__VA_ARGS__)); \
         |                  ^~~~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:215:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     215 | #define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6292:1: note: in expansion of macro 'SYSCALL_DEFINE3'
    6292 | SYSCALL_DEFINE3(sched_setattr, pid_t, pid, struct sched_attr __user *, uattr,
         | ^~~~~~~~~~~~~~~
   kernel/sched/core.c: In function '__se_sys_sched_setattr':
   include/linux/syscalls.h:245:14: error: implicit declaration of function '__do_sys_sched_setattr'; did you mean '__se_sys_sched_setattr'? [-Werror=implicit-function-declaration]
     245 |   long ret = __do_sys##name(__MAP(x,__SC_CAST,__VA_ARGS__));\
         |              ^~~~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:215:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     215 | #define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6292:1: note: in expansion of macro 'SYSCALL_DEFINE3'
    6292 | SYSCALL_DEFINE3(sched_setattr, pid_t, pid, struct sched_attr __user *, uattr,
         | ^~~~~~~~~~~~~~~
   kernel/sched/core.c: In function 'is_migration_disabled':
   include/linux/syscalls.h:251:21: error: invalid storage class for function '__do_sys_sched_setattr'
     251 |  static inline long __do_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__))
         |                     ^~~~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:215:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     215 | #define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6292:1: note: in expansion of macro 'SYSCALL_DEFINE3'
    6292 | SYSCALL_DEFINE3(sched_setattr, pid_t, pid, struct sched_attr __user *, uattr,
         | ^~~~~~~~~~~~~~~
   kernel/sched/core.c: In function '__do_sys_sched_setattr':
   kernel/sched/core.c:6315:19: error: passing argument 1 of 'get_task_struct' from incompatible pointer type [-Werror=incompatible-pointer-types]
    6315 |   get_task_struct(p);
         |                   ^
         |                   |
         |                   struct task_struct *
   In file included from include/linux/sched/signal.h:9,
                    from include/linux/sched/cputime.h:5,
                    from kernel/sched/sched.h:11,
                    from kernel/sched/core.c:13:
   include/linux/sched/task.h:102:71: note: expected 'struct task_struct *' but argument is of type 'struct task_struct *'
     102 | static inline struct task_struct *get_task_struct(struct task_struct *t)
         |                                                   ~~~~~~~~~~~~~~~~~~~~^
   kernel/sched/core.c:6320:19: error: passing argument 1 of 'put_task_struct' from incompatible pointer type [-Werror=incompatible-pointer-types]
    6320 |   put_task_struct(p);
         |                   ^
         |                   |
         |                   struct task_struct *
   In file included from include/linux/sched/signal.h:9,
                    from include/linux/sched/cputime.h:5,
                    from kernel/sched/sched.h:11,
                    from kernel/sched/core.c:13:
   include/linux/sched/task.h:110:56: note: expected 'struct task_struct *' but argument is of type 'struct task_struct *'
     110 | static inline void put_task_struct(struct task_struct *t)
         |                                    ~~~~~~~~~~~~~~~~~~~~^
   In file included from kernel/sched/sched.h:65,
                    from kernel/sched/core.c:13:
   kernel/sched/core.c: In function 'is_migration_disabled':
   include/linux/syscalls.h:251:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
     251 |  static inline long __do_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__))
         |  ^~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:215:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     215 | #define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6292:1: note: in expansion of macro 'SYSCALL_DEFINE3'
    6292 | SYSCALL_DEFINE3(sched_setattr, pid_t, pid, struct sched_attr __user *, uattr,
         | ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6333:1: warning: 'alias' attribute ignored [-Wattributes]
    6333 | SYSCALL_DEFINE1(sched_getscheduler, pid_t, pid)
         | ^~~~~~~~~~~~~~~
   In file included from include/linux/linkage.h:8,
                    from include/linux/kernel.h:8,
                    from include/linux/list.h:9,
                    from include/linux/rculist.h:10,
                    from include/linux/pid.h:5,
                    from include/linux/sched.h:14,
                    from include/linux/sched/numa_balancing.h:10,
                    from include/trace/events/sched.h:8,
                    from kernel/sched/core.c:10:
>> arch/ia64/include/asm/linkage.h:7:35: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
       7 | #define asmlinkage CPP_ASMLINKAGE __attribute__((syscall_linkage))
         |                                   ^~~~~~~~~~~~~
   include/linux/syscalls.h:238:2: note: in expansion of macro 'asmlinkage'
     238 |  asmlinkage long sys##name(__MAP(x,__SC_DECL,__VA_ARGS__)) \
         |  ^~~~~~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:213:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     213 | #define SYSCALL_DEFINE1(name, ...) SYSCALL_DEFINEx(1, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6333:1: note: in expansion of macro 'SYSCALL_DEFINE1'
    6333 | SYSCALL_DEFINE1(sched_getscheduler, pid_t, pid)
         | ^~~~~~~~~~~~~~~
   In file included from kernel/sched/sched.h:65,
                    from kernel/sched/core.c:13:
   include/linux/syscalls.h:241:21: error: invalid storage class for function '__do_sys_sched_getscheduler'
     241 |  static inline long __do_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__));\
         |                     ^~~~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:213:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     213 | #define SYSCALL_DEFINE1(name, ...) SYSCALL_DEFINEx(1, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6333:1: note: in expansion of macro 'SYSCALL_DEFINE1'
    6333 | SYSCALL_DEFINE1(sched_getscheduler, pid_t, pid)
         | ^~~~~~~~~~~~~~~
   include/linux/syscalls.h:241:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
     241 |  static inline long __do_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__));\
         |  ^~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:213:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     213 | #define SYSCALL_DEFINE1(name, ...) SYSCALL_DEFINEx(1, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6333:1: note: in expansion of macro 'SYSCALL_DEFINE1'
    6333 | SYSCALL_DEFINE1(sched_getscheduler, pid_t, pid)
         | ^~~~~~~~~~~~~~~
   include/linux/syscalls.h:243:18: error: static declaration of '__se_sys_sched_getscheduler' follows non-static declaration
     243 |  asmlinkage long __se_sys##name(__MAP(x,__SC_LONG,__VA_ARGS__)) \
         |                  ^~~~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:213:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     213 | #define SYSCALL_DEFINE1(name, ...) SYSCALL_DEFINEx(1, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6333:1: note: in expansion of macro 'SYSCALL_DEFINE1'
    6333 | SYSCALL_DEFINE1(sched_getscheduler, pid_t, pid)
         | ^~~~~~~~~~~~~~~
   include/linux/syscalls.h:242:18: note: previous declaration of '__se_sys_sched_getscheduler' was here
     242 |  asmlinkage long __se_sys##name(__MAP(x,__SC_LONG,__VA_ARGS__)); \
         |                  ^~~~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:213:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     213 | #define SYSCALL_DEFINE1(name, ...) SYSCALL_DEFINEx(1, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6333:1: note: in expansion of macro 'SYSCALL_DEFINE1'
    6333 | SYSCALL_DEFINE1(sched_getscheduler, pid_t, pid)
         | ^~~~~~~~~~~~~~~
   kernel/sched/core.c: In function '__se_sys_sched_getscheduler':
   include/linux/syscalls.h:245:14: error: implicit declaration of function '__do_sys_sched_getscheduler'; did you mean '__do_sys_sched_setscheduler'? [-Werror=implicit-function-declaration]
     245 |   long ret = __do_sys##name(__MAP(x,__SC_CAST,__VA_ARGS__));\
         |              ^~~~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:213:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     213 | #define SYSCALL_DEFINE1(name, ...) SYSCALL_DEFINEx(1, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6333:1: note: in expansion of macro 'SYSCALL_DEFINE1'
    6333 | SYSCALL_DEFINE1(sched_getscheduler, pid_t, pid)
         | ^~~~~~~~~~~~~~~
   kernel/sched/core.c: In function 'is_migration_disabled':
   include/linux/syscalls.h:251:21: error: invalid storage class for function '__do_sys_sched_getscheduler'
     251 |  static inline long __do_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__))
         |                     ^~~~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:213:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     213 | #define SYSCALL_DEFINE1(name, ...) SYSCALL_DEFINEx(1, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6333:1: note: in expansion of macro 'SYSCALL_DEFINE1'
    6333 | SYSCALL_DEFINE1(sched_getscheduler, pid_t, pid)
         | ^~~~~~~~~~~~~~~
   kernel/sched/core.c: In function '__do_sys_sched_getscheduler':
   kernel/sched/core.c:6345:39: error: passing argument 1 of 'security_task_getscheduler' from incompatible pointer type [-Werror=incompatible-pointer-types]
    6345 |   retval = security_task_getscheduler(p);
         |                                       ^
         |                                       |
         |                                       struct task_struct *
   In file included from kernel/sched/sched.h:61,
                    from kernel/sched/core.c:13:
   include/linux/security.h:1115:66: note: expected 'struct task_struct *' but argument is of type 'struct task_struct *'
    1115 | static inline int security_task_getscheduler(struct task_struct *p)
         |                                              ~~~~~~~~~~~~~~~~~~~~^
   In file included from kernel/sched/sched.h:65,
                    from kernel/sched/core.c:13:
   kernel/sched/core.c: In function 'is_migration_disabled':
   include/linux/syscalls.h:251:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
     251 |  static inline long __do_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__))
         |  ^~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:213:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     213 | #define SYSCALL_DEFINE1(name, ...) SYSCALL_DEFINEx(1, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6333:1: note: in expansion of macro 'SYSCALL_DEFINE1'
    6333 | SYSCALL_DEFINE1(sched_getscheduler, pid_t, pid)
         | ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6362:52: warning: 'alias' attribute ignored [-Wattributes]
    6362 | SYSCALL_DEFINE2(sched_getparam, pid_t, pid, struct sched_param __user *, param)
         |                                                    ^~~~~~~~~~~
   include/linux/syscalls.h:115:25: note: in definition of macro '__SC_DECL'
     115 | #define __SC_DECL(t, a) t a
         |                         ^
   include/linux/syscalls.h:108:35: note: in expansion of macro '__MAP1'
     108 | #define __MAP2(m,t,a,...) m(t,a), __MAP1(m,__VA_ARGS__)
         |                                   ^~~~~~
   include/linux/syscalls.h:113:22: note: in expansion of macro '__MAP2'
     113 | #define __MAP(n,...) __MAP##n(__VA_ARGS__)
         |                      ^~~~~
   include/linux/syscalls.h:238:28: note: in expansion of macro '__MAP'
     238 |  asmlinkage long sys##name(__MAP(x,__SC_DECL,__VA_ARGS__)) \
         |                            ^~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:214:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     214 | #define SYSCALL_DEFINE2(name, ...) SYSCALL_DEFINEx(2, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6362:1: note: in expansion of macro 'SYSCALL_DEFINE2'
    6362 | SYSCALL_DEFINE2(sched_getparam, pid_t, pid, struct sched_param __user *, param)
         | ^~~~~~~~~~~~~~~
   In file included from include/linux/linkage.h:8,
                    from include/linux/kernel.h:8,
                    from include/linux/list.h:9,
                    from include/linux/rculist.h:10,
                    from include/linux/pid.h:5,
                    from include/linux/sched.h:14,
                    from include/linux/sched/numa_balancing.h:10,
                    from include/trace/events/sched.h:8,
                    from kernel/sched/core.c:10:
>> arch/ia64/include/asm/linkage.h:7:35: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
       7 | #define asmlinkage CPP_ASMLINKAGE __attribute__((syscall_linkage))
         |                                   ^~~~~~~~~~~~~
   include/linux/syscalls.h:238:2: note: in expansion of macro 'asmlinkage'
     238 |  asmlinkage long sys##name(__MAP(x,__SC_DECL,__VA_ARGS__)) \
         |  ^~~~~~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:214:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     214 | #define SYSCALL_DEFINE2(name, ...) SYSCALL_DEFINEx(2, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6362:1: note: in expansion of macro 'SYSCALL_DEFINE2'
    6362 | SYSCALL_DEFINE2(sched_getparam, pid_t, pid, struct sched_param __user *, param)
         | ^~~~~~~~~~~~~~~
   In file included from kernel/sched/sched.h:65,
                    from kernel/sched/core.c:13:
   include/linux/syscalls.h:241:21: error: invalid storage class for function '__do_sys_sched_getparam'
     241 |  static inline long __do_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__));\
         |                     ^~~~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:214:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     214 | #define SYSCALL_DEFINE2(name, ...) SYSCALL_DEFINEx(2, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6362:1: note: in expansion of macro 'SYSCALL_DEFINE2'
    6362 | SYSCALL_DEFINE2(sched_getparam, pid_t, pid, struct sched_param __user *, param)
         | ^~~~~~~~~~~~~~~
   include/linux/syscalls.h:241:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
     241 |  static inline long __do_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__));\
         |  ^~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:214:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     214 | #define SYSCALL_DEFINE2(name, ...) SYSCALL_DEFINEx(2, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6362:1: note: in expansion of macro 'SYSCALL_DEFINE2'
    6362 | SYSCALL_DEFINE2(sched_getparam, pid_t, pid, struct sched_param __user *, param)
         | ^~~~~~~~~~~~~~~
   include/linux/syscalls.h:243:18: error: static declaration of '__se_sys_sched_getparam' follows non-static declaration
     243 |  asmlinkage long __se_sys##name(__MAP(x,__SC_LONG,__VA_ARGS__)) \
         |                  ^~~~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:214:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     214 | #define SYSCALL_DEFINE2(name, ...) SYSCALL_DEFINEx(2, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6362:1: note: in expansion of macro 'SYSCALL_DEFINE2'
    6362 | SYSCALL_DEFINE2(sched_getparam, pid_t, pid, struct sched_param __user *, param)
         | ^~~~~~~~~~~~~~~
   include/linux/syscalls.h:242:18: note: previous declaration of '__se_sys_sched_getparam' was here
     242 |  asmlinkage long __se_sys##name(__MAP(x,__SC_LONG,__VA_ARGS__)); \
         |                  ^~~~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:214:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     214 | #define SYSCALL_DEFINE2(name, ...) SYSCALL_DEFINEx(2, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6362:1: note: in expansion of macro 'SYSCALL_DEFINE2'
    6362 | SYSCALL_DEFINE2(sched_getparam, pid_t, pid, struct sched_param __user *, param)
         | ^~~~~~~~~~~~~~~
   kernel/sched/core.c: In function '__se_sys_sched_getparam':
   include/linux/syscalls.h:245:14: error: implicit declaration of function '__do_sys_sched_getparam'; did you mean '__do_sys_sched_setparam'? [-Werror=implicit-function-declaration]
     245 |   long ret = __do_sys##name(__MAP(x,__SC_CAST,__VA_ARGS__));\
         |              ^~~~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:214:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     214 | #define SYSCALL_DEFINE2(name, ...) SYSCALL_DEFINEx(2, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6362:1: note: in expansion of macro 'SYSCALL_DEFINE2'
    6362 | SYSCALL_DEFINE2(sched_getparam, pid_t, pid, struct sched_param __user *, param)
         | ^~~~~~~~~~~~~~~
   kernel/sched/core.c: In function 'is_migration_disabled':
   include/linux/syscalls.h:251:21: error: invalid storage class for function '__do_sys_sched_getparam'
     251 |  static inline long __do_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__))
         |                     ^~~~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:214:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     214 | #define SYSCALL_DEFINE2(name, ...) SYSCALL_DEFINEx(2, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6362:1: note: in expansion of macro 'SYSCALL_DEFINE2'
    6362 | SYSCALL_DEFINE2(sched_getparam, pid_t, pid, struct sched_param __user *, param)
         | ^~~~~~~~~~~~~~~
   kernel/sched/core.c: In function '__do_sys_sched_getparam':
   kernel/sched/core.c:6377:38: error: passing argument 1 of 'security_task_getscheduler' from incompatible pointer type [-Werror=incompatible-pointer-types]
    6377 |  retval = security_task_getscheduler(p);
         |                                      ^
         |                                      |
         |                                      struct task_struct *
   In file included from kernel/sched/sched.h:61,
                    from kernel/sched/core.c:13:
   include/linux/security.h:1115:66: note: expected 'struct task_struct *' but argument is of type 'struct task_struct *'
    1115 | static inline int security_task_getscheduler(struct task_struct *p)
         |                                              ~~~~~~~~~~~~~~~~~~~~^
   kernel/sched/core.c:6381:25: error: passing argument 1 of 'task_has_rt_policy' from incompatible pointer type [-Werror=incompatible-pointer-types]
    6381 |  if (task_has_rt_policy(p))
         |                         ^
         |                         |
         |                         struct task_struct *
   In file included from kernel/sched/core.c:13:
   kernel/sched/sched.h:189:58: note: expected 'struct task_struct *' but argument is of type 'struct task_struct *'
     189 | static inline int task_has_rt_policy(struct task_struct *p)
         |                                      ~~~~~~~~~~~~~~~~~~~~^
   In file included from kernel/sched/sched.h:65,
                    from kernel/sched/core.c:13:
   kernel/sched/core.c: In function 'is_migration_disabled':
   include/linux/syscalls.h:251:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
     251 |  static inline long __do_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__))
         |  ^~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:214:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     214 | #define SYSCALL_DEFINE2(name, ...) SYSCALL_DEFINEx(2, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6362:1: note: in expansion of macro 'SYSCALL_DEFINE2'
    6362 | SYSCALL_DEFINE2(sched_getparam, pid_t, pid, struct sched_param __user *, param)
         | ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6406:1: error: invalid storage class for function 'sched_attr_copy_to_user'
    6406 | sched_attr_copy_to_user(struct sched_attr __user *uattr,
         | ^~~~~~~~~~~~~~~~~~~~~~~
   In file included from kernel/sched/sched.h:65,
                    from kernel/sched/core.c:13:
   kernel/sched/core.c:6443:51: warning: 'alias' attribute ignored [-Wattributes]
    6443 | SYSCALL_DEFINE4(sched_getattr, pid_t, pid, struct sched_attr __user *, uattr,
         |                                                   ^~~~~~~~~~
   include/linux/syscalls.h:115:25: note: in definition of macro '__SC_DECL'
     115 | #define __SC_DECL(t, a) t a
         |                         ^
   include/linux/syscalls.h:110:35: note: in expansion of macro '__MAP3'
     110 | #define __MAP4(m,t,a,...) m(t,a), __MAP3(m,__VA_ARGS__)
         |                                   ^~~~~~
   include/linux/syscalls.h:113:22: note: in expansion of macro '__MAP4'
     113 | #define __MAP(n,...) __MAP##n(__VA_ARGS__)
         |                      ^~~~~
   include/linux/syscalls.h:238:28: note: in expansion of macro '__MAP'
     238 |  asmlinkage long sys##name(__MAP(x,__SC_DECL,__VA_ARGS__)) \
         |                            ^~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:216:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     216 | #define SYSCALL_DEFINE4(name, ...) SYSCALL_DEFINEx(4, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6443:1: note: in expansion of macro 'SYSCALL_DEFINE4'
    6443 | SYSCALL_DEFINE4(sched_getattr, pid_t, pid, struct sched_attr __user *, uattr,
         | ^~~~~~~~~~~~~~~
   In file included from include/linux/linkage.h:8,
                    from include/linux/kernel.h:8,
                    from include/linux/list.h:9,
                    from include/linux/rculist.h:10,
                    from include/linux/pid.h:5,
                    from include/linux/sched.h:14,
                    from include/linux/sched/numa_balancing.h:10,
                    from include/trace/events/sched.h:8,
                    from kernel/sched/core.c:10:
>> arch/ia64/include/asm/linkage.h:7:35: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
       7 | #define asmlinkage CPP_ASMLINKAGE __attribute__((syscall_linkage))
         |                                   ^~~~~~~~~~~~~
   include/linux/syscalls.h:238:2: note: in expansion of macro 'asmlinkage'
     238 |  asmlinkage long sys##name(__MAP(x,__SC_DECL,__VA_ARGS__)) \
         |  ^~~~~~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:216:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     216 | #define SYSCALL_DEFINE4(name, ...) SYSCALL_DEFINEx(4, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6443:1: note: in expansion of macro 'SYSCALL_DEFINE4'
    6443 | SYSCALL_DEFINE4(sched_getattr, pid_t, pid, struct sched_attr __user *, uattr,
         | ^~~~~~~~~~~~~~~
   In file included from kernel/sched/sched.h:65,
                    from kernel/sched/core.c:13:
   include/linux/syscalls.h:241:21: error: invalid storage class for function '__do_sys_sched_getattr'
     241 |  static inline long __do_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__));\
         |                     ^~~~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:216:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     216 | #define SYSCALL_DEFINE4(name, ...) SYSCALL_DEFINEx(4, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6443:1: note: in expansion of macro 'SYSCALL_DEFINE4'
    6443 | SYSCALL_DEFINE4(sched_getattr, pid_t, pid, struct sched_attr __user *, uattr,
         | ^~~~~~~~~~~~~~~
   include/linux/syscalls.h:241:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
     241 |  static inline long __do_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__));\
         |  ^~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:216:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     216 | #define SYSCALL_DEFINE4(name, ...) SYSCALL_DEFINEx(4, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6443:1: note: in expansion of macro 'SYSCALL_DEFINE4'
    6443 | SYSCALL_DEFINE4(sched_getattr, pid_t, pid, struct sched_attr __user *, uattr,
         | ^~~~~~~~~~~~~~~
   include/linux/syscalls.h:243:18: error: static declaration of '__se_sys_sched_getattr' follows non-static declaration
     243 |  asmlinkage long __se_sys##name(__MAP(x,__SC_LONG,__VA_ARGS__)) \
         |                  ^~~~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:216:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     216 | #define SYSCALL_DEFINE4(name, ...) SYSCALL_DEFINEx(4, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6443:1: note: in expansion of macro 'SYSCALL_DEFINE4'
    6443 | SYSCALL_DEFINE4(sched_getattr, pid_t, pid, struct sched_attr __user *, uattr,
         | ^~~~~~~~~~~~~~~
   include/linux/syscalls.h:242:18: note: previous declaration of '__se_sys_sched_getattr' was here
     242 |  asmlinkage long __se_sys##name(__MAP(x,__SC_LONG,__VA_ARGS__)); \
         |                  ^~~~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:216:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     216 | #define SYSCALL_DEFINE4(name, ...) SYSCALL_DEFINEx(4, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6443:1: note: in expansion of macro 'SYSCALL_DEFINE4'
    6443 | SYSCALL_DEFINE4(sched_getattr, pid_t, pid, struct sched_attr __user *, uattr,
         | ^~~~~~~~~~~~~~~
   kernel/sched/core.c: In function '__se_sys_sched_getattr':
   include/linux/syscalls.h:245:14: error: implicit declaration of function '__do_sys_sched_getattr'; did you mean '__do_sys_sched_setattr'? [-Werror=implicit-function-declaration]
     245 |   long ret = __do_sys##name(__MAP(x,__SC_CAST,__VA_ARGS__));\
         |              ^~~~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:216:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     216 | #define SYSCALL_DEFINE4(name, ...) SYSCALL_DEFINEx(4, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6443:1: note: in expansion of macro 'SYSCALL_DEFINE4'
    6443 | SYSCALL_DEFINE4(sched_getattr, pid_t, pid, struct sched_attr __user *, uattr,
         | ^~~~~~~~~~~~~~~
   kernel/sched/core.c: In function 'is_migration_disabled':
   include/linux/syscalls.h:251:21: error: invalid storage class for function '__do_sys_sched_getattr'
     251 |  static inline long __do_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__))
         |                     ^~~~~~~~
   include/linux/syscalls.h:224:2: note: in expansion of macro '__SYSCALL_DEFINEx'
     224 |  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~~
   include/linux/syscalls.h:216:36: note: in expansion of macro 'SYSCALL_DEFINEx'
     216 | #define SYSCALL_DEFINE4(name, ...) SYSCALL_DEFINEx(4, _##name, __VA_ARGS__)
         |                                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6443:1: note: in expansion of macro 'SYSCALL_DEFINE4'
    6443 | SYSCALL_DEFINE4(sched_getattr, pid_t, pid, struct sched_attr __user *, uattr,
         | ^~~~~~~~~~~~~~~
   kernel/sched/core.c: In function '__do_sys_sched_getattr':
   kernel/sched/core.c:6460:38: error: passing argument 1 of 'security_task_getscheduler' from incompatible pointer type [-Werror=incompatible-pointer-types]
    6460 |  retval = security_task_getscheduler(p);
         |                                      ^
         |                                      |
         |                                      struct task_struct *
   In file included from kernel/sched/sched.h:61,
                    from kernel/sched/core.c:13:
   include/linux/security.h:1115:66: note: expected 'struct task_struct *' but argument is of type 'struct task_struct *'
    1115 | static inline int security_task_getscheduler(struct task_struct *p)
..

vim +7 arch/ia64/include/asm/linkage.h

ab7efcc97ebc92e include/asm-ia64/linkage.h Jan Beulich    2006-03-24  6  
^1da177e4c3f415 include/asm-ia64/linkage.h Linus Torvalds 2005-04-16 @7  #define asmlinkage CPP_ASMLINKAGE __attribute__((syscall_linkage))
^1da177e4c3f415 include/asm-ia64/linkage.h Linus Torvalds 2005-04-16  8  

:::::: The code at line 7 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 23984 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-11-23  5:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-17 23:53 [jfern:coresched 6/34] arch/ia64/include/asm/linkage.h:7:35: warning: ISO C90 forbids mixed declarations and code kernel test robot
2020-11-18  0:55 ` Joel Fernandes
2020-11-23  5:49   ` Rong Chen

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.