lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Mon, 14 Jun 2021 06:57:19 +0800
From:   kernel test robot <lkp@...el.com>
To:     Ingo Molnar <mingo@...nel.org>
Cc:     kbuild-all@...ts.01.org, clang-built-linux@...glegroups.com,
        linux-kernel@...r.kernel.org, x86@...nel.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

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@...el.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@...radead.org>
:::::: CC: Ingo Molnar <mingo@...nel.org>

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

Download attachment ".config.gz" of type "application/gzip" (42099 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ