Re: [PATCH v1 12/13] tools headers: Sync compiler.h headers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Ian,

kernel test robot noticed the following build warnings:

[auto build test WARNING on perf-tools-next/perf-tools-next]
[also build test WARNING on perf-tools/perf-tools tip/perf/core]
[cannot apply to linus/master acme/perf/core v6.8-rc7 next-20240308]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Ian-Rogers/tools-bpf-Synchronize-bpf-h-with-kernel-uapi-version/20240310-101251
base:   https://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools-next.git perf-tools-next
patch link:    https://lore.kernel.org/r/20240310020509.647319-13-irogers%40google.com
patch subject: [PATCH v1 12/13] tools headers: Sync compiler.h headers
config: x86_64-allnoconfig (https://download.01.org/0day-ci/archive/20240311/202403110212.7cBcgqJ5-lkp@xxxxxxxxx/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240311/202403110212.7cBcgqJ5-lkp@xxxxxxxxx/reproduce)

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

All warnings (new ones prefixed by >>):

   In file included from exec-cmd.c:2:
   In file included from tools/include/linux/compiler.h:5:
   In file included from tools/include/linux/compiler_types.h:78:
>> tools/include/linux/compiler-clang.h:117:5: warning: 'CONFIG_CLANG_VERSION' is not defined, evaluates to 0 [-Wundef]
   117 | #if CONFIG_CLANG_VERSION >= 110000
   |     ^
   In file included from parse-options.c:2:
   In file included from tools/include/linux/compiler.h:5:
   In file included from tools/include/linux/compiler_types.h:78:
>> tools/include/linux/compiler-clang.h:117:5: warning: 'CONFIG_CLANG_VERSION' is not defined, evaluates to 0 [-Wundef]
   117 | #if CONFIG_CLANG_VERSION >= 110000
   |     ^
   In file included from run-command.c:7:
   In file included from tools/include/linux/string.h:6:
   In file included from tools/include/linux/compiler.h:5:
   In file included from tools/include/linux/compiler_types.h:78:
>> tools/include/linux/compiler-clang.h:117:5: warning: 'CONFIG_CLANG_VERSION' is not defined, evaluates to 0 [-Wundef]
   117 | #if CONFIG_CLANG_VERSION >= 110000
   |     ^
   In file included from help.c:5:
   In file included from tools/include/linux/string.h:6:
   In file included from tools/include/linux/compiler.h:5:
   In file included from tools/include/linux/compiler_types.h:78:
>> tools/include/linux/compiler-clang.h:117:5: warning: 'CONFIG_CLANG_VERSION' is not defined, evaluates to 0 [-Wundef]
   117 | #if CONFIG_CLANG_VERSION >= 110000
   |     ^
   In file included from sigchain.c:3:
   In file included from ./subcmd-util.h:8:
   In file included from tools/include/linux/compiler.h:5:
   In file included from tools/include/linux/compiler_types.h:78:
>> tools/include/linux/compiler-clang.h:117:5: warning: 'CONFIG_CLANG_VERSION' is not defined, evaluates to 0 [-Wundef]
   117 | #if CONFIG_CLANG_VERSION >= 110000
   |     ^
   1 warning generated.
   1 warning generated.
   1 warning generated.
   1 warning generated.
   1 warning generated.
   In file included from weak.c:10:
   In file included from tools/objtool/include/objtool/objtool.h:10:
   In file included from tools/include/linux/list.h:7:
   In file included from tools/include/linux/kernel.h:8:
   In file included from tools/include/linux/build_bug.h:5:
   In file included from tools/include/linux/compiler.h:5:
   In file included from tools/include/linux/compiler_types.h:78:
>> tools/include/linux/compiler-clang.h:117:5: warning: 'CONFIG_CLANG_VERSION' is not defined, evaluates to 0 [-Wundef]
   117 | #if CONFIG_CLANG_VERSION >= 110000
   |     ^
   In file included from builtin-check.c:6:
   In file included from tools/objtool/libsubcmd/include/subcmd/parse-options.h:5:
   In file included from tools/include/linux/kernel.h:8:
   In file included from tools/include/linux/build_bug.h:5:
   In file included from tools/include/linux/compiler.h:5:
   In file included from tools/include/linux/compiler_types.h:78:
>> tools/include/linux/compiler-clang.h:117:5: warning: 'CONFIG_CLANG_VERSION' is not defined, evaluates to 0 [-Wundef]
   117 | #if CONFIG_CLANG_VERSION >= 110000
   |     ^
   In file included from special.c:15:
   In file included from tools/objtool/include/objtool/builtin.h:8:
   In file included from tools/objtool/libsubcmd/include/subcmd/parse-options.h:5:
   In file included from tools/include/linux/kernel.h:8:
   In file included from tools/include/linux/build_bug.h:5:
   In file included from tools/include/linux/compiler.h:5:
   In file included from tools/include/linux/compiler_types.h:78:
>> tools/include/linux/compiler-clang.h:117:5: warning: 'CONFIG_CLANG_VERSION' is not defined, evaluates to 0 [-Wundef]
   117 | #if CONFIG_CLANG_VERSION >= 110000
   |     ^
   In file included from arch/x86/special.c:4:
   In file included from tools/objtool/include/objtool/special.h:10:
   In file included from tools/objtool/include/objtool/check.h:10:
   In file included from tools/objtool/include/objtool/cfi.h:10:
   In file included from tools/include/linux/list.h:7:
   In file included from tools/include/linux/kernel.h:8:
   In file included from tools/include/linux/build_bug.h:5:
   In file included from tools/include/linux/compiler.h:5:
   In file included from tools/include/linux/compiler_types.h:78:
>> tools/include/linux/compiler-clang.h:117:5: warning: 'CONFIG_CLANG_VERSION' is not defined, evaluates to 0 [-Wundef]
   117 | #if CONFIG_CLANG_VERSION >= 110000
   |     ^
   In file included from check.c:11:
   In file included from tools/objtool/include/objtool/builtin.h:8:
   In file included from tools/objtool/libsubcmd/include/subcmd/parse-options.h:5:
   In file included from tools/include/linux/kernel.h:8:
   In file included from tools/include/linux/build_bug.h:5:
   In file included from tools/include/linux/compiler.h:5:
   In file included from tools/include/linux/compiler_types.h:78:
>> tools/include/linux/compiler-clang.h:117:5: warning: 'CONFIG_CLANG_VERSION' is not defined, evaluates to 0 [-Wundef]
   117 | #if CONFIG_CLANG_VERSION >= 110000
   |     ^
   In file included from orc_dump.c:7:
   In file included from tools/arch/x86/include/asm/orc_types.h:10:
   In file included from tools/include/linux/compiler.h:5:
   In file included from tools/include/linux/compiler_types.h:78:
>> tools/include/linux/compiler-clang.h:117:5: warning: 'CONFIG_CLANG_VERSION' is not defined, evaluates to 0 [-Wundef]
   117 | #if CONFIG_CLANG_VERSION >= 110000
   |     ^
   In file included from ../lib/ctype.c:8:
   In file included from tools/include/linux/ctype.h:5:
   In file included from tools/include/linux/compiler.h:5:
   In file included from tools/include/linux/compiler_types.h:78:
>> tools/include/linux/compiler-clang.h:117:5: warning: 'CONFIG_CLANG_VERSION' is not defined, evaluates to 0 [-Wundef]
   117 | #if CONFIG_CLANG_VERSION >= 110000
   |     ^
   In file included from objtool.c:13:
   In file included from tools/include/linux/kernel.h:8:
   In file included from tools/include/linux/build_bug.h:5:
   In file included from tools/include/linux/compiler.h:5:
   In file included from tools/include/linux/compiler_types.h:78:
>> tools/include/linux/compiler-clang.h:117:5: warning: 'CONFIG_CLANG_VERSION' is not defined, evaluates to 0 [-Wundef]
   117 | #if CONFIG_CLANG_VERSION >= 110000
   |     ^
   In file included from orc_gen.c:10:
   In file included from tools/arch/x86/include/asm/orc_types.h:10:
   In file included from tools/include/linux/compiler.h:5:
   In file included from tools/include/linux/compiler_types.h:78:
>> tools/include/linux/compiler-clang.h:117:5: warning: 'CONFIG_CLANG_VERSION' is not defined, evaluates to 0 [-Wundef]
   117 | #if CONFIG_CLANG_VERSION >= 110000
   |     ^
   In file included from special.c:16:
   In file included from tools/objtool/include/objtool/special.h:10:
   In file included from tools/objtool/include/objtool/check.h:11:
   In file included from tools/objtool/include/objtool/arch.h:11:
>> tools/objtool/include/objtool/objtool.h:15:9: warning: '__weak' macro redefined [-Wmacro-redefined]In file included from elf.c:19:
   In file included from tools/include/linux/interval_tree_generic.h:10:
   In file included from tools/include/linux/rbtree_augmented.h:18:
   In file included from tools/include/linux/compiler.h:5:
   In file included from tools/include/linux/compiler_types.h:78:
>> tools/include/linux/compiler-clang.h:117:5: warning: 'CONFIG_CLANG_VERSION' is not defined, evaluates to 0 [-Wundef]
   117 | #if CONFIG_CLANG_VERSION >= 110000
   |     ^
--
   15 | #define __weak __attribute__((weak))
   |         ^
   tools/include/linux/compiler_attributes.h:437:10: note: previous definition is here
   437 | # define __weak                          __attribute__In file included from ../lib/rbtree.c:12:
   In file included from tools/include/linux/rbtree_augmented.h:18:
   In file included from tools/include/linux/compiler.h:5:
   In file included from tools/include/linux/compiler_types.h:78:
>> tools/include/linux/compiler-clang.h:117:5: warning: 'CONFIG_CLANG_VERSION' is not defined, evaluates to 0 [-Wundef]
   117 | #if CONFIG_CLANG_VERSION >= 110000
   |     ^
   ((__weak__))
   |          ^
   1 warning generated.
   In file included from weak.c:10:
>> tools/objtool/include/objtool/objtool.h:15:9: warning: '__weak' macro redefined [-Wmacro-redefined]
   15 | #define __weak __attribute__((weak))
   |         ^
   tools/include/linux/compiler_attributes.h:437:10: note: previous definition is here
   437 | # define __weak                          __attribute__((__weak__))
   |          ^
   In file included from arch/x86/special.c:4:
   In file included from tools/objtool/include/objtool/special.h:10:
   In file included from tools/objtool/include/objtool/check.h:11:
   In file included from tools/objtool/include/objtool/arch.h:11:
>> tools/objtool/include/objtool/objtool.h:15:9: warning: '__weak' macro redefined [-Wmacro-redefined]
   15 | #define __weak __attribute__((weak))
   |         ^
   tools/include/linux/compiler_attributes.h:437:10: note: previous definition is here
   437 | # define __weak                          __attribute__((__weak__))
   |          ^
   In file included from 2 warnings generated.
   ../lib/string.c:19:
   In file included from tools/include/linux/string.h:6:
   In file included from tools/include/linux/compiler.h:5:
   In file included from tools/include/linux/compiler_types.h:78:
>> tools/include/linux/compiler-clang.h:117:5: warning: 'CONFIG_CLANG_VERSION' is not defined, evaluates to 0 [-Wundef]
   117 | #if CONFIG_CLANG_VERSION >= 110000
   |     ^
   In file included from orc_gen.c:12:
   In file included from tools/objtool/include/objtool/check.h:11:
   In file included from tools/objtool/include/objtool/arch.h:11:
>> tools/objtool/include/objtool/objtool.h:15:9: warning: '__weak' macro redefined [-Wmacro-redefined]
   15 | #define __weak __attribute__((weak))
   |         ^
   tools/include/linux/compiler_attributes.h:437:10: note: previous definition is here
   437 | # define __weak                          __attribute__((__weak__))
   |          ^
   In file included from objtool.c:16:
>> tools/objtool/include/objtool/objtool.h:15:9: warning: '__weak' macro redefined [-Wmacro-redefined]
   15 | #define __weak __attribute__((weak))
   |         ^
   tools/include/linux/compiler_attributes.h:437:10: note: previous definition is here
   437 | # define __weak                          __attribute__((__weak__))
   |          ^
   In file included from builtin-check.c:10:
>> tools/objtool/include/objtool/objtool.h:15:9: warning: '__weak' macro redefined [-Wmacro-redefined]
   15 | #define __weak __attribute__((weak))
   |         ^
   tools/include/linux/compiler_attributes.h:437:10: note: previous definition is here
   437 | # define __weak                          __attribute__((__weak__))
   |          ^
   In file included from check.c:13:
   In file included from tools/objtool/include/objtool/arch.h:11:
>> tools/objtool/include/objtool/objtool.h:15:9: warning: '__weak' macro redefined [-Wmacro-redefined]
   15 | #define __weak __attribute__((weak))
   |         ^
   tools/include/linux/compiler_attributes.h:437:10: note: previous definition is here
   437 | # define __weak                          __attribute__((__weak__))
   |          ^
   2 warnings generated.
   In file included from orc_dump.c:8:
>> tools/objtool/include/objtool/objtool.h:15:9: warning: '__weak' macro redefined [-Wmacro-redefined]
   15 | #define __weak __attribute__((weak))
   |         ^
   tools/include/linux/compiler_attributes.h:437:10: note: previous definition is here
   437 | # define __weak                          __attribute__((__weak__))
   |          ^
   2 warnings generated.
   2 warnings generated.
   In file included from arch/x86/decode.c:12:
   In file included from arch/x86/../../../arch/x86/lib/insn.c:8:
   In file included from tools/include/linux/kernel.h:8:
   In file included from tools/include/linux/build_bug.h:5:
   In file included from tools/include/linux/compiler.h:5:
   In file included from tools/include/linux/compiler_types.h:78:
>> tools/include/linux/compiler-clang.h:117:5: warning: 'CONFIG_CLANG_VERSION' is not defined, evaluates to 0 [-Wundef]
   117 | #if CONFIG_CLANG_VERSION >= 110000
   |     ^
   2 warnings generated.
   2 warnings generated.
   In file included from ../lib/str_error_r.c:5:
   In file included from tools/include/linux/string.h:6:
   In file included from tools/include/linux/compiler.h:5:
   In file included from tools/include/linux/compiler_types.h:78:
>> tools/include/linux/compiler-clang.h:117:5: warning: 'CONFIG_CLANG_VERSION' is not defined, evaluates to 0 [-Wundef]
   117 | #if CONFIG_CLANG_VERSION >= 110000
   |     ^
   1 warning generated.
   1 warning generated.
   In file included from arch/x86/decode.c:18:
   In file included from tools/objtool/include/objtool/check.h:11:
   In file included from tools/objtool/include/objtool/arch.h:11:
>> tools/objtool/include/objtool/objtool.h:15:9: warning: '__weak' macro redefined [-Wmacro-redefined]
   15 | #define __weak __attribute__((weak))
   |         ^
   tools/include/linux/compiler_attributes.h:437:10: note: previous definition is here
   437 | # define __weak                          __attribute__((__weak__))
   |          ^
   2 warnings generated.
   1 warning generated.
   2 warnings generated.
   1 warning generated.
   2 warnings generated.
--
   In file included from exec-cmd.c:2:
   In file included from tools/include/linux/compiler.h:5:
   In file included from tools/include/linux/compiler_types.h:78:
>> tools/include/linux/compiler-clang.h:117:5: warning: 'CONFIG_CLANG_VERSION' is not defined, evaluates to 0 [-Wundef]
     117 | #if CONFIG_CLANG_VERSION >= 110000
         |     ^
   In file included from parse-options.c:2:
   In file included from tools/include/linux/compiler.h:5:
   In file included from tools/include/linux/compiler_types.h:78:
>> tools/include/linux/compiler-clang.h:117:5: warning: 'CONFIG_CLANG_VERSION' is not defined, evaluates to 0 [-Wundef]
     117 | #if CONFIG_CLANG_VERSION >= 110000
         |     ^
   In file included from help.c:5:
   In file included from tools/include/linux/string.h:6:
   In file included from tools/include/linux/compiler.h:5:
   In file included from tools/include/linux/compiler_types.h:78:
>> tools/include/linux/compiler-clang.h:117:5: warning: 'CONFIG_CLANG_VERSION' is not defined, evaluates to 0 [-Wundef]
     117 | #if CONFIG_CLANG_VERSION >= 110000
         |     ^
   In file included from sigchain.c:3:
   In file included from ./subcmd-util.h:8:
   In file included from tools/include/linux/compiler.h:5:
   In file included from tools/include/linux/compiler_types.h:78:
>> tools/include/linux/compiler-clang.h:117:5: warning: 'CONFIG_CLANG_VERSION' is not defined, evaluates to 0 [-Wundef]
     117 | #if CONFIG_CLANG_VERSION >= 110000
         |     ^
   In file included from run-command.c:7:
   In file included from tools/include/linux/string.h:6:
   In file included from tools/include/linux/compiler.h:5:
   In file included from tools/include/linux/compiler_types.h:78:
>> tools/include/linux/compiler-clang.h:117:5: warning: 'CONFIG_CLANG_VERSION' is not defined, evaluates to 0 [-Wundef]
     117 | #if CONFIG_CLANG_VERSION >= 110000
         |     ^
   1 warning generated.
   1 warning generated.
   1 warning generated.
   1 warning generated.
   1 warning generated.
   In file included from weak.c:10:
   In file included from tools/objtool/include/objtool/objtool.h:10:
   In file included from tools/include/linux/list.h:7:
   In file included from tools/include/linux/kernel.h:8:
   In file included from tools/include/linux/build_bug.h:5:
   In file included from tools/include/linux/compiler.h:5:
   In file included from tools/include/linux/compiler_types.h:78:
>> tools/include/linux/compiler-clang.h:117:5: warning: 'CONFIG_CLANG_VERSION' is not defined, evaluates to 0 [-Wundef]
     117 | #if CONFIG_CLANG_VERSION >= 110000
         |     ^
   In file included from builtin-check.c:6:
   In file included from tools/objtool/libsubcmd/include/subcmd/parse-options.h:5:
   In file included from tools/include/linux/kernel.h:8:
   In file included from tools/include/linux/build_bug.h:5:
   In file included from tools/include/linux/compiler.h:5:
   In file included from tools/include/linux/compiler_types.h:78:
>> tools/include/linux/compiler-clang.h:117:5: warning: 'CONFIG_CLANG_VERSION' is not defined, evaluates to 0 [-Wundef]
     117 | #if CONFIG_CLANG_VERSION >= 110000
         |     ^
   In file included from elf.c:19:
   In file included from tools/include/linux/interval_tree_generic.h:10:
   In file included from tools/include/linux/rbtree_augmented.h:18:
   In file included from tools/include/linux/compiler.h:5:
   In file included from tools/include/linux/compiler_types.h:78:
>> tools/include/linux/compiler-clang.h:117:5: warning: 'CONFIG_CLANG_VERSION' is not defined, evaluates to 0 [-Wundef]
     117 | #if CONFIG_CLANG_VERSION >= 110000
         |     ^
   In file included from orc_gen.c:10:
   In file included from tools/arch/x86/include/asm/orc_types.h:10:
   In file included from tools/include/linux/compiler.h:5:
   In file included from tools/include/linux/compiler_types.h:78:
>> tools/include/linux/compiler-clang.h:117:5: warning: 'CONFIG_CLANG_VERSION' is not defined, evaluates to 0 [-Wundef]
     117 | #if CONFIG_CLANG_VERSION >= 110000
         |     ^
   In file included from arch/x86/special.c:4:
   In file included from tools/objtool/include/objtool/special.h:10:
   In file included from tools/objtool/include/objtool/check.h:10:
   In file included from tools/objtool/include/objtool/cfi.h:10:
   In file included from tools/include/linux/list.h:7:
   In file included from tools/include/linux/kernel.h:8:
   In file included from tools/include/linux/build_bug.h:5:
   In file included from tools/include/linux/compiler.h:5:
   In file included from tools/include/linux/compiler_types.h:78:
>> tools/include/linux/compiler-clang.h:117:5: warning: 'CONFIG_CLANG_VERSION' is not defined, evaluates to 0 [-Wundef]
     117 | #if CONFIG_CLANG_VERSION >= 110000
         |     ^
   In file included from ../lib/string.c:19:
   In file included from tools/include/linux/string.h:6:
   In file included from tools/include/linux/compiler.h:5:
   In file included from tools/include/linux/compiler_types.h:78:
>> tools/include/linux/compiler-clang.h:117:5: warning: 'CONFIG_CLANG_VERSION' is not defined, evaluates to 0 [-Wundef]
     117 | #if CONFIG_CLANG_VERSION >= 110000
         |     ^
   In file included from special.c:15:
   In file included from tools/objtool/include/objtool/builtin.h:8:
   In file included from tools/objtool/libsubcmd/include/subcmd/parse-options.h:5:
   In file included from tools/include/linux/kernel.h:8:
   In file included from tools/include/linux/build_bug.h:5:
   In file included from tools/include/linux/compiler.h:5:
   In file included from tools/include/linux/compiler_types.h:78:
>> tools/include/linux/compiler-clang.h:117:5: warning: 'CONFIG_CLANG_VERSION' is not defined, evaluates to 0 [-Wundef]
   In file included from orc_dump.c:7:
   In file included from tools/arch/x86/include/asm/orc_types.h:10:
   In file included from tools/include/linux/compiler.h:5:
   In file included from tools/include/linux/compiler_types.h:78:
>> tools/include/linux/compiler-clang.h:117:5: warning: 'CONFIG_CLANG_VERSION' is not defined, evaluates to 0 [-Wundef]
       117 | #if CONFIG_CLANG_VERSION >= 110000
         |     ^
   In file included from weak.c:10:
>> tools/objtool/include/objtool/objtool.h:15:9: warning: '__weak' macro redefined [-Wmacro-redefined]
      15 | #define __weak __aIn file included from ttribute__((weak))
         |         ^
   tools/include/linux/compiler_attributes.h:437:10: note: previous definition is here
     437 | # define __weak                          __attribute__((__weak__))
         |          ^
   117 | #if CONFIG_CLANG_VERSION >= 110000
         |     ^
   ../lib/ctype.c:8:
   In file included from tools/include/linux/ctype.h:5:
   In file included from tools/include/linux/compiler.h:5:
   In file included from tools/include/linux/compiler_types.h:78:
>> tools/include/linux/compiler-clang.h:117:5: warning: 'CONFIG_CLANG_VERSION' is not defined, evaluates to 0 [-Wundef]
     117 | #if CONFIG_CLANG_VERSION >= 110000
         |     ^
   In file included from objtool.c:13:
   In file included from tools/include/linux/kernel.h:8:
   In file included from tools/include/linux/build_bug.h:5:
   In file included from tools/include/linux/compiler.h:5:
   In file included from tools/include/linux/compiler_types.h:78:
>> tools/include/linux/compiler-clang.h:117:5: warning: 'CONFIG_CLANG_VERSION' is not defined, evaluates to 0 [-Wundef]
     117 | #if CONFIG_CLANG_VERSION >= 110000
         |     ^
   In file included from check.c:11:
   In file included from tools/objtool/include/objtool/builtin.h:8:
   In file included from tools/objtool/libsubcmd/include/subcmd/parse-options.h:5:
   In file included from tools/include/linux/kernel.h:8:
   In file included from tools/include/linux/build_bug.h:5:
   In file included from tools/include/linux/compiler.h:5:
   In file included from tools/include/linux/compiler_types.h:78:
>> tools/include/linux/compiler-clang.h:117:5: warning: 'CONFIG_CLANG_VERSION' is not defined, evaluates to 0 [-Wundef]
     117 | #if CONFIG_CLANG_VERSION >= 110000
         |     ^
   In file included from ../lib/rbtree.c:12:
   In file included from tools/include/linux/rbtree_augmented.h:18:
   In file included from tools/include/linux/compiler.h:5:
   In file included from tools/include/linux/compiler_types.h:78:
>> tools/include/linux/compiler-clang.h:117:5: warning: 'CONFIG_CLANG_VERSION' is not defined, evaluates to 0 [-Wundef]
     117 | #if CONFIG_CLANG_VERSION >= 110000
         |     ^
   1 warning generated.
   2 warnings generated.
   In file included from orc_gen.c:12:
   In file included from tools/objtool/include/objtool/check.h:11:
   In file included from tools/objtool/include/objtool/arch.h:11:
>> tools/objtool/include/objtool/objtool.h:15:9: warning: '__weak' macro redefined [-Wmacro-redefined]
      15 | #define __weak __attribute__((weak))
         |         ^
   tools/include/linux/compiler_attributes.h:437:10: note: previous definition is here
     437 | # define __weak                          __attribute__((__weak__))
         |          ^
   In file included from arch/x86/decode.c:12:
   In file included from arch/x86/../../../arch/x86/lib/insn.c:8:
   In file included from tools/include/linux/kernel.h:8:
   In file included from tools/include/linux/build_bug.h:5:
   In file included from tools/include/linux/compiler.h:5:
   In file included from tools/include/linux/compiler_types.h:78:
>> tools/include/linux/compiler-clang.h:117:5: warning: 'CONFIG_CLANG_VERSION' is not defined, evaluates to 0 [-Wundef]
     117 | #if CONFIG_CLANG_VERSION >= 110000
         |     ^
   In file included from builtin-check.c:10:
   tools/objtool/include/objtool/objtool.h:15:9: warning: '__weak' macro redefined [-Wmacro-redefined]
      15 | #define __weak __attribute__((weak))
         |         ^
   tools/include/linux/compiler_attributes.h:437:10: note: previous definition is here
     437 | # define __weak                          __attribute__((__weak__))
         |          ^
   In file included from arch/x86/special.c:4:
   In file included from tools/objtool/include/objtool/special.h:10:
   In file included from tools/objtool/include/objtool/check.h:11:
   In file included from tools/objtool/include/objtool/arch.h:11:
   tools/objtool/include/objtool/objtool.h:15:9: warning: '__weak' macro redefined [-Wmacro-redefined]
      15 | #define __weak __attribute__((weak))
         |         ^
   tools/include/linux/compiler_attributes.h:437:10: note: previous definition is here
     437 | # define __weak                          __attribute__((__weak__))
         |          ^
   1 warning generated.
   In file included from orc_dump.c:8:
   tools/objtool/include/objtool/objtool.h:15:9: warning: '__weak' macro redefined [-Wmacro-redefined]
      15 | #define __weak __attribute__((weak))
         |         ^
   tools/include/linux/compiler_attributes.h:437:10: note: previous definition is here
     437 | # define __weak                          __attribute__((__weak__))
         |          ^
   2 warnings generated.
   In file included from In file included from check.c:13:
   In file included from tools/objtool/include/objtool/arch.h:11:
   tools/objtool/include/objtool/objtool.h:15:9: warning: '__weak' macro redefined [-Wmacro-redefined]
      15 | #define __weak __attribute__((weak))
         |         ^
   tools/include/linux/compiler_attributes.h:437:10: note: previous definition is here
     437 | # define __weak                          __attribute__((__weak__))
         |          ^
   In file included from arch/x86/decode.c:18:
   In file included from tools/objtool/include/objtool/check.h:11:
   In file included from tools/objtool/include/objtool/arch.h:11:
   tools/objtool/include/objtool/objtool.h:15:9: warning: '__weak' macro redefined [-Wmacro-redefined]
      15 | #define __weak __attributespecial.c__((weak))
         |         ^
   tools/include/linux/compiler_attributes.h:437:10: note: previous definition is here
     437 | # define __weak                          __attribute__((__weak__))
         |          ^
   :16:
   In file included from tools/objtool/include/objtool/special.h:10:
   In file included from tools/objtool/include/objtool/check.h:11:
   In file included from tools/objtool/include/objtool/arch.h:11:
   tools/objtool/include/objtool/objtool.h:15:9: warning: '__weak' macro redefined [-Wmacro-redefined]
      15 | #define __weak __attribute__((weak))
         |         ^
   tools/include/linux/compiler_attributes.h:437:10: note: previous definition is here
     437 | # define __weak                          __attribute__((__weak__))
         |          ^
   In file included from objtool.c:16:
   tools/objtool/include/objtool/objtool.h:15:9: warning: '__weak' macro redefined [-Wmacro-redefined]
      15 | #define __weak __attribute__((weak))
         |         ^
   tools/include/linux/compiler_attributes.h:437:10: note: previous definition is here
     437 | # define __weak                          __attribute__((__weak__))
         |          ^
   2 warnings generated.
   2 warnings generated.
   In file included from ../lib/str_error_r.c:5:
   In file included from tools/include/linux/string.h:6:
   In file included from tools/include/linux/compiler.h:5:
   In file included from tools/include/linux/compiler_types.h:78:
   tools/include/linux/compiler-clang.h:117:5: warning: 'CONFIG_CLANG_VERSION' is not defined, evaluates to 0 [-Wundef]
     117 | #if CONFIG_CLANG_VERSION >= 110000
         |     ^
   2 warnings generated.
   1 warning generated.
   2 warnings generated.
   2 warnings generated.
   1 warning generated.
   2 warnings generated.
   1 warning generated.
   2 warnings generated.


vim +/CONFIG_CLANG_VERSION +117 tools/include/linux/compiler-clang.h

   116	
 > 117	#if CONFIG_CLANG_VERSION >= 110000
   118	#define __diag_clang_11(s)	__diag(s)
   119	#else
   120	#define __diag_clang_11(s)
   121	#endif
   122	

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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux