tree: https://github.com/ammarfaizi2/linux-block tglx/devel/devmsi head: ba77f809fa66b636222f6677ec7cf8faa1562fe7 commit: 11d555b252bc04c99ebdae576b7b931ebc8d1a98 [60/86] genirq/msi: Provide data structs for per device domains config: x86_64-allyesconfig compiler: gcc-11 (Debian 11.3.0-8) 11.3.0 reproduce (this is a W=1 build): # https://github.com/ammarfaizi2/linux-block/commit/11d555b252bc04c99ebdae576b7b931ebc8d1a98 git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block tglx/devel/devmsi git checkout 11d555b252bc04c99ebdae576b7b931ebc8d1a98 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/entry/vdso/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from arch/x86/include/asm/paravirt_types.h:39, from arch/x86/include/asm/ptrace.h:97, from arch/x86/include/asm/math_emu.h:5, from arch/x86/include/asm/processor.h:13, from arch/x86/include/asm/timex.h:5, from include/linux/timex.h:67, from include/linux/time32.h:13, from include/linux/time.h:60, from arch/x86/entry/vdso/vdso32/../vclock_gettime.c:11, from arch/x86/entry/vdso/vdso32/vclock_gettime.c:29: arch/x86/include/asm/pgtable.h: In function 'pte_flags_pkey': >> arch/x86/include/asm/pgtable_types.h:58:43: warning: left shift count >= width of type [-Wshift-count-overflow] 58 | #define _PAGE_PKEY_BIT0 (_AT(pteval_t, 1) << _PAGE_BIT_PKEY_BIT0) | ^~ arch/x86/include/asm/pgtable_types.h:69:26: note: in expansion of macro '_PAGE_PKEY_BIT0' 69 | #define _PAGE_PKEY_MASK (_PAGE_PKEY_BIT0 | \ | ^~~~~~~~~~~~~~~ arch/x86/include/asm/pgtable.h:1373:29: note: in expansion of macro '_PAGE_PKEY_MASK' 1373 | return (pte_flags & _PAGE_PKEY_MASK) >> _PAGE_BIT_PKEY_BIT0; | ^~~~~~~~~~~~~~~ arch/x86/include/asm/pgtable_types.h:59:43: warning: left shift count >= width of type [-Wshift-count-overflow] 59 | #define _PAGE_PKEY_BIT1 (_AT(pteval_t, 1) << _PAGE_BIT_PKEY_BIT1) | ^~ arch/x86/include/asm/pgtable_types.h:70:26: note: in expansion of macro '_PAGE_PKEY_BIT1' 70 | _PAGE_PKEY_BIT1 | \ | ^~~~~~~~~~~~~~~ arch/x86/include/asm/pgtable.h:1373:29: note: in expansion of macro '_PAGE_PKEY_MASK' 1373 | return (pte_flags & _PAGE_PKEY_MASK) >> _PAGE_BIT_PKEY_BIT0; | ^~~~~~~~~~~~~~~ arch/x86/include/asm/pgtable_types.h:60:43: warning: left shift count >= width of type [-Wshift-count-overflow] 60 | #define _PAGE_PKEY_BIT2 (_AT(pteval_t, 1) << _PAGE_BIT_PKEY_BIT2) | ^~ arch/x86/include/asm/pgtable_types.h:71:26: note: in expansion of macro '_PAGE_PKEY_BIT2' 71 | _PAGE_PKEY_BIT2 | \ | ^~~~~~~~~~~~~~~ arch/x86/include/asm/pgtable.h:1373:29: note: in expansion of macro '_PAGE_PKEY_MASK' 1373 | return (pte_flags & _PAGE_PKEY_MASK) >> _PAGE_BIT_PKEY_BIT0; | ^~~~~~~~~~~~~~~ arch/x86/include/asm/pgtable_types.h:61:43: warning: left shift count >= width of type [-Wshift-count-overflow] 61 | #define _PAGE_PKEY_BIT3 (_AT(pteval_t, 1) << _PAGE_BIT_PKEY_BIT3) | ^~ arch/x86/include/asm/pgtable_types.h:72:26: note: in expansion of macro '_PAGE_PKEY_BIT3' 72 | _PAGE_PKEY_BIT3) | ^~~~~~~~~~~~~~~ arch/x86/include/asm/pgtable.h:1373:29: note: in expansion of macro '_PAGE_PKEY_MASK' 1373 | return (pte_flags & _PAGE_PKEY_MASK) >> _PAGE_BIT_PKEY_BIT0; | ^~~~~~~~~~~~~~~ In file included from include/linux/pgtable.h:6, from include/linux/kasan.h:33, from include/linux/slab.h:148, from include/linux/irq.h:21, from include/linux/msi.h:27, from arch/x86/include/asm/mshyperv.h:7, from include/clocksource/hyperv_timer.h:18, from arch/x86/include/asm/vdso/gettimeofday.h:21, from include/vdso/datapage.h:137, from arch/x86/entry/vdso/vdso32/../../../../../lib/vdso/gettimeofday.c:5, from arch/x86/entry/vdso/vdso32/../vclock_gettime.c:15, from arch/x86/entry/vdso/vdso32/vclock_gettime.c:29: >> arch/x86/include/asm/pgtable.h:1373:46: warning: right shift count >= width of type [-Wshift-count-overflow] 1373 | return (pte_flags & _PAGE_PKEY_MASK) >> _PAGE_BIT_PKEY_BIT0; | ^~ In file included from include/linux/kasan.h:33, from include/linux/slab.h:148, from include/linux/irq.h:21, from include/linux/msi.h:27, from arch/x86/include/asm/mshyperv.h:7, from include/clocksource/hyperv_timer.h:18, from arch/x86/include/asm/vdso/gettimeofday.h:21, from include/vdso/datapage.h:137, from arch/x86/entry/vdso/vdso32/../../../../../lib/vdso/gettimeofday.c:5, from arch/x86/entry/vdso/vdso32/../vclock_gettime.c:15, from arch/x86/entry/vdso/vdso32/vclock_gettime.c:29: include/linux/pgtable.h: At top level: include/linux/pgtable.h:1606:2: error: #error Missing MAX_POSSIBLE_PHYSMEM_BITS definition 1606 | #error Missing MAX_POSSIBLE_PHYSMEM_BITS definition | ^~~~~ In file included from arch/x86/entry/vdso/vdso32/vclock_gettime.c:29: arch/x86/entry/vdso/vdso32/../vclock_gettime.c:70:5: warning: no previous prototype for '__vdso_clock_gettime64' [-Wmissing-prototypes] 70 | int __vdso_clock_gettime64(clockid_t clock, struct __kernel_timespec *ts) | ^~~~~~~~~~~~~~~~~~~~~~ vim +58 arch/x86/include/asm/pgtable_types.h 8d19c99faf6165e Jeremy Fitzhardinge 2009-02-08 40 8d19c99faf6165e Jeremy Fitzhardinge 2009-02-08 41 #define _PAGE_PRESENT (_AT(pteval_t, 1) << _PAGE_BIT_PRESENT) 8d19c99faf6165e Jeremy Fitzhardinge 2009-02-08 42 #define _PAGE_RW (_AT(pteval_t, 1) << _PAGE_BIT_RW) 8d19c99faf6165e Jeremy Fitzhardinge 2009-02-08 43 #define _PAGE_USER (_AT(pteval_t, 1) << _PAGE_BIT_USER) 8d19c99faf6165e Jeremy Fitzhardinge 2009-02-08 44 #define _PAGE_PWT (_AT(pteval_t, 1) << _PAGE_BIT_PWT) 8d19c99faf6165e Jeremy Fitzhardinge 2009-02-08 45 #define _PAGE_PCD (_AT(pteval_t, 1) << _PAGE_BIT_PCD) 8d19c99faf6165e Jeremy Fitzhardinge 2009-02-08 46 #define _PAGE_ACCESSED (_AT(pteval_t, 1) << _PAGE_BIT_ACCESSED) 8d19c99faf6165e Jeremy Fitzhardinge 2009-02-08 47 #define _PAGE_DIRTY (_AT(pteval_t, 1) << _PAGE_BIT_DIRTY) 8d19c99faf6165e Jeremy Fitzhardinge 2009-02-08 48 #define _PAGE_PSE (_AT(pteval_t, 1) << _PAGE_BIT_PSE) 8d19c99faf6165e Jeremy Fitzhardinge 2009-02-08 49 #define _PAGE_GLOBAL (_AT(pteval_t, 1) << _PAGE_BIT_GLOBAL) c46a7c817e662a8 Mel Gorman 2014-06-04 50 #define _PAGE_SOFTW1 (_AT(pteval_t, 1) << _PAGE_BIT_SOFTW1) f955371ca9d3986 David Vrabel 2014-01-07 51 #define _PAGE_SOFTW2 (_AT(pteval_t, 1) << _PAGE_BIT_SOFTW2) 6c0df8689494e1f Joerg Roedel 2018-07-18 52 #define _PAGE_SOFTW3 (_AT(pteval_t, 1) << _PAGE_BIT_SOFTW3) 8d19c99faf6165e Jeremy Fitzhardinge 2009-02-08 53 #define _PAGE_PAT (_AT(pteval_t, 1) << _PAGE_BIT_PAT) 8d19c99faf6165e Jeremy Fitzhardinge 2009-02-08 54 #define _PAGE_PAT_LARGE (_AT(pteval_t, 1) << _PAGE_BIT_PAT_LARGE) 8d19c99faf6165e Jeremy Fitzhardinge 2009-02-08 55 #define _PAGE_SPECIAL (_AT(pteval_t, 1) << _PAGE_BIT_SPECIAL) 8d19c99faf6165e Jeremy Fitzhardinge 2009-02-08 56 #define _PAGE_CPA_TEST (_AT(pteval_t, 1) << _PAGE_BIT_CPA_TEST) 5c1d90f51027e19 Dave Hansen 2016-02-12 57 #ifdef CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS 5c1d90f51027e19 Dave Hansen 2016-02-12 @58 #define _PAGE_PKEY_BIT0 (_AT(pteval_t, 1) << _PAGE_BIT_PKEY_BIT0) 5c1d90f51027e19 Dave Hansen 2016-02-12 59 #define _PAGE_PKEY_BIT1 (_AT(pteval_t, 1) << _PAGE_BIT_PKEY_BIT1) 5c1d90f51027e19 Dave Hansen 2016-02-12 60 #define _PAGE_PKEY_BIT2 (_AT(pteval_t, 1) << _PAGE_BIT_PKEY_BIT2) 5c1d90f51027e19 Dave Hansen 2016-02-12 61 #define _PAGE_PKEY_BIT3 (_AT(pteval_t, 1) << _PAGE_BIT_PKEY_BIT3) 5c1d90f51027e19 Dave Hansen 2016-02-12 62 #else 5c1d90f51027e19 Dave Hansen 2016-02-12 63 #define _PAGE_PKEY_BIT0 (_AT(pteval_t, 0)) 5c1d90f51027e19 Dave Hansen 2016-02-12 64 #define _PAGE_PKEY_BIT1 (_AT(pteval_t, 0)) 5c1d90f51027e19 Dave Hansen 2016-02-12 65 #define _PAGE_PKEY_BIT2 (_AT(pteval_t, 0)) 5c1d90f51027e19 Dave Hansen 2016-02-12 66 #define _PAGE_PKEY_BIT3 (_AT(pteval_t, 0)) 5c1d90f51027e19 Dave Hansen 2016-02-12 67 #endif 8d19c99faf6165e Jeremy Fitzhardinge 2009-02-08 68 :::::: The code at line 58 was first introduced by commit :::::: 5c1d90f51027e197e1299ab1235a2fed78910905 x86/mm/pkeys: Add PTE bits for storing protection key :::::: TO: Dave Hansen :::::: CC: Ingo Molnar -- 0-DAY CI Kernel Test Service https://01.org/lkp