tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tmp.tmp2 head: adcceb5eb7aee38e4a9c15bdf599655f0e1b1324 commit: a490873e1d58c0b339bb50ee382dc1fe95c6d9a4 [255/364] sched/headers, printk: Reduce header dependencies config: powerpc-allyesconfig (attached as .config) compiler: powerpc64-linux-gcc (GCC) 9.3.0 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 # https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=a490873e1d58c0b339bb50ee382dc1fe95c6d9a4 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 a490873e1d58c0b339bb50ee382dc1fe95c6d9a4 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): include/asm-generic/preempt.h:11:40: error: invalid type argument of '->' (have 'int') 11 | return READ_ONCE(current_thread_info()->preempt_count); | ^~ include/linux/compiler_types.h:308:9: note: in definition of macro '__compiletime_assert' 308 | if (!(condition)) \ | ^~~~~~~~~ include/linux/compiler_types.h:328:2: note: in expansion of macro '_compiletime_assert' 328 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^~~~~~~~~~~~~~~~~~~ include/asm-generic/rwonce.h:36:2: note: in expansion of macro 'compiletime_assert' 36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \ | ^~~~~~~~~~~~~~~~~~ include/asm-generic/rwonce.h:36:21: note: in expansion of macro '__native_word' 36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \ | ^~~~~~~~~~~~~ include/asm-generic/rwonce.h:49:2: note: in expansion of macro 'compiletime_assert_rwonce_type' 49 | compiletime_assert_rwonce_type(x); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/asm-generic/preempt.h:11:9: note: in expansion of macro 'READ_ONCE' 11 | return READ_ONCE(current_thread_info()->preempt_count); | ^~~~~~~~~ include/asm-generic/preempt.h:11:40: error: invalid type argument of '->' (have 'int') 11 | return READ_ONCE(current_thread_info()->preempt_count); | ^~ include/linux/compiler_types.h:308:9: note: in definition of macro '__compiletime_assert' 308 | if (!(condition)) \ | ^~~~~~~~~ include/linux/compiler_types.h:328:2: note: in expansion of macro '_compiletime_assert' 328 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^~~~~~~~~~~~~~~~~~~ include/asm-generic/rwonce.h:36:2: note: in expansion of macro 'compiletime_assert' 36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \ | ^~~~~~~~~~~~~~~~~~ include/asm-generic/rwonce.h:49:2: note: in expansion of macro 'compiletime_assert_rwonce_type' 49 | compiletime_assert_rwonce_type(x); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/asm-generic/preempt.h:11:9: note: in expansion of macro 'READ_ONCE' 11 | return READ_ONCE(current_thread_info()->preempt_count); | ^~~~~~~~~ include/asm-generic/preempt.h:11:40: error: invalid type argument of '->' (have 'int') 11 | return READ_ONCE(current_thread_info()->preempt_count); | ^~ include/linux/compiler_types.h:279:13: note: in definition of macro '__unqual_scalar_typeof' 279 | _Generic((x), \ | ^ include/asm-generic/rwonce.h:50:2: note: in expansion of macro '__READ_ONCE' 50 | __READ_ONCE(x); \ | ^~~~~~~~~~~ include/asm-generic/preempt.h:11:9: note: in expansion of macro 'READ_ONCE' 11 | return READ_ONCE(current_thread_info()->preempt_count); | ^~~~~~~~~ In file included from ./arch/powerpc/include/generated/asm/rwonce.h:1, from include/linux/compiler.h:248, from include/asm-generic/div64.h:27, from ./arch/powerpc/include/generated/asm/div64.h:1, from include/linux/math64.h:7, from include/linux/time.h:6, from include/linux/compat.h:10, from arch/powerpc/kernel/asm-offsets.c:14: include/asm-generic/preempt.h:11:40: error: invalid type argument of '->' (have 'int') 11 | return READ_ONCE(current_thread_info()->preempt_count); | ^~ include/asm-generic/rwonce.h:44:72: note: in definition of macro '__READ_ONCE' 44 | #define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x)) | ^ include/asm-generic/preempt.h:11:9: note: in expansion of macro 'READ_ONCE' 11 | return READ_ONCE(current_thread_info()->preempt_count); | ^~~~~~~~~ In file included from ./arch/powerpc/include/generated/asm/preempt.h:1, from include/linux/preempt.h:80, from include/linux/spinlock.h:53, from include/linux/wait.h:12, from include/linux/wait_bit.h:8, from include/linux/fs.h:8, from include/linux/compat.h:17, from arch/powerpc/kernel/asm-offsets.c:14: include/asm-generic/preempt.h: In function 'preempt_count_ptr': include/asm-generic/preempt.h:16:31: error: invalid type argument of '->' (have 'int') 16 | return ¤t_thread_info()->preempt_count; | ^~ include/asm-generic/preempt.h: In function '__preempt_count_dec_and_test': include/asm-generic/preempt.h:69:36: error: implicit declaration of function 'tif_need_resched' [-Werror=implicit-function-declaration] 69 | return !--*preempt_count_ptr() && tif_need_resched(); | ^~~~~~~~~~~~~~~~ In file included from arch/powerpc/include/asm/book3s/64/pgtable.h:296, from arch/powerpc/include/asm/book3s/64/mmu-hash.h:20, from arch/powerpc/include/asm/book3s/64/mmu.h:31, from arch/powerpc/include/asm/mmu.h:402, from arch/powerpc/include/asm/lppaca.h:46, from arch/powerpc/include/asm/paca.h:17, from arch/powerpc/include/asm/hw_irq.h:103, from arch/powerpc/include/asm/irqflags.h:12, from include/linux/irqflags.h:16, from include/linux/spinlock.h:56, from include/linux/wait.h:12, from include/linux/wait_bit.h:8, from include/linux/fs.h:8, from include/linux/compat.h:17, from arch/powerpc/kernel/asm-offsets.c:14: arch/powerpc/include/asm/book3s/64/hash.h: At top level: >> arch/powerpc/include/asm/book3s/64/hash.h:248:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'hash__vmemmap_create_mapping' 248 | extern int __meminit hash__vmemmap_create_mapping(unsigned long start, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from arch/powerpc/include/asm/book3s/64/pgtable.h:297, from arch/powerpc/include/asm/book3s/64/mmu-hash.h:20, from arch/powerpc/include/asm/book3s/64/mmu.h:31, from arch/powerpc/include/asm/mmu.h:402, from arch/powerpc/include/asm/lppaca.h:46, from arch/powerpc/include/asm/paca.h:17, from arch/powerpc/include/asm/hw_irq.h:103, from arch/powerpc/include/asm/irqflags.h:12, from include/linux/irqflags.h:16, from include/linux/spinlock.h:56, from include/linux/wait.h:12, from include/linux/wait_bit.h:8, from include/linux/fs.h:8, from include/linux/compat.h:17, from arch/powerpc/kernel/asm-offsets.c:14: >> arch/powerpc/include/asm/book3s/64/radix.h:289:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'radix__vmemmap_create_mapping' 289 | extern int __meminit radix__vmemmap_create_mapping(unsigned long start, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from arch/powerpc/include/asm/book3s/64/mmu-hash.h:20, from arch/powerpc/include/asm/book3s/64/mmu.h:31, from arch/powerpc/include/asm/mmu.h:402, from arch/powerpc/include/asm/lppaca.h:46, from arch/powerpc/include/asm/paca.h:17, from arch/powerpc/include/asm/hw_irq.h:103, from arch/powerpc/include/asm/irqflags.h:12, from include/linux/irqflags.h:16, from include/linux/spinlock.h:56, from include/linux/wait.h:12, from include/linux/wait_bit.h:8, from include/linux/fs.h:8, from include/linux/compat.h:17, from arch/powerpc/kernel/asm-offsets.c:14: >> arch/powerpc/include/asm/book3s/64/pgtable.h:1075:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmemmap_create_mapping' 1075 | static inline int __meminit vmemmap_create_mapping(unsigned long start, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from arch/powerpc/include/asm/mmu.h:402, from arch/powerpc/include/asm/lppaca.h:46, from arch/powerpc/include/asm/paca.h:17, from arch/powerpc/include/asm/hw_irq.h:103, from arch/powerpc/include/asm/irqflags.h:12, from include/linux/irqflags.h:16, from include/linux/spinlock.h:56, from include/linux/wait.h:12, from include/linux/wait_bit.h:8, from include/linux/fs.h:8, from include/linux/compat.h:17, from arch/powerpc/kernel/asm-offsets.c:14: >> arch/powerpc/include/asm/book3s/64/mmu.h:210:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'early_init_mmu' 210 | static inline void __init early_init_mmu(void) | ^~~~~~~~~~~~~~ In file included from include/linux/rculist.h:11, from include/linux/dcache.h:8, from include/linux/fs.h:10, from include/linux/compat.h:17, from arch/powerpc/kernel/asm-offsets.c:14: include/linux/rcuwait.h: In function 'rcuwait_active': include/linux/rcupdate.h:364:9: error: dereferencing pointer to incomplete type 'struct task_struct' 364 | typeof(*p) *_________p1 = (typeof(*p) *__force)READ_ONCE(p); \ | ^ include/linux/rcupdate.h:474:31: note: in expansion of macro '__rcu_access_pointer' 474 | #define rcu_access_pointer(p) __rcu_access_pointer((p), __rcu) | ^~~~~~~~~~~~~~~~~~~~ include/linux/rcuwait.h:33:11: note: in expansion of macro 'rcu_access_pointer' 33 | return !!rcu_access_pointer(w->task); | ^~~~~~~~~~~~~~~~~~ In file included from arch/powerpc/include/asm/kup.h:18, from arch/powerpc/include/asm/uaccess.h:9, from include/linux/uaccess.h:11, from include/linux/compat.h:19, from arch/powerpc/kernel/asm-offsets.c:14: arch/powerpc/include/asm/book3s/64/kup.h: In function 'current_thread_amr': arch/powerpc/include/asm/book3s/64/kup.h:217:6: error: implicit declaration of function 'task_thread'; did you mean 'start_thread'? [-Werror=implicit-function-declaration] 217 | if (task_thread(current).regs) | ^~~~~~~~~~~ | start_thread arch/powerpc/include/asm/book3s/64/kup.h:217:26: error: request for member 'regs' in something not a structure or union 217 | if (task_thread(current).regs) | ^ arch/powerpc/include/asm/book3s/64/kup.h:218:30: error: request for member 'regs' in something not a structure or union 218 | return task_thread(current).regs->amr; | ^ arch/powerpc/include/asm/book3s/64/kup.h: In function 'current_thread_iamr': arch/powerpc/include/asm/book3s/64/kup.h:224:26: error: request for member 'regs' in something not a structure or union 224 | if (task_thread(current).regs) | ^ arch/powerpc/include/asm/book3s/64/kup.h:225:30: error: request for member 'regs' in something not a structure or union 225 | return task_thread(current).regs->iamr; | ^ In file included from include/linux/compat.h:22, from arch/powerpc/kernel/asm-offsets.c:14: arch/powerpc/include/asm/compat.h: In function 'arch_compat_alloc_user_space': arch/powerpc/include/asm/compat.h:99:45: error: request for member 'regs' in something not a structure or union 99 | struct pt_regs *regs = task_thread(current).regs; | ^ In file included from include/linux/thread_info.h:50, from include/linux/uio.h:10, from include/linux/socket.h:8, from include/linux/compat.h:15, from arch/powerpc/kernel/asm-offsets.c:14: arch/powerpc/include/asm/thread_info.h:167:26: error: implicit declaration of function 'test_thread_flag'; did you mean 'test_thread_local_flags'? [-Werror=implicit-function-declaration] 167 | #define is_32bit_task() (test_thread_flag(TIF_32BIT)) | ^~~~~~~~~~~~~~~~ arch/powerpc/include/asm/compat.h:107:7: note: in expansion of macro 'is_32bit_task' 107 | if (!is_32bit_task()) | ^~~~~~~~~~~~~ In file included from arch/powerpc/include/asm/kvm_ppc.h:19, from arch/powerpc/include/asm/dbell.h:17, from arch/powerpc/kernel/asm-offsets.c:38: include/linux/kvm_host.h: In function 'kvm_vcpu_can_poll': include/linux/kvm_host.h:271:35: error: implicit declaration of function 'need_resched'; did you mean 'should_resched'? [-Werror=implicit-function-declaration] 271 | return single_task_running() && !need_resched() && ktime_before(cur, stop); | ^~~~~~~~~~~~ | should_resched In file included from arch/powerpc/kernel/asm-offsets.c:29: arch/powerpc/kernel/asm-offsets.c: In function 'main': include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread' 140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b) | ^~~~~~~~~~~~~~~~~~ include/linux/kbuild.h:6:62: note: in definition of macro 'DEFINE' 6 | asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val)) | ^~~ include/linux/stddef.h:17:32: note: in expansion of macro '__compiler_offsetof' 17 | #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER) | ^~~~~~~~~~~~~~~~~~~ include/linux/kbuild.h:11:14: note: in expansion of macro 'offsetof' 11 | DEFINE(sym, offsetof(struct str, mem)) | ^~~~~~~~ arch/powerpc/kernel/asm-offsets.c:81:2: note: in expansion of macro 'OFFSET' 81 | OFFSET(THREAD, task_struct, thread); | ^~~~~~ include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'stack_canary' 140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b) | ^~~~~~~~~~~~~~~~~~ include/linux/kbuild.h:6:62: note: in definition of macro 'DEFINE' 6 | asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val)) | ^~~ include/linux/stddef.h:17:32: note: in expansion of macro '__compiler_offsetof' 17 | #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER) | ^~~~~~~~~~~~~~~~~~~ include/linux/kbuild.h:11:14: note: in expansion of macro 'offsetof' 11 | DEFINE(sym, offsetof(struct str, mem)) | ^~~~~~~~ arch/powerpc/kernel/asm-offsets.c:84:2: note: in expansion of macro 'OFFSET' 84 | OFFSET(TASK_CANARY, task_struct, stack_canary); | ^~~~~~ include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'stack' 140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b) | ^~~~~~~~~~~~~~~~~~ -- include/asm-generic/preempt.h:11:40: error: invalid type argument of '->' (have 'int') 11 | return READ_ONCE(current_thread_info()->preempt_count); | ^~ include/linux/compiler_types.h:308:9: note: in definition of macro '__compiletime_assert' 308 | if (!(condition)) \ | ^~~~~~~~~ include/linux/compiler_types.h:328:2: note: in expansion of macro '_compiletime_assert' 328 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^~~~~~~~~~~~~~~~~~~ include/asm-generic/rwonce.h:36:2: note: in expansion of macro 'compiletime_assert' 36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \ | ^~~~~~~~~~~~~~~~~~ include/asm-generic/rwonce.h:36:21: note: in expansion of macro '__native_word' 36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \ | ^~~~~~~~~~~~~ include/asm-generic/rwonce.h:49:2: note: in expansion of macro 'compiletime_assert_rwonce_type' 49 | compiletime_assert_rwonce_type(x); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/asm-generic/preempt.h:11:9: note: in expansion of macro 'READ_ONCE' 11 | return READ_ONCE(current_thread_info()->preempt_count); | ^~~~~~~~~ include/asm-generic/preempt.h:11:40: error: invalid type argument of '->' (have 'int') 11 | return READ_ONCE(current_thread_info()->preempt_count); | ^~ include/linux/compiler_types.h:308:9: note: in definition of macro '__compiletime_assert' 308 | if (!(condition)) \ | ^~~~~~~~~ include/linux/compiler_types.h:328:2: note: in expansion of macro '_compiletime_assert' 328 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^~~~~~~~~~~~~~~~~~~ include/asm-generic/rwonce.h:36:2: note: in expansion of macro 'compiletime_assert' 36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \ | ^~~~~~~~~~~~~~~~~~ include/asm-generic/rwonce.h:49:2: note: in expansion of macro 'compiletime_assert_rwonce_type' 49 | compiletime_assert_rwonce_type(x); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/asm-generic/preempt.h:11:9: note: in expansion of macro 'READ_ONCE' 11 | return READ_ONCE(current_thread_info()->preempt_count); | ^~~~~~~~~ include/asm-generic/preempt.h:11:40: error: invalid type argument of '->' (have 'int') 11 | return READ_ONCE(current_thread_info()->preempt_count); | ^~ include/linux/compiler_types.h:279:13: note: in definition of macro '__unqual_scalar_typeof' 279 | _Generic((x), \ | ^ include/asm-generic/rwonce.h:50:2: note: in expansion of macro '__READ_ONCE' 50 | __READ_ONCE(x); \ | ^~~~~~~~~~~ include/asm-generic/preempt.h:11:9: note: in expansion of macro 'READ_ONCE' 11 | return READ_ONCE(current_thread_info()->preempt_count); | ^~~~~~~~~ In file included from ./arch/powerpc/include/generated/asm/rwonce.h:1, from include/linux/compiler.h:248, from include/asm-generic/div64.h:27, from ./arch/powerpc/include/generated/asm/div64.h:1, from include/linux/math64.h:7, from include/linux/time.h:6, from include/linux/compat.h:10, from arch/powerpc/kernel/asm-offsets.c:14: include/asm-generic/preempt.h:11:40: error: invalid type argument of '->' (have 'int') 11 | return READ_ONCE(current_thread_info()->preempt_count); | ^~ include/asm-generic/rwonce.h:44:72: note: in definition of macro '__READ_ONCE' 44 | #define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x)) | ^ include/asm-generic/preempt.h:11:9: note: in expansion of macro 'READ_ONCE' 11 | return READ_ONCE(current_thread_info()->preempt_count); | ^~~~~~~~~ In file included from ./arch/powerpc/include/generated/asm/preempt.h:1, from include/linux/preempt.h:80, from include/linux/spinlock.h:53, from include/linux/wait.h:12, from include/linux/wait_bit.h:8, from include/linux/fs.h:8, from include/linux/compat.h:17, from arch/powerpc/kernel/asm-offsets.c:14: include/asm-generic/preempt.h: In function 'preempt_count_ptr': include/asm-generic/preempt.h:16:31: error: invalid type argument of '->' (have 'int') 16 | return ¤t_thread_info()->preempt_count; | ^~ include/asm-generic/preempt.h: In function '__preempt_count_dec_and_test': include/asm-generic/preempt.h:69:36: error: implicit declaration of function 'tif_need_resched' [-Werror=implicit-function-declaration] 69 | return !--*preempt_count_ptr() && tif_need_resched(); | ^~~~~~~~~~~~~~~~ In file included from arch/powerpc/include/asm/book3s/64/pgtable.h:296, from arch/powerpc/include/asm/book3s/64/mmu-hash.h:20, from arch/powerpc/include/asm/book3s/64/mmu.h:31, from arch/powerpc/include/asm/mmu.h:402, from arch/powerpc/include/asm/lppaca.h:46, from arch/powerpc/include/asm/paca.h:17, from arch/powerpc/include/asm/hw_irq.h:103, from arch/powerpc/include/asm/irqflags.h:12, from include/linux/irqflags.h:16, from include/linux/spinlock.h:56, from include/linux/wait.h:12, from include/linux/wait_bit.h:8, from include/linux/fs.h:8, from include/linux/compat.h:17, from arch/powerpc/kernel/asm-offsets.c:14: arch/powerpc/include/asm/book3s/64/hash.h: At top level: >> arch/powerpc/include/asm/book3s/64/hash.h:248:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'hash__vmemmap_create_mapping' 248 | extern int __meminit hash__vmemmap_create_mapping(unsigned long start, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from arch/powerpc/include/asm/book3s/64/pgtable.h:297, from arch/powerpc/include/asm/book3s/64/mmu-hash.h:20, from arch/powerpc/include/asm/book3s/64/mmu.h:31, from arch/powerpc/include/asm/mmu.h:402, from arch/powerpc/include/asm/lppaca.h:46, from arch/powerpc/include/asm/paca.h:17, from arch/powerpc/include/asm/hw_irq.h:103, from arch/powerpc/include/asm/irqflags.h:12, from include/linux/irqflags.h:16, from include/linux/spinlock.h:56, from include/linux/wait.h:12, from include/linux/wait_bit.h:8, from include/linux/fs.h:8, from include/linux/compat.h:17, from arch/powerpc/kernel/asm-offsets.c:14: >> arch/powerpc/include/asm/book3s/64/radix.h:289:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'radix__vmemmap_create_mapping' 289 | extern int __meminit radix__vmemmap_create_mapping(unsigned long start, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from arch/powerpc/include/asm/book3s/64/mmu-hash.h:20, from arch/powerpc/include/asm/book3s/64/mmu.h:31, from arch/powerpc/include/asm/mmu.h:402, from arch/powerpc/include/asm/lppaca.h:46, from arch/powerpc/include/asm/paca.h:17, from arch/powerpc/include/asm/hw_irq.h:103, from arch/powerpc/include/asm/irqflags.h:12, from include/linux/irqflags.h:16, from include/linux/spinlock.h:56, from include/linux/wait.h:12, from include/linux/wait_bit.h:8, from include/linux/fs.h:8, from include/linux/compat.h:17, from arch/powerpc/kernel/asm-offsets.c:14: >> arch/powerpc/include/asm/book3s/64/pgtable.h:1075:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmemmap_create_mapping' 1075 | static inline int __meminit vmemmap_create_mapping(unsigned long start, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from arch/powerpc/include/asm/mmu.h:402, from arch/powerpc/include/asm/lppaca.h:46, from arch/powerpc/include/asm/paca.h:17, from arch/powerpc/include/asm/hw_irq.h:103, from arch/powerpc/include/asm/irqflags.h:12, from include/linux/irqflags.h:16, from include/linux/spinlock.h:56, from include/linux/wait.h:12, from include/linux/wait_bit.h:8, from include/linux/fs.h:8, from include/linux/compat.h:17, from arch/powerpc/kernel/asm-offsets.c:14: >> arch/powerpc/include/asm/book3s/64/mmu.h:210:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'early_init_mmu' 210 | static inline void __init early_init_mmu(void) | ^~~~~~~~~~~~~~ In file included from include/linux/rculist.h:11, from include/linux/dcache.h:8, from include/linux/fs.h:10, from include/linux/compat.h:17, from arch/powerpc/kernel/asm-offsets.c:14: include/linux/rcuwait.h: In function 'rcuwait_active': include/linux/rcupdate.h:364:9: error: dereferencing pointer to incomplete type 'struct task_struct' 364 | typeof(*p) *_________p1 = (typeof(*p) *__force)READ_ONCE(p); \ | ^ include/linux/rcupdate.h:474:31: note: in expansion of macro '__rcu_access_pointer' 474 | #define rcu_access_pointer(p) __rcu_access_pointer((p), __rcu) | ^~~~~~~~~~~~~~~~~~~~ include/linux/rcuwait.h:33:11: note: in expansion of macro 'rcu_access_pointer' 33 | return !!rcu_access_pointer(w->task); | ^~~~~~~~~~~~~~~~~~ In file included from arch/powerpc/include/asm/kup.h:18, from arch/powerpc/include/asm/uaccess.h:9, from include/linux/uaccess.h:11, from include/linux/compat.h:19, from arch/powerpc/kernel/asm-offsets.c:14: arch/powerpc/include/asm/book3s/64/kup.h: In function 'current_thread_amr': arch/powerpc/include/asm/book3s/64/kup.h:217:6: error: implicit declaration of function 'task_thread'; did you mean 'start_thread'? [-Werror=implicit-function-declaration] 217 | if (task_thread(current).regs) | ^~~~~~~~~~~ | start_thread arch/powerpc/include/asm/book3s/64/kup.h:217:26: error: request for member 'regs' in something not a structure or union 217 | if (task_thread(current).regs) | ^ arch/powerpc/include/asm/book3s/64/kup.h:218:30: error: request for member 'regs' in something not a structure or union 218 | return task_thread(current).regs->amr; | ^ arch/powerpc/include/asm/book3s/64/kup.h: In function 'current_thread_iamr': arch/powerpc/include/asm/book3s/64/kup.h:224:26: error: request for member 'regs' in something not a structure or union 224 | if (task_thread(current).regs) | ^ arch/powerpc/include/asm/book3s/64/kup.h:225:30: error: request for member 'regs' in something not a structure or union 225 | return task_thread(current).regs->iamr; | ^ In file included from include/linux/compat.h:22, from arch/powerpc/kernel/asm-offsets.c:14: arch/powerpc/include/asm/compat.h: In function 'arch_compat_alloc_user_space': arch/powerpc/include/asm/compat.h:99:45: error: request for member 'regs' in something not a structure or union 99 | struct pt_regs *regs = task_thread(current).regs; | ^ In file included from include/linux/thread_info.h:50, from include/linux/uio.h:10, from include/linux/socket.h:8, from include/linux/compat.h:15, from arch/powerpc/kernel/asm-offsets.c:14: arch/powerpc/include/asm/thread_info.h:167:26: error: implicit declaration of function 'test_thread_flag'; did you mean 'test_thread_local_flags'? [-Werror=implicit-function-declaration] 167 | #define is_32bit_task() (test_thread_flag(TIF_32BIT)) | ^~~~~~~~~~~~~~~~ arch/powerpc/include/asm/compat.h:107:7: note: in expansion of macro 'is_32bit_task' 107 | if (!is_32bit_task()) | ^~~~~~~~~~~~~ In file included from arch/powerpc/include/asm/kvm_ppc.h:19, from arch/powerpc/include/asm/dbell.h:17, from arch/powerpc/kernel/asm-offsets.c:38: include/linux/kvm_host.h: In function 'kvm_vcpu_can_poll': include/linux/kvm_host.h:271:35: error: implicit declaration of function 'need_resched'; did you mean 'should_resched'? [-Werror=implicit-function-declaration] 271 | return single_task_running() && !need_resched() && ktime_before(cur, stop); | ^~~~~~~~~~~~ | should_resched In file included from arch/powerpc/kernel/asm-offsets.c:29: arch/powerpc/kernel/asm-offsets.c: In function 'main': include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread' 140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b) | ^~~~~~~~~~~~~~~~~~ include/linux/kbuild.h:6:62: note: in definition of macro 'DEFINE' 6 | asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val)) | ^~~ include/linux/stddef.h:17:32: note: in expansion of macro '__compiler_offsetof' 17 | #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER) | ^~~~~~~~~~~~~~~~~~~ include/linux/kbuild.h:11:14: note: in expansion of macro 'offsetof' 11 | DEFINE(sym, offsetof(struct str, mem)) | ^~~~~~~~ arch/powerpc/kernel/asm-offsets.c:81:2: note: in expansion of macro 'OFFSET' 81 | OFFSET(THREAD, task_struct, thread); | ^~~~~~ include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'stack_canary' 140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b) | ^~~~~~~~~~~~~~~~~~ include/linux/kbuild.h:6:62: note: in definition of macro 'DEFINE' 6 | asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val)) | ^~~ include/linux/stddef.h:17:32: note: in expansion of macro '__compiler_offsetof' 17 | #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER) | ^~~~~~~~~~~~~~~~~~~ include/linux/kbuild.h:11:14: note: in expansion of macro 'offsetof' 11 | DEFINE(sym, offsetof(struct str, mem)) | ^~~~~~~~ arch/powerpc/kernel/asm-offsets.c:84:2: note: in expansion of macro 'OFFSET' 84 | OFFSET(TASK_CANARY, task_struct, stack_canary); | ^~~~~~ include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'stack' 140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b) | ^~~~~~~~~~~~~~~~~~ .. vim +248 arch/powerpc/include/asm/book3s/64/hash.h c605782b1c3f1c1 arch/powerpc/include/asm/pte-hash64.h Benjamin Herrenschmidt 2009-03-10 245 31a14fae92b29b7 arch/powerpc/include/asm/book3s/64/hash.h Aneesh Kumar K.V 2016-04-29 246 c766ee72235d09b arch/powerpc/include/asm/book3s/64/hash.h Christophe Leroy 2018-10-09 247 int hash__map_kernel_page(unsigned long ea, unsigned long pa, pgprot_t prot); 31a14fae92b29b7 arch/powerpc/include/asm/book3s/64/hash.h Aneesh Kumar K.V 2016-04-29 @248 extern int __meminit hash__vmemmap_create_mapping(unsigned long start, 31a14fae92b29b7 arch/powerpc/include/asm/book3s/64/hash.h Aneesh Kumar K.V 2016-04-29 249 unsigned long page_size, 31a14fae92b29b7 arch/powerpc/include/asm/book3s/64/hash.h Aneesh Kumar K.V 2016-04-29 250 unsigned long phys); 31a14fae92b29b7 arch/powerpc/include/asm/book3s/64/hash.h Aneesh Kumar K.V 2016-04-29 251 extern void hash__vmemmap_remove_mapping(unsigned long start, 31a14fae92b29b7 arch/powerpc/include/asm/book3s/64/hash.h Aneesh Kumar K.V 2016-04-29 252 unsigned long page_size); 32b53c012e0bfe2 arch/powerpc/include/asm/book3s/64/hash.h Reza Arbab 2017-01-03 253 :::::: The code at line 248 was first introduced by commit :::::: 31a14fae92b29b7a7fcc65600f072bf448d3b0eb powerpc/mm: Abstraction for vmemmap and map_kernel_page() :::::: TO: Aneesh Kumar K.V :::::: CC: Michael Ellerman --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org