All of lore.kernel.org
 help / color / mirror / Atom feed
* [tip:tmp.tmp2 253/364] include/linux/kernel.h:72:1: warning: declaration specifier missing, defaulting to 'int'
@ 2021-06-13 21:10 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-06-13 21:10 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: kbuild-all, clang-built-linux, linux-kernel, x86

[-- Attachment #1: Type: text/plain, Size: 5729 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 warnings (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 +/int +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) 

:::::: 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 --]

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

* [tip:tmp.tmp2 253/364] include/linux/kernel.h:72:1: warning: declaration specifier missing, defaulting to 'int'
@ 2021-06-13 21:10 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-06-13 21:10 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 5841 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 warnings (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 +/int +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) 

:::::: 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 --]

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

end of thread, other threads:[~2021-06-13 21:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-13 21:10 [tip:tmp.tmp2 253/364] include/linux/kernel.h:72:1: warning: declaration specifier missing, defaulting to 'int' kernel test robot
2021-06-13 21:10 ` kernel test robot

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.