From: kernel test robot <lkp@intel.com> To: Ingo Molnar <mingo@kernel.org> Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com, linux-kernel@vger.kernel.org, x86@kernel.org Subject: [tip:tmp.tmp2 253/364] include/linux/kernel.h:72:21: error: a parameter list without types is only allowed in a function definition Date: Mon, 14 Jun 2021 06:57:19 +0800 [thread overview] Message-ID: <202106140616.QVPP8Ri6-lkp@intel.com> (raw) [-- Attachment #1: Type: text/plain, Size: 6079 bytes --] tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tmp.tmp2 head: adcceb5eb7aee38e4a9c15bdf599655f0e1b1324 commit: d9c2c90ff3d122ee8c4bf9129c91eb741b5c6463 [253/364] sched/headers: Simplify <linux/kernel.h> config: x86_64-randconfig-b001-20210613 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d2012d965d60c3258b3a69d024491698f8aec386) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=d9c2c90ff3d122ee8c4bf9129c91eb741b5c6463 git remote add tip https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git git fetch --no-tags tip tmp.tmp2 git checkout d9c2c90ff3d122ee8c4bf9129c91eb741b5c6463 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com> All errors (new ones prefixed by >>): In file included from kernel/bounds.c:10: In file included from include/linux/page-flags.h:10: In file included from include/linux/bug.h:5: In file included from arch/x86/include/asm/bug.h:84: In file included from include/asm-generic/bug.h:20: include/linux/kernel.h:72:1: warning: declaration specifier missing, defaulting to 'int' DECLARE_STATIC_CALL(might_resched, __cond_resched); ^ int >> include/linux/kernel.h:72:21: error: a parameter list without types is only allowed in a function definition DECLARE_STATIC_CALL(might_resched, __cond_resched); ^ >> include/linux/kernel.h:76:2: error: implicit declaration of function 'static_call_mod' [-Werror,-Wimplicit-function-declaration] static_call_mod(might_resched)(); ^ >> include/linux/kernel.h:76:32: error: called object type 'int' is not a function or function pointer static_call_mod(might_resched)(); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 1 warning and 3 errors generated. -- In file included from kernel/bounds.c:10: In file included from include/linux/page-flags.h:10: In file included from include/linux/bug.h:5: In file included from arch/x86/include/asm/bug.h:84: In file included from include/asm-generic/bug.h:20: include/linux/kernel.h:72:1: warning: declaration specifier missing, defaulting to 'int' DECLARE_STATIC_CALL(might_resched, __cond_resched); ^ int >> include/linux/kernel.h:72:21: error: a parameter list without types is only allowed in a function definition DECLARE_STATIC_CALL(might_resched, __cond_resched); ^ >> include/linux/kernel.h:76:2: error: implicit declaration of function 'static_call_mod' [-Werror,-Wimplicit-function-declaration] static_call_mod(might_resched)(); ^ >> include/linux/kernel.h:76:32: error: called object type 'int' is not a function or function pointer static_call_mod(might_resched)(); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 1 warning and 3 errors generated. make[2]: *** [scripts/Makefile.build:117: kernel/bounds.s] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1232: prepare0] Error 2 make[1]: Target 'modules_prepare' not remade because of errors. make: *** [Makefile:215: __sub-make] Error 2 make: Target 'modules_prepare' not remade because of errors. -- In file included from kernel/bounds.c:10: In file included from include/linux/page-flags.h:10: In file included from include/linux/bug.h:5: In file included from arch/x86/include/asm/bug.h:84: In file included from include/asm-generic/bug.h:20: include/linux/kernel.h:72:1: warning: declaration specifier missing, defaulting to 'int' DECLARE_STATIC_CALL(might_resched, __cond_resched); ^ int >> include/linux/kernel.h:72:21: error: a parameter list without types is only allowed in a function definition DECLARE_STATIC_CALL(might_resched, __cond_resched); ^ >> include/linux/kernel.h:76:2: error: implicit declaration of function 'static_call_mod' [-Werror,-Wimplicit-function-declaration] static_call_mod(might_resched)(); ^ >> include/linux/kernel.h:76:32: error: called object type 'int' is not a function or function pointer static_call_mod(might_resched)(); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 1 warning and 3 errors generated. make[2]: *** [scripts/Makefile.build:117: kernel/bounds.s] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1232: prepare0] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:215: __sub-make] Error 2 make: Target 'prepare' not remade because of errors. vim +72 include/linux/kernel.h b965f1ddb47daa Peter Zijlstra (Intel 2021-01-18 71) b965f1ddb47daa Peter Zijlstra (Intel 2021-01-18 @72) DECLARE_STATIC_CALL(might_resched, __cond_resched); b965f1ddb47daa Peter Zijlstra (Intel 2021-01-18 73) b965f1ddb47daa Peter Zijlstra (Intel 2021-01-18 74) static __always_inline void might_resched(void) b965f1ddb47daa Peter Zijlstra (Intel 2021-01-18 75) { ef72661e28c64a Peter Zijlstra 2021-01-25 @76 static_call_mod(might_resched)(); b965f1ddb47daa Peter Zijlstra (Intel 2021-01-18 77) } b965f1ddb47daa Peter Zijlstra (Intel 2021-01-18 78) :::::: The code at line 72 was first introduced by commit :::::: b965f1ddb47daa5b8b2e2bc9c921431236830367 preempt/dynamic: Provide cond_resched() and might_resched() static calls :::::: TO: Peter Zijlstra (Intel) <peterz@infradead.org> :::::: CC: Ingo Molnar <mingo@kernel.org> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org [-- Attachment #2: .config.gz --] [-- Type: application/gzip, Size: 42099 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com> To: kbuild-all@lists.01.org Subject: [tip:tmp.tmp2 253/364] include/linux/kernel.h:72:21: error: a parameter list without types is only allowed in a function definition Date: Mon, 14 Jun 2021 06:57:19 +0800 [thread overview] Message-ID: <202106140616.QVPP8Ri6-lkp@intel.com> (raw) [-- Attachment #1: Type: text/plain, Size: 6196 bytes --] tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tmp.tmp2 head: adcceb5eb7aee38e4a9c15bdf599655f0e1b1324 commit: d9c2c90ff3d122ee8c4bf9129c91eb741b5c6463 [253/364] sched/headers: Simplify <linux/kernel.h> config: x86_64-randconfig-b001-20210613 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d2012d965d60c3258b3a69d024491698f8aec386) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=d9c2c90ff3d122ee8c4bf9129c91eb741b5c6463 git remote add tip https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git git fetch --no-tags tip tmp.tmp2 git checkout d9c2c90ff3d122ee8c4bf9129c91eb741b5c6463 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com> All errors (new ones prefixed by >>): In file included from kernel/bounds.c:10: In file included from include/linux/page-flags.h:10: In file included from include/linux/bug.h:5: In file included from arch/x86/include/asm/bug.h:84: In file included from include/asm-generic/bug.h:20: include/linux/kernel.h:72:1: warning: declaration specifier missing, defaulting to 'int' DECLARE_STATIC_CALL(might_resched, __cond_resched); ^ int >> include/linux/kernel.h:72:21: error: a parameter list without types is only allowed in a function definition DECLARE_STATIC_CALL(might_resched, __cond_resched); ^ >> include/linux/kernel.h:76:2: error: implicit declaration of function 'static_call_mod' [-Werror,-Wimplicit-function-declaration] static_call_mod(might_resched)(); ^ >> include/linux/kernel.h:76:32: error: called object type 'int' is not a function or function pointer static_call_mod(might_resched)(); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 1 warning and 3 errors generated. -- In file included from kernel/bounds.c:10: In file included from include/linux/page-flags.h:10: In file included from include/linux/bug.h:5: In file included from arch/x86/include/asm/bug.h:84: In file included from include/asm-generic/bug.h:20: include/linux/kernel.h:72:1: warning: declaration specifier missing, defaulting to 'int' DECLARE_STATIC_CALL(might_resched, __cond_resched); ^ int >> include/linux/kernel.h:72:21: error: a parameter list without types is only allowed in a function definition DECLARE_STATIC_CALL(might_resched, __cond_resched); ^ >> include/linux/kernel.h:76:2: error: implicit declaration of function 'static_call_mod' [-Werror,-Wimplicit-function-declaration] static_call_mod(might_resched)(); ^ >> include/linux/kernel.h:76:32: error: called object type 'int' is not a function or function pointer static_call_mod(might_resched)(); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 1 warning and 3 errors generated. make[2]: *** [scripts/Makefile.build:117: kernel/bounds.s] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1232: prepare0] Error 2 make[1]: Target 'modules_prepare' not remade because of errors. make: *** [Makefile:215: __sub-make] Error 2 make: Target 'modules_prepare' not remade because of errors. -- In file included from kernel/bounds.c:10: In file included from include/linux/page-flags.h:10: In file included from include/linux/bug.h:5: In file included from arch/x86/include/asm/bug.h:84: In file included from include/asm-generic/bug.h:20: include/linux/kernel.h:72:1: warning: declaration specifier missing, defaulting to 'int' DECLARE_STATIC_CALL(might_resched, __cond_resched); ^ int >> include/linux/kernel.h:72:21: error: a parameter list without types is only allowed in a function definition DECLARE_STATIC_CALL(might_resched, __cond_resched); ^ >> include/linux/kernel.h:76:2: error: implicit declaration of function 'static_call_mod' [-Werror,-Wimplicit-function-declaration] static_call_mod(might_resched)(); ^ >> include/linux/kernel.h:76:32: error: called object type 'int' is not a function or function pointer static_call_mod(might_resched)(); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 1 warning and 3 errors generated. make[2]: *** [scripts/Makefile.build:117: kernel/bounds.s] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1232: prepare0] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:215: __sub-make] Error 2 make: Target 'prepare' not remade because of errors. vim +72 include/linux/kernel.h b965f1ddb47daa Peter Zijlstra (Intel 2021-01-18 71) b965f1ddb47daa Peter Zijlstra (Intel 2021-01-18 @72) DECLARE_STATIC_CALL(might_resched, __cond_resched); b965f1ddb47daa Peter Zijlstra (Intel 2021-01-18 73) b965f1ddb47daa Peter Zijlstra (Intel 2021-01-18 74) static __always_inline void might_resched(void) b965f1ddb47daa Peter Zijlstra (Intel 2021-01-18 75) { ef72661e28c64a Peter Zijlstra 2021-01-25 @76 static_call_mod(might_resched)(); b965f1ddb47daa Peter Zijlstra (Intel 2021-01-18 77) } b965f1ddb47daa Peter Zijlstra (Intel 2021-01-18 78) :::::: The code at line 72 was first introduced by commit :::::: b965f1ddb47daa5b8b2e2bc9c921431236830367 preempt/dynamic: Provide cond_resched() and might_resched() static calls :::::: TO: Peter Zijlstra (Intel) <peterz@infradead.org> :::::: CC: Ingo Molnar <mingo@kernel.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: 42099 bytes --]
next reply other threads:[~2021-06-13 22:58 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-06-13 22:57 kernel test robot [this message] 2021-06-13 22:57 ` [tip:tmp.tmp2 253/364] include/linux/kernel.h:72:21: error: a parameter list without types is only allowed in a function definition kernel test robot
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=202106140616.QVPP8Ri6-lkp@intel.com \ --to=lkp@intel.com \ --cc=clang-built-linux@googlegroups.com \ --cc=kbuild-all@lists.01.org \ --cc=linux-kernel@vger.kernel.org \ --cc=mingo@kernel.org \ --cc=x86@kernel.org \ /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: linkBe 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.