public inbox for [email protected]
 help / color / mirror / Atom feed
* [ammarfaizi2-block:stable/linux-stable-rc/queue/5.15 176/176] arch/x86/include/asm/extable_fixup_types.h:49: warning: "EX_TYPE_DEFAULT_MCE_SAFE" redefined
@ 2022-07-26  1:12 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-07-26  1:12 UTC (permalink / raw)
  To: Thomas Gleixner
  Cc: kbuild-all, Ammar Faizi, GNU/Weeb Mailing List, linux-kernel,
	Sasha Levin, Borislav Petkov

tree:   https://github.com/ammarfaizi2/linux-block stable/linux-stable-rc/queue/5.15
head:   9780829ed8d15de556424bed96704c95dfc357f6
commit: 9780829ed8d15de556424bed96704c95dfc357f6 [176/176] x86/extable: Provide EX_TYPE_DEFAULT_MCE_SAFE and EX_TYPE_FAULT_MCE_SAFE
config: x86_64-randconfig-c002 (https://download.01.org/0day-ci/archive/20220726/[email protected]/config)
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
reproduce (this is a W=1 build):
        # https://github.com/ammarfaizi2/linux-block/commit/9780829ed8d15de556424bed96704c95dfc357f6
        git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
        git fetch --no-tags ammarfaizi2-block stable/linux-stable-rc/queue/5.15
        git checkout 9780829ed8d15de556424bed96704c95dfc357f6
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 prepare

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <[email protected]>

All warnings (new ones prefixed by >>):

   In file included from arch/x86/include/asm/asm.h:125,
                    from arch/x86/include/asm/alternative.h:7,
                    from arch/x86/include/asm/atomic.h:7,
                    from include/linux/atomic.h:7,
                    from include/linux/jump_label.h:261,
                    from arch/x86/include/asm/string_64.h:6,
                    from arch/x86/include/asm/string.h:5,
                    from include/linux/string.h:20,
                    from include/linux/uuid.h:12,
                    from include/linux/mod_devicetable.h:13,
                    from scripts/mod/devicetable-offsets.c:3:
>> arch/x86/include/asm/extable_fixup_types.h:49: warning: "EX_TYPE_DEFAULT_MCE_SAFE" redefined
      49 | #define EX_TYPE_DEFAULT_MCE_SAFE        12
         | 
   arch/x86/include/asm/extable_fixup_types.h:42: note: this is the location of the previous definition
      42 | #define EX_TYPE_DEFAULT_MCE_SAFE        14
         | 
>> arch/x86/include/asm/extable_fixup_types.h:50: warning: "EX_TYPE_FAULT_MCE_SAFE" redefined
      50 | #define EX_TYPE_FAULT_MCE_SAFE          13
         | 
   arch/x86/include/asm/extable_fixup_types.h:43: note: this is the location of the previous definition
      43 | #define EX_TYPE_FAULT_MCE_SAFE          15
         | 
--
   In file included from arch/x86/include/asm/asm.h:125,
                    from arch/x86/include/asm/alternative.h:7,
                    from arch/x86/include/asm/bitops.h:17,
                    from include/linux/bitops.h:33,
                    from include/linux/kernel.h:12,
                    from arch/x86/include/asm/percpu.h:27,
                    from arch/x86/include/asm/current.h:6,
                    from include/linux/sched.h:12,
                    from include/linux/uaccess.h:8,
                    from arch/x86/mm/extable.c:3:
>> arch/x86/include/asm/extable_fixup_types.h:49: warning: "EX_TYPE_DEFAULT_MCE_SAFE" redefined
      49 | #define EX_TYPE_DEFAULT_MCE_SAFE        12
         | 
   arch/x86/include/asm/extable_fixup_types.h:42: note: this is the location of the previous definition
      42 | #define EX_TYPE_DEFAULT_MCE_SAFE        14
         | 
>> arch/x86/include/asm/extable_fixup_types.h:50: warning: "EX_TYPE_FAULT_MCE_SAFE" redefined
      50 | #define EX_TYPE_FAULT_MCE_SAFE          13
         | 
   arch/x86/include/asm/extable_fixup_types.h:43: note: this is the location of the previous definition
      43 | #define EX_TYPE_FAULT_MCE_SAFE          15
         | 
   arch/x86/mm/extable.c: In function 'fixup_exception':
   arch/x86/mm/extable.c:200:9: error: duplicate case value
     200 |         case EX_TYPE_WRMSR_IN_MCE:
         |         ^~~~
   arch/x86/mm/extable.c:177:9: note: previously used here
     177 |         case EX_TYPE_DEFAULT_MCE_SAFE:
         |         ^~~~
   arch/x86/mm/extable.c:203:9: error: duplicate case value
     203 |         case EX_TYPE_RDMSR_IN_MCE:
         |         ^~~~
   arch/x86/mm/extable.c:180:9: note: previously used here
     180 |         case EX_TYPE_FAULT_MCE_SAFE:
         |         ^~~~
--
   In file included from arch/x86/include/asm/asm.h:125,
                    from arch/x86/include/asm/alternative.h:7,
                    from arch/x86/include/asm/bitops.h:17,
                    from include/linux/bitops.h:33,
                    from include/linux/kernel.h:12,
                    from include/linux/list.h:9,
                    from include/linux/timer.h:5,
                    from include/linux/workqueue.h:9,
                    from include/linux/bpf.h:9,
                    from security/security.c:13:
>> arch/x86/include/asm/extable_fixup_types.h:49: warning: "EX_TYPE_DEFAULT_MCE_SAFE" redefined
      49 | #define EX_TYPE_DEFAULT_MCE_SAFE        12
         | 
   arch/x86/include/asm/extable_fixup_types.h:42: note: this is the location of the previous definition
      42 | #define EX_TYPE_DEFAULT_MCE_SAFE        14
         | 
>> arch/x86/include/asm/extable_fixup_types.h:50: warning: "EX_TYPE_FAULT_MCE_SAFE" redefined
      50 | #define EX_TYPE_FAULT_MCE_SAFE          13
         | 
   arch/x86/include/asm/extable_fixup_types.h:43: note: this is the location of the previous definition
      43 | #define EX_TYPE_FAULT_MCE_SAFE          15
         | 
   include/linux/lsm_hook_defs.h:403:18: warning: 'perf_event_write_default' defined but not used [-Wunused-const-variable=]
     403 | LSM_HOOK(int, 0, perf_event_write, struct perf_event *event)
         |                  ^~~~~~~~~~~~~~~~
   security/security.c:708:32: note: in definition of macro 'LSM_RET_DEFAULT'
     708 | #define LSM_RET_DEFAULT(NAME) (NAME##_default)
         |                                ^~~~
   security/security.c:713:9: note: in expansion of macro 'DECLARE_LSM_RET_DEFAULT_int'
     713 |         DECLARE_LSM_RET_DEFAULT_##RET(DEFAULT, NAME)
         |         ^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/lsm_hook_defs.h:403:1: note: in expansion of macro 'LSM_HOOK'
     403 | LSM_HOOK(int, 0, perf_event_write, struct perf_event *event)
         | ^~~~~~~~
   include/linux/lsm_hook_defs.h:402:18: warning: 'perf_event_read_default' defined but not used [-Wunused-const-variable=]
     402 | LSM_HOOK(int, 0, perf_event_read, struct perf_event *event)
         |                  ^~~~~~~~~~~~~~~
   security/security.c:708:32: note: in definition of macro 'LSM_RET_DEFAULT'
     708 | #define LSM_RET_DEFAULT(NAME) (NAME##_default)
         |                                ^~~~
   security/security.c:713:9: note: in expansion of macro 'DECLARE_LSM_RET_DEFAULT_int'
     713 |         DECLARE_LSM_RET_DEFAULT_##RET(DEFAULT, NAME)
         |         ^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/lsm_hook_defs.h:402:1: note: in expansion of macro 'LSM_HOOK'
     402 | LSM_HOOK(int, 0, perf_event_read, struct perf_event *event)
         | ^~~~~~~~
   include/linux/lsm_hook_defs.h:400:18: warning: 'perf_event_alloc_default' defined but not used [-Wunused-const-variable=]
     400 | LSM_HOOK(int, 0, perf_event_alloc, struct perf_event *event)
         |                  ^~~~~~~~~~~~~~~~
   security/security.c:708:32: note: in definition of macro 'LSM_RET_DEFAULT'
     708 | #define LSM_RET_DEFAULT(NAME) (NAME##_default)
         |                                ^~~~
   security/security.c:713:9: note: in expansion of macro 'DECLARE_LSM_RET_DEFAULT_int'
     713 |         DECLARE_LSM_RET_DEFAULT_##RET(DEFAULT, NAME)
         |         ^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/lsm_hook_defs.h:400:1: note: in expansion of macro 'LSM_HOOK'
     400 | LSM_HOOK(int, 0, perf_event_alloc, struct perf_event *event)
         | ^~~~~~~~
   include/linux/lsm_hook_defs.h:399:18: warning: 'perf_event_open_default' defined but not used [-Wunused-const-variable=]
     399 | LSM_HOOK(int, 0, perf_event_open, struct perf_event_attr *attr, int type)
         |                  ^~~~~~~~~~~~~~~
   security/security.c:708:32: note: in definition of macro 'LSM_RET_DEFAULT'
     708 | #define LSM_RET_DEFAULT(NAME) (NAME##_default)
         |                                ^~~~
   security/security.c:713:9: note: in expansion of macro 'DECLARE_LSM_RET_DEFAULT_int'
     713 |         DECLARE_LSM_RET_DEFAULT_##RET(DEFAULT, NAME)
         |         ^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/lsm_hook_defs.h:399:1: note: in expansion of macro 'LSM_HOOK'
     399 | LSM_HOOK(int, 0, perf_event_open, struct perf_event_attr *attr, int type)
         | ^~~~~~~~
   include/linux/lsm_hook_defs.h:396:18: warning: 'locked_down_default' defined but not used [-Wunused-const-variable=]
     396 | LSM_HOOK(int, 0, locked_down, enum lockdown_reason what)
         |                  ^~~~~~~~~~~
   security/security.c:708:32: note: in definition of macro 'LSM_RET_DEFAULT'
     708 | #define LSM_RET_DEFAULT(NAME) (NAME##_default)
         |                                ^~~~
   security/security.c:713:9: note: in expansion of macro 'DECLARE_LSM_RET_DEFAULT_int'
     713 |         DECLARE_LSM_RET_DEFAULT_##RET(DEFAULT, NAME)
         |         ^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/lsm_hook_defs.h:396:1: note: in expansion of macro 'LSM_HOOK'
     396 | LSM_HOOK(int, 0, locked_down, enum lockdown_reason what)
         | ^~~~~~~~
   include/linux/lsm_hook_defs.h:392:18: warning: 'bpf_prog_alloc_security_default' defined but not used [-Wunused-const-variable=]
     392 | LSM_HOOK(int, 0, bpf_prog_alloc_security, struct bpf_prog_aux *aux)
         |                  ^~~~~~~~~~~~~~~~~~~~~~~
   security/security.c:708:32: note: in definition of macro 'LSM_RET_DEFAULT'
     708 | #define LSM_RET_DEFAULT(NAME) (NAME##_default)
         |                                ^~~~
   security/security.c:713:9: note: in expansion of macro 'DECLARE_LSM_RET_DEFAULT_int'
     713 |         DECLARE_LSM_RET_DEFAULT_##RET(DEFAULT, NAME)
         |         ^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/lsm_hook_defs.h:392:1: note: in expansion of macro 'LSM_HOOK'
     392 | LSM_HOOK(int, 0, bpf_prog_alloc_security, struct bpf_prog_aux *aux)
         | ^~~~~~~~
   include/linux/lsm_hook_defs.h:390:18: warning: 'bpf_map_alloc_security_default' defined but not used [-Wunused-const-variable=]
     390 | LSM_HOOK(int, 0, bpf_map_alloc_security, struct bpf_map *map)
         |                  ^~~~~~~~~~~~~~~~~~~~~~
   security/security.c:708:32: note: in definition of macro 'LSM_RET_DEFAULT'
     708 | #define LSM_RET_DEFAULT(NAME) (NAME##_default)
         |                                ^~~~
   security/security.c:713:9: note: in expansion of macro 'DECLARE_LSM_RET_DEFAULT_int'
     713 |         DECLARE_LSM_RET_DEFAULT_##RET(DEFAULT, NAME)
         |         ^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/lsm_hook_defs.h:390:1: note: in expansion of macro 'LSM_HOOK'
     390 | LSM_HOOK(int, 0, bpf_map_alloc_security, struct bpf_map *map)
         | ^~~~~~~~
   include/linux/lsm_hook_defs.h:389:18: warning: 'bpf_prog_default' defined but not used [-Wunused-const-variable=]
     389 | LSM_HOOK(int, 0, bpf_prog, struct bpf_prog *prog)
         |                  ^~~~~~~~
   security/security.c:708:32: note: in definition of macro 'LSM_RET_DEFAULT'
     708 | #define LSM_RET_DEFAULT(NAME) (NAME##_default)
         |                                ^~~~
   security/security.c:713:9: note: in expansion of macro 'DECLARE_LSM_RET_DEFAULT_int'
     713 |         DECLARE_LSM_RET_DEFAULT_##RET(DEFAULT, NAME)
         |         ^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/lsm_hook_defs.h:389:1: note: in expansion of macro 'LSM_HOOK'
     389 | LSM_HOOK(int, 0, bpf_prog, struct bpf_prog *prog)
--
   In file included from arch/x86/include/asm/asm.h:125,
                    from arch/x86/include/asm/alternative.h:7,
                    from arch/x86/include/asm/atomic.h:7,
                    from include/linux/atomic.h:7,
                    from include/linux/jump_label.h:261,
                    from arch/x86/include/asm/string_64.h:6,
                    from arch/x86/include/asm/string.h:5,
                    from include/linux/string.h:20,
                    from include/linux/uuid.h:12,
                    from include/linux/mod_devicetable.h:13,
                    from scripts/mod/devicetable-offsets.c:3:
>> arch/x86/include/asm/extable_fixup_types.h:49: warning: "EX_TYPE_DEFAULT_MCE_SAFE" redefined
      49 | #define EX_TYPE_DEFAULT_MCE_SAFE        12
         | 
   arch/x86/include/asm/extable_fixup_types.h:42: note: this is the location of the previous definition
      42 | #define EX_TYPE_DEFAULT_MCE_SAFE        14
         | 
>> arch/x86/include/asm/extable_fixup_types.h:50: warning: "EX_TYPE_FAULT_MCE_SAFE" redefined
      50 | #define EX_TYPE_FAULT_MCE_SAFE          13
         | 
   arch/x86/include/asm/extable_fixup_types.h:43: note: this is the location of the previous definition
      43 | #define EX_TYPE_FAULT_MCE_SAFE          15
         | 
   In file included from arch/x86/include/asm/asm.h:125,
                    from arch/x86/include/asm/alternative.h:7,
                    from arch/x86/include/asm/bitops.h:17,
                    from include/linux/bitops.h:33,
                    from include/linux/log2.h:12,
                    from kernel/bounds.c:13:
>> arch/x86/include/asm/extable_fixup_types.h:49: warning: "EX_TYPE_DEFAULT_MCE_SAFE" redefined
      49 | #define EX_TYPE_DEFAULT_MCE_SAFE        12
         | 
   arch/x86/include/asm/extable_fixup_types.h:42: note: this is the location of the previous definition
      42 | #define EX_TYPE_DEFAULT_MCE_SAFE        14
         | 
>> arch/x86/include/asm/extable_fixup_types.h:50: warning: "EX_TYPE_FAULT_MCE_SAFE" redefined
      50 | #define EX_TYPE_FAULT_MCE_SAFE          13
         | 
   arch/x86/include/asm/extable_fixup_types.h:43: note: this is the location of the previous definition
      43 | #define EX_TYPE_FAULT_MCE_SAFE          15
         | 
   In file included from arch/x86/include/asm/asm.h:125,
                    from arch/x86/include/asm/alternative.h:7,
                    from arch/x86/include/asm/atomic.h:7,
                    from include/linux/atomic.h:7,
                    from include/linux/crypto.h:15,
                    from arch/x86/kernel/asm-offsets.c:9:
>> arch/x86/include/asm/extable_fixup_types.h:49: warning: "EX_TYPE_DEFAULT_MCE_SAFE" redefined
      49 | #define EX_TYPE_DEFAULT_MCE_SAFE        12
         | 
   arch/x86/include/asm/extable_fixup_types.h:42: note: this is the location of the previous definition
      42 | #define EX_TYPE_DEFAULT_MCE_SAFE        14
         | 
>> arch/x86/include/asm/extable_fixup_types.h:50: warning: "EX_TYPE_FAULT_MCE_SAFE" redefined
      50 | #define EX_TYPE_FAULT_MCE_SAFE          13
         | 
   arch/x86/include/asm/extable_fixup_types.h:43: note: this is the location of the previous definition
      43 | #define EX_TYPE_FAULT_MCE_SAFE          15
         | 


vim +/EX_TYPE_DEFAULT_MCE_SAFE +49 arch/x86/include/asm/extable_fixup_types.h

    48	
  > 49	#define	EX_TYPE_DEFAULT_MCE_SAFE	12
  > 50	#define	EX_TYPE_FAULT_MCE_SAFE		13
    51	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-26  1:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-26  1:12 [ammarfaizi2-block:stable/linux-stable-rc/queue/5.15 176/176] arch/x86/include/asm/extable_fixup_types.h:49: warning: "EX_TYPE_DEFAULT_MCE_SAFE" redefined kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox