Hi Vincenzo, kernel test robot noticed the following build errors: [auto build test ERROR on vgupta-arc/for-curr] [also build test ERROR on arm64/for-next/core geert-m68k/for-next geert-m68k/for-linus deller-parisc/for-next powerpc/next powerpc/fixes s390/features uml/next tip/x86/core linus/master v6.12-rc2 next-20241011] [cannot apply to vgupta-arc/for-next uml/fixes] [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/Vincenzo-Frascino/drm-i915-Change-fault-type-to-unsigned-long/20241010-215325 base: https://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc.git for-curr patch link: https://lore.kernel.org/r/20241010135146.181175-3-vincenzo.frascino%40arm.com patch subject: [PATCH v4 2/2] vdso: Introduce vdso/page.h config: s390-allmodconfig (https://download.01.org/0day-ci/archive/20241011/202410112106.mvc2U2p0-lkp@xxxxxxxxx/config) compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 70e0a7e7e6a8541bcc46908c592eed561850e416) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241011/202410112106.mvc2U2p0-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/202410112106.mvc2U2p0-lkp@xxxxxxxxx/ All error/warnings (new ones prefixed by >>): In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:7: In file included from include/linux/hardirq.h:5: In file included from include/linux/context_tracking_state.h:5: In file included from include/linux/percpu.h:5: In file included from include/linux/alloc_tag.h:11: In file included from include/linux/preempt.h:79: In file included from arch/s390/include/asm/preempt.h:6: In file included from include/linux/thread_info.h:60: In file included from arch/s390/include/asm/thread_info.h:31: >> arch/s390/include/asm/page.h:17:9: warning: 'PAGE_SHIFT' macro redefined [-Wmacro-redefined] 17 | #define PAGE_SHIFT _PAGE_SHIFT | ^ include/vdso/page.h:13:9: note: previous definition is here 13 | #define PAGE_SHIFT CONFIG_PAGE_SHIFT | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:7: In file included from include/linux/hardirq.h:5: In file included from include/linux/context_tracking_state.h:5: In file included from include/linux/percpu.h:5: In file included from include/linux/alloc_tag.h:11: In file included from include/linux/preempt.h:79: In file included from arch/s390/include/asm/preempt.h:6: In file included from include/linux/thread_info.h:60: In file included from arch/s390/include/asm/thread_info.h:31: >> arch/s390/include/asm/page.h:18:9: warning: 'PAGE_SIZE' macro redefined [-Wmacro-redefined] 18 | #define PAGE_SIZE _PAGE_SIZE | ^ include/vdso/page.h:15:9: note: previous definition is here 15 | #define PAGE_SIZE (_AC(1,UL) << CONFIG_PAGE_SHIFT) | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:7: In file included from include/linux/hardirq.h:5: In file included from include/linux/context_tracking_state.h:5: In file included from include/linux/percpu.h:5: In file included from include/linux/alloc_tag.h:11: In file included from include/linux/preempt.h:79: In file included from arch/s390/include/asm/preempt.h:6: In file included from include/linux/thread_info.h:60: In file included from arch/s390/include/asm/thread_info.h:31: >> arch/s390/include/asm/page.h:19:9: warning: 'PAGE_MASK' macro redefined [-Wmacro-redefined] 19 | #define PAGE_MASK _PAGE_MASK | ^ include/vdso/page.h:27:9: note: previous definition is here 27 | #define PAGE_MASK (~(PAGE_SIZE - 1)) | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:7: In file included from include/linux/hardirq.h:5: In file included from include/linux/context_tracking_state.h:5: In file included from include/linux/percpu.h:5: In file included from include/linux/alloc_tag.h:11: In file included from include/linux/preempt.h:79: In file included from arch/s390/include/asm/preempt.h:6: In file included from include/linux/thread_info.h:60: In file included from arch/s390/include/asm/thread_info.h:31: >> arch/s390/include/asm/page.h:253:14: error: use of undeclared identifier '_PAGE_SHIFT' 253 | return __va(pfn_to_phys(pfn)); | ^ arch/s390/include/asm/page.h:244:36: note: expanded from macro 'pfn_to_phys' 244 | #define pfn_to_phys(pfn) ((pfn) << PAGE_SHIFT) | ^ arch/s390/include/asm/page.h:17:20: note: expanded from macro 'PAGE_SHIFT' 17 | #define PAGE_SHIFT _PAGE_SHIFT | ^ arch/s390/include/asm/page.h:258:9: error: use of undeclared identifier '_PAGE_SHIFT' 258 | return phys_to_pfn(__pa(kaddr)); | ^ arch/s390/include/asm/page.h:243:38: note: expanded from macro 'phys_to_pfn' 243 | #define phys_to_pfn(phys) ((phys) >> PAGE_SHIFT) | ^ arch/s390/include/asm/page.h:17:20: note: expanded from macro 'PAGE_SHIFT' 17 | #define PAGE_SHIFT _PAGE_SHIFT | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:7: In file included from include/linux/hardirq.h:5: In file included from include/linux/context_tracking_state.h:5: In file included from include/linux/percpu.h:5: In file included from include/linux/alloc_tag.h:11: In file included from include/linux/preempt.h:79: In file included from arch/s390/include/asm/preempt.h:6: In file included from include/linux/thread_info.h:60: In file included from arch/s390/include/asm/thread_info.h:31: In file included from arch/s390/include/asm/page.h:273: >> include/asm-generic/getorder.h:33:27: error: use of undeclared identifier '_PAGE_SHIFT' 33 | return BITS_PER_LONG - PAGE_SHIFT; | ^ arch/s390/include/asm/page.h:17:20: note: expanded from macro 'PAGE_SHIFT' 17 | #define PAGE_SHIFT _PAGE_SHIFT | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:7: In file included from include/linux/hardirq.h:5: In file included from include/linux/context_tracking_state.h:5: In file included from include/linux/percpu.h:5: In file included from include/linux/alloc_tag.h:11: In file included from include/linux/preempt.h:79: In file included from arch/s390/include/asm/preempt.h:6: In file included from include/linux/thread_info.h:60: In file included from arch/s390/include/asm/thread_info.h:31: In file included from arch/s390/include/asm/page.h:273: include/asm-generic/getorder.h:35:22: error: use of undeclared identifier '_PAGE_SHIFT' 35 | if (size < (1UL << PAGE_SHIFT)) | ^ arch/s390/include/asm/page.h:17:20: note: expanded from macro 'PAGE_SHIFT' 17 | #define PAGE_SHIFT _PAGE_SHIFT | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:7: In file included from include/linux/hardirq.h:5: In file included from include/linux/context_tracking_state.h:5: In file included from include/linux/percpu.h:5: In file included from include/linux/alloc_tag.h:11: In file included from include/linux/preempt.h:79: In file included from arch/s390/include/asm/preempt.h:6: In file included from include/linux/thread_info.h:60: In file included from arch/s390/include/asm/thread_info.h:31: In file included from arch/s390/include/asm/page.h:273: include/asm-generic/getorder.h:38:30: error: use of undeclared identifier '_PAGE_SHIFT' 38 | return ilog2((size) - 1) - PAGE_SHIFT + 1; | ^ arch/s390/include/asm/page.h:17:20: note: expanded from macro 'PAGE_SHIFT' 17 | #define PAGE_SHIFT _PAGE_SHIFT | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:7: In file included from include/linux/hardirq.h:5: In file included from include/linux/context_tracking_state.h:5: In file included from include/linux/percpu.h:5: In file included from include/linux/alloc_tag.h:11: In file included from include/linux/preempt.h:79: In file included from arch/s390/include/asm/preempt.h:6: In file included from include/linux/thread_info.h:60: In file included from arch/s390/include/asm/thread_info.h:31: In file included from arch/s390/include/asm/page.h:273: include/asm-generic/getorder.h:42:11: error: use of undeclared identifier '_PAGE_SHIFT' 42 | size >>= PAGE_SHIFT; | ^ arch/s390/include/asm/page.h:17:20: note: expanded from macro 'PAGE_SHIFT' 17 | #define PAGE_SHIFT _PAGE_SHIFT | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:7: In file included from include/linux/hardirq.h:5: In file included from include/linux/context_tracking_state.h:5: In file included from include/linux/percpu.h:5: In file included from include/linux/alloc_tag.h:14: In file included from include/linux/smp.h:119: In file included from arch/s390/include/asm/smp.h:12: >> arch/s390/include/asm/processor.h:287:45: error: use of undeclared identifier '_PAGE_SIZE' 287 | return !((ksp ^ current_stack_pointer) & ~(THREAD_SIZE - 1)); | ^ arch/s390/include/asm/thread_info.h:25:22: note: expanded from macro 'THREAD_SIZE' 25 | #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) | ^ arch/s390/include/asm/page.h:18:19: note: expanded from macro 'PAGE_SIZE' 18 | #define PAGE_SIZE _PAGE_SIZE | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:7: In file included from include/linux/hardirq.h:5: In file included from include/linux/context_tracking_state.h:5: In file included from include/linux/percpu.h:12: >> include/linux/sched.h:1890:22: error: use of undeclared identifier '_PAGE_SIZE' 1890 | unsigned long stack[THREAD_SIZE/sizeof(long)]; | ^ arch/s390/include/asm/thread_info.h:25:22: note: expanded from macro 'THREAD_SIZE' 25 | #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) | ^ arch/s390/include/asm/page.h:18:19: note: expanded from macro 'PAGE_SIZE' 18 | #define PAGE_SIZE _PAGE_SIZE | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:7: In file included from include/linux/hardirq.h:5: In file included from include/linux/context_tracking_state.h:5: In file included from include/linux/percpu.h:12: include/linux/sched.h:1897:33: error: use of undeclared identifier '_PAGE_SIZE' 1897 | extern unsigned long init_stack[THREAD_SIZE / sizeof(unsigned long)]; | ^ arch/s390/include/asm/thread_info.h:25:22: note: expanded from macro 'THREAD_SIZE' 25 | #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) | ^ arch/s390/include/asm/page.h:18:19: note: expanded from macro 'PAGE_SIZE' 18 | #define PAGE_SIZE _PAGE_SIZE | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:11: include/linux/signal.h:98:11: warning: array index 3 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 98 | return (set->sig[3] | set->sig[2] | | ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:11: include/linux/signal.h:98:25: warning: array index 2 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 98 | return (set->sig[3] | set->sig[2] | | ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:11: include/linux/signal.h:99:4: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 99 | set->sig[1] | set->sig[0]) == 0; | ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:11: include/linux/signal.h:101:11: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 101 | return (set->sig[1] | set->sig[0]) == 0; | ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:11: include/linux/signal.h:114:11: warning: array index 3 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds] 114 | return (set1->sig[3] == set2->sig[3]) && | ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:11: include/linux/signal.h:114:27: warning: array index 3 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds] 114 | return (set1->sig[3] == set2->sig[3]) && | ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:11: include/linux/signal.h:115:5: warning: array index 2 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds] 115 | (set1->sig[2] == set2->sig[2]) && | ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:11: include/linux/signal.h:115:21: warning: array index 2 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds] 115 | (set1->sig[2] == set2->sig[2]) && | ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:11: include/linux/signal.h:116:5: warning: array index 1 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds] 116 | (set1->sig[1] == set2->sig[1]) && | ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:11: include/linux/signal.h:116:21: warning: array index 1 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds] 116 | (set1->sig[1] == set2->sig[1]) && | ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here -- 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:11: include/linux/signal.h:187:1: warning: array index 3 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 187 | _SIG_SET_OP(signotset, _sig_not) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/signal.h:174:10: note: expanded from macro '_SIG_SET_OP' 174 | case 4: set->sig[3] = op(set->sig[3]); \ | ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:11: include/linux/signal.h:187:1: warning: array index 2 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 187 | _SIG_SET_OP(signotset, _sig_not) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/signal.h:175:20: note: expanded from macro '_SIG_SET_OP' 175 | set->sig[2] = op(set->sig[2]); \ | ^ ~ include/linux/signal.h:186:24: note: expanded from macro '_sig_not' 186 | #define _sig_not(x) (~(x)) | ^ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:11: include/linux/signal.h:187:1: warning: array index 2 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 187 | _SIG_SET_OP(signotset, _sig_not) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/signal.h:175:3: note: expanded from macro '_SIG_SET_OP' 175 | set->sig[2] = op(set->sig[2]); \ | ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:11: include/linux/signal.h:187:1: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 187 | _SIG_SET_OP(signotset, _sig_not) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/signal.h:177:27: note: expanded from macro '_SIG_SET_OP' 177 | case 2: set->sig[1] = op(set->sig[1]); \ | ^ ~ include/linux/signal.h:186:24: note: expanded from macro '_sig_not' 186 | #define _sig_not(x) (~(x)) | ^ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:11: include/linux/signal.h:187:1: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 187 | _SIG_SET_OP(signotset, _sig_not) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/signal.h:177:10: note: expanded from macro '_SIG_SET_OP' 177 | case 2: set->sig[1] = op(set->sig[1]); \ | ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:11: include/linux/signal.h:198:10: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 198 | case 2: set->sig[1] = 0; | ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:11: include/linux/signal.h:211:10: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 211 | case 2: set->sig[1] = -1; | ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:11: include/linux/signal.h:242:10: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 242 | case 2: set->sig[1] = 0; | ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:11: include/linux/signal.h:255:10: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 255 | case 2: set->sig[1] = -1; | ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:16: In file included from include/linux/mm.h:7: In file included from include/linux/gfp.h:7: In file included from include/linux/mmzone.h:22: >> include/linux/mm_types.h:547:6: warning: '_PAGE_SIZE' is not defined, evaluates to 0 [-Wundef] 547 | #if (PAGE_SIZE < PAGE_FRAG_CACHE_MAX_SIZE) | ^ arch/s390/include/asm/page.h:18:19: note: expanded from macro 'PAGE_SIZE' 18 | #define PAGE_SIZE _PAGE_SIZE | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:16: In file included from include/linux/mm.h:7: In file included from include/linux/gfp.h:7: In file included from include/linux/mmzone.h:22: >> include/linux/mm_types.h:547:18: warning: '_PAGE_MASK' is not defined, evaluates to 0 [-Wundef] 547 | #if (PAGE_SIZE < PAGE_FRAG_CACHE_MAX_SIZE) | ^ include/linux/mm_types.h:524:55: note: expanded from macro 'PAGE_FRAG_CACHE_MAX_SIZE' 524 | #define PAGE_FRAG_CACHE_MAX_SIZE __ALIGN_MASK(32768, ~PAGE_MASK) | ^ arch/s390/include/asm/page.h:19:19: note: expanded from macro 'PAGE_MASK' 19 | #define PAGE_MASK _PAGE_MASK | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:16: In file included from include/linux/mm.h:7: In file included from include/linux/gfp.h:7: In file included from include/linux/mmzone.h:22: >> include/linux/mm_types.h:547:18: warning: '_PAGE_MASK' is not defined, evaluates to 0 [-Wundef] include/linux/mm_types.h:524:55: note: expanded from macro 'PAGE_FRAG_CACHE_MAX_SIZE' 524 | #define PAGE_FRAG_CACHE_MAX_SIZE __ALIGN_MASK(32768, ~PAGE_MASK) | ^ arch/s390/include/asm/page.h:19:19: note: expanded from macro 'PAGE_MASK' 19 | #define PAGE_MASK _PAGE_MASK | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:16: In file included from include/linux/mm.h:7: In file included from include/linux/gfp.h:7: In file included from include/linux/mmzone.h:23: >> include/linux/page-flags.h:214:38: error: use of undeclared identifier '_PAGE_SIZE' 214 | if (IS_ALIGNED((unsigned long)page, PAGE_SIZE) && | ^ arch/s390/include/asm/page.h:18:19: note: expanded from macro 'PAGE_SIZE' 18 | #define PAGE_SIZE _PAGE_SIZE | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:16: In file included from include/linux/mm.h:7: In file included from include/linux/gfp.h:7: >> include/linux/mmzone.h:1777:23: warning: '_PAGE_SHIFT' is not defined, evaluates to 0 [-Wundef] 1777 | #if (MAX_PAGE_ORDER + PAGE_SHIFT) > SECTION_SIZE_BITS | ^ arch/s390/include/asm/page.h:17:20: note: expanded from macro 'PAGE_SHIFT' 17 | #define PAGE_SHIFT _PAGE_SHIFT | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:16: In file included from include/linux/mm.h:7: In file included from include/linux/gfp.h:7: >> include/linux/mmzone.h:1783:16: error: use of undeclared identifier '_PAGE_SHIFT' 1783 | return pfn >> PFN_SECTION_SHIFT; | ^ include/linux/mmzone.h:1767:48: note: expanded from macro 'PFN_SECTION_SHIFT' 1767 | #define PFN_SECTION_SHIFT (SECTION_SIZE_BITS - PAGE_SHIFT) | ^ arch/s390/include/asm/page.h:17:20: note: expanded from macro 'PAGE_SHIFT' 17 | #define PAGE_SHIFT _PAGE_SHIFT | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:16: In file included from include/linux/mm.h:7: In file included from include/linux/gfp.h:7: include/linux/mmzone.h:1787:16: error: use of undeclared identifier '_PAGE_SHIFT' 1787 | return sec << PFN_SECTION_SHIFT; | ^ include/linux/mmzone.h:1767:48: note: expanded from macro 'PFN_SECTION_SHIFT' 1767 | #define PFN_SECTION_SHIFT (SECTION_SIZE_BITS - PAGE_SHIFT) | ^ arch/s390/include/asm/page.h:17:20: note: expanded from macro 'PAGE_SHIFT' 17 | #define PAGE_SHIFT _PAGE_SHIFT | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:16: In file included from include/linux/mm.h:7: In file included from include/linux/gfp.h:7: >> include/linux/mmzone.h:1875:23: error: use of undeclared identifier '_PAGE_SIZE' 1875 | unsigned long root = SECTION_NR_TO_ROOT(nr); | ^ include/linux/mmzone.h:1858:42: note: expanded from macro 'SECTION_NR_TO_ROOT' 1858 | #define SECTION_NR_TO_ROOT(sec) ((sec) / SECTIONS_PER_ROOT) | ^ include/linux/mmzone.h:1853:34: note: expanded from macro 'SECTIONS_PER_ROOT' 1853 | #define SECTIONS_PER_ROOT (PAGE_SIZE / sizeof (struct mem_section)) | ^ arch/s390/include/asm/page.h:18:19: note: expanded from macro 'PAGE_SIZE' 18 | #define PAGE_SIZE _PAGE_SIZE | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:16: In file included from include/linux/mm.h:7: In file included from include/linux/gfp.h:7: include/linux/mmzone.h:1877:23: error: use of undeclared identifier '_PAGE_SIZE' 1877 | if (unlikely(root >= NR_SECTION_ROOTS)) | ^ include/linux/mmzone.h:1859:56: note: expanded from macro 'NR_SECTION_ROOTS' 1859 | #define NR_SECTION_ROOTS DIV_ROUND_UP(NR_MEM_SECTIONS, SECTIONS_PER_ROOT) | ^ include/linux/mmzone.h:1853:34: note: expanded from macro 'SECTIONS_PER_ROOT' 1853 | #define SECTIONS_PER_ROOT (PAGE_SIZE / sizeof (struct mem_section)) | ^ arch/s390/include/asm/page.h:18:19: note: expanded from macro 'PAGE_SIZE' 18 | #define PAGE_SIZE _PAGE_SIZE | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:16: In file included from include/linux/mm.h:7: In file included from include/linux/gfp.h:7: include/linux/mmzone.h:1877:23: error: use of undeclared identifier '_PAGE_SIZE' include/linux/mmzone.h:1859:56: note: expanded from macro 'NR_SECTION_ROOTS' 1859 | #define NR_SECTION_ROOTS DIV_ROUND_UP(NR_MEM_SECTIONS, SECTIONS_PER_ROOT) | ^ include/linux/mmzone.h:1853:34: note: expanded from macro 'SECTIONS_PER_ROOT' 1853 | #define SECTIONS_PER_ROOT (PAGE_SIZE / sizeof (struct mem_section)) | ^ arch/s390/include/asm/page.h:18:19: note: expanded from macro 'PAGE_SIZE' 18 | #define PAGE_SIZE _PAGE_SIZE | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:16: In file included from include/linux/mm.h:7: In file included from include/linux/gfp.h:7: include/linux/mmzone.h:1884:33: error: use of undeclared identifier '_PAGE_SIZE' 1884 | return &mem_section[root][nr & SECTION_ROOT_MASK]; | ^ include/linux/mmzone.h:1860:28: note: expanded from macro 'SECTION_ROOT_MASK' 1860 | #define SECTION_ROOT_MASK (SECTIONS_PER_ROOT - 1) | ^ include/linux/mmzone.h:1853:34: note: expanded from macro 'SECTIONS_PER_ROOT' 1853 | #define SECTIONS_PER_ROOT (PAGE_SIZE / sizeof (struct mem_section)) | ^ arch/s390/include/asm/page.h:18:19: note: expanded from macro 'PAGE_SIZE' 18 | #define PAGE_SIZE _PAGE_SIZE | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:16: In file included from include/linux/mm.h:7: In file included from include/linux/gfp.h:7: include/linux/mmzone.h:1996:18: error: use of undeclared identifier '_PAGE_SHIFT' 1996 | return (pfn & ~(PAGE_SECTION_MASK)) / PAGES_PER_SUBSECTION; | ^ include/linux/mmzone.h:1772:30: note: expanded from macro 'PAGE_SECTION_MASK' 1772 | #define PAGE_SECTION_MASK (~(PAGES_PER_SECTION-1)) | ^ include/linux/mmzone.h:1771:41: note: expanded from macro 'PAGES_PER_SECTION' 1771 | #define PAGES_PER_SECTION (1UL << PFN_SECTION_SHIFT) | ^ include/linux/mmzone.h:1767:48: note: expanded from macro 'PFN_SECTION_SHIFT' 1767 | #define PFN_SECTION_SHIFT (SECTION_SIZE_BITS - PAGE_SHIFT) | ^ arch/s390/include/asm/page.h:17:20: note: expanded from macro 'PAGE_SHIFT' 17 | #define PAGE_SHIFT _PAGE_SHIFT | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:16: In file included from include/linux/mm.h:7: In file included from include/linux/gfp.h:7: include/linux/mmzone.h:1996:40: error: use of undeclared identifier '_PAGE_SHIFT' 1996 | return (pfn & ~(PAGE_SECTION_MASK)) / PAGES_PER_SUBSECTION; | ^ include/linux/mmzone.h:1797:38: note: expanded from macro 'PAGES_PER_SUBSECTION' 1797 | #define PAGES_PER_SUBSECTION (1UL << PFN_SUBSECTION_SHIFT) | ^ include/linux/mmzone.h:1796:50: note: expanded from macro 'PFN_SUBSECTION_SHIFT' 1796 | #define PFN_SUBSECTION_SHIFT (SUBSECTION_SHIFT - PAGE_SHIFT) | ^ arch/s390/include/asm/page.h:17:20: note: expanded from macro 'PAGE_SHIFT' 17 | #define PAGE_SHIFT _PAGE_SHIFT | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:16: In file included from include/linux/mm.h:7: In file included from include/linux/gfp.h:7: include/linux/mmzone.h:2037:15: error: use of undeclared identifier '_PAGE_SHIFT' 2037 | if (PHYS_PFN(PFN_PHYS(pfn)) != pfn) | ^ include/linux/pfn.h:21:42: note: expanded from macro 'PFN_PHYS' vim +/_PAGE_SHIFT +253 arch/s390/include/asm/page.h 014b020475d4b9 Alexander Gordeev 2020-02-25 250 2d1494fb31405d Linus Walleij 2023-08-12 251 static inline void *pfn_to_virt(unsigned long pfn) 2d1494fb31405d Linus Walleij 2023-08-12 252 { 2d1494fb31405d Linus Walleij 2023-08-12 @253 return __va(pfn_to_phys(pfn)); 2d1494fb31405d Linus Walleij 2023-08-12 254 } 2d1494fb31405d Linus Walleij 2023-08-12 255 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki