* arch/alpha/include/asm/mmu_context.h:160:2: error: implicit declaration of function 'task_thread_info'
@ 2017-09-17 1:50 kbuild test robot
2017-09-19 21:38 ` Felix Kuehling
0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2017-09-17 1:50 UTC (permalink / raw)
To: Felix Kuehling; +Cc: kbuild-all, linux-kernel, Oded Gabbay
[-- Attachment #1: Type: text/plain, Size: 3209 bytes --]
Hi Felix,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e
commit: 70539bd79500245cbb4c7af00572fcce540d0105 drm/amd: Update MEC HQD loading code for KFD
date: 5 weeks ago
config: alpha-allmodconfig (attached as .config)
compiler: alpha-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 70539bd79500245cbb4c7af00572fcce540d0105
# save the attached .config to linux build tree
make.cross ARCH=alpha
All errors (new ones prefixed by >>):
In file included from include/linux/mmu_context.h:4:0,
from drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h:29,
from drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c:23:
arch/alpha/include/asm/mmu_context.h: In function 'ev5_switch_mm':
>> arch/alpha/include/asm/mmu_context.h:160:2: error: implicit declaration of function 'task_thread_info' [-Werror=implicit-function-declaration]
task_thread_info(next)->pcb.asn = mmc & HARDWARE_ASN_MASK;
^~~~~~~~~~~~~~~~
>> arch/alpha/include/asm/mmu_context.h:160:24: error: invalid type argument of '->' (have 'int')
task_thread_info(next)->pcb.asn = mmc & HARDWARE_ASN_MASK;
^~
arch/alpha/include/asm/mmu_context.h: In function 'init_new_context':
arch/alpha/include/asm/mmu_context.h:238:24: error: invalid type argument of '->' (have 'int')
task_thread_info(tsk)->pcb.ptbr
^~
arch/alpha/include/asm/mmu_context.h: In function 'enter_lazy_tlb':
arch/alpha/include/asm/mmu_context.h:252:23: error: invalid type argument of '->' (have 'int')
task_thread_info(tsk)->pcb.ptbr
^~
cc1: some warnings being treated as errors
vim +/task_thread_info +160 arch/alpha/include/asm/mmu_context.h
^1da177e4 include/asm-alpha/mmu_context.h Linus Torvalds 2005-04-16 156
^1da177e4 include/asm-alpha/mmu_context.h Linus Torvalds 2005-04-16 157 /* Always update the PCB ASN. Another thread may have allocated
^1da177e4 include/asm-alpha/mmu_context.h Linus Torvalds 2005-04-16 158 a new mm->context (via flush_tlb_mm) without the ASN serial
^1da177e4 include/asm-alpha/mmu_context.h Linus Torvalds 2005-04-16 159 number wrapping. We have no way to detect when this is needed. */
37bfbaf99 include/asm-alpha/mmu_context.h Al Viro 2006-01-12 @160 task_thread_info(next)->pcb.asn = mmc & HARDWARE_ASN_MASK;
^1da177e4 include/asm-alpha/mmu_context.h Linus Torvalds 2005-04-16 161 }
^1da177e4 include/asm-alpha/mmu_context.h Linus Torvalds 2005-04-16 162
:::::: The code at line 160 was first introduced by commit
:::::: 37bfbaf995d2c1f8196ee04c9d6f68258d5ec3e8 [PATCH] alpha: task_thread_info()
:::::: TO: Al Viro <viro@ftp.linux.org.uk>
:::::: CC: Linus Torvalds <torvalds@g5.osdl.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 50388 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: arch/alpha/include/asm/mmu_context.h:160:2: error: implicit declaration of function 'task_thread_info'
2017-09-17 1:50 arch/alpha/include/asm/mmu_context.h:160:2: error: implicit declaration of function 'task_thread_info' kbuild test robot
@ 2017-09-19 21:38 ` Felix Kuehling
0 siblings, 0 replies; 2+ messages in thread
From: Felix Kuehling @ 2017-09-19 21:38 UTC (permalink / raw)
To: Oded Gabbay; +Cc: linux-kernel
Looks like we need to include sched.h before mmu_context.h to make the
Alpha build happy.
Regards,
Felix
On 2017-09-16 09:50 PM, kbuild test robot wrote:
> Hi Felix,
>
> FYI, the error/warning still remains.
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: 2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e
> commit: 70539bd79500245cbb4c7af00572fcce540d0105 drm/amd: Update MEC HQD loading code for KFD
> date: 5 weeks ago
> config: alpha-allmodconfig (attached as .config)
> compiler: alpha-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
> reproduce:
> wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
> chmod +x ~/bin/make.cross
> git checkout 70539bd79500245cbb4c7af00572fcce540d0105
> # save the attached .config to linux build tree
> make.cross ARCH=alpha
>
> All errors (new ones prefixed by >>):
>
> In file included from include/linux/mmu_context.h:4:0,
> from drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h:29,
> from drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c:23:
> arch/alpha/include/asm/mmu_context.h: In function 'ev5_switch_mm':
>>> arch/alpha/include/asm/mmu_context.h:160:2: error: implicit declaration of function 'task_thread_info' [-Werror=implicit-function-declaration]
> task_thread_info(next)->pcb.asn = mmc & HARDWARE_ASN_MASK;
> ^~~~~~~~~~~~~~~~
>>> arch/alpha/include/asm/mmu_context.h:160:24: error: invalid type argument of '->' (have 'int')
> task_thread_info(next)->pcb.asn = mmc & HARDWARE_ASN_MASK;
> ^~
> arch/alpha/include/asm/mmu_context.h: In function 'init_new_context':
> arch/alpha/include/asm/mmu_context.h:238:24: error: invalid type argument of '->' (have 'int')
> task_thread_info(tsk)->pcb.ptbr
> ^~
> arch/alpha/include/asm/mmu_context.h: In function 'enter_lazy_tlb':
> arch/alpha/include/asm/mmu_context.h:252:23: error: invalid type argument of '->' (have 'int')
> task_thread_info(tsk)->pcb.ptbr
> ^~
> cc1: some warnings being treated as errors
>
> vim +/task_thread_info +160 arch/alpha/include/asm/mmu_context.h
>
> ^1da177e4 include/asm-alpha/mmu_context.h Linus Torvalds 2005-04-16 156
> ^1da177e4 include/asm-alpha/mmu_context.h Linus Torvalds 2005-04-16 157 /* Always update the PCB ASN. Another thread may have allocated
> ^1da177e4 include/asm-alpha/mmu_context.h Linus Torvalds 2005-04-16 158 a new mm->context (via flush_tlb_mm) without the ASN serial
> ^1da177e4 include/asm-alpha/mmu_context.h Linus Torvalds 2005-04-16 159 number wrapping. We have no way to detect when this is needed. */
> 37bfbaf99 include/asm-alpha/mmu_context.h Al Viro 2006-01-12 @160 task_thread_info(next)->pcb.asn = mmc & HARDWARE_ASN_MASK;
> ^1da177e4 include/asm-alpha/mmu_context.h Linus Torvalds 2005-04-16 161 }
> ^1da177e4 include/asm-alpha/mmu_context.h Linus Torvalds 2005-04-16 162
>
> :::::: The code at line 160 was first introduced by commit
> :::::: 37bfbaf995d2c1f8196ee04c9d6f68258d5ec3e8 [PATCH] alpha: task_thread_info()
>
> :::::: TO: Al Viro <viro@ftp.linux.org.uk>
> :::::: CC: Linus Torvalds <torvalds@g5.osdl.org>
>
> ---
> 0-DAY kernel test infrastructure Open Source Technology Center
> https://lists.01.org/pipermail/kbuild-all Intel Corporation
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-09-19 21:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-17 1:50 arch/alpha/include/asm/mmu_context.h:160:2: error: implicit declaration of function 'task_thread_info' kbuild test robot
2017-09-19 21:38 ` Felix Kuehling
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®