[Intel-gfx] [drm-tip:drm-tip 15/1373] arch/frv/include/asm/pgalloc.h:48:2: error: implicit declaration of function 'pgtable_page_dtor'; did you mean 'pgdat_page_nr'?
Oded Gabbay
oded.gabbay at gmail.com
Thu Mar 15 08:06:27 UTC 2018
Hi,
There is a missing #include <linux/mm.h> at amdgpu_amdkfd.h
I'll send a patch to Dave to apply to his drm-next tree to fix this.
Thanks for catching this,
Oded
On Thu, Mar 15, 2018 at 4:50 AM, kbuild test robot
<fengguang.wu at intel.com> wrote:
> tree: git://anongit.freedesktop.org/drm/drm-tip drm-tip
> head: 178cfb9373cc2bdfcb6ca73e03369d2c37cc4b58
> commit: d8d019ccffb838bb0dd98e583b5c25ccc0bc6ece [15/1373] drm/amdgpu: Add KFD eviction fence
> config: frv-allyesconfig (attached as .config)
> compiler: frv-linux-gcc (GCC) 7.2.0
> reproduce:
> wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
> chmod +x ~/bin/make.cross
> git checkout d8d019ccffb838bb0dd98e583b5c25ccc0bc6ece
> # save the attached .config to linux build tree
> make.cross ARCH=frv
>
> All errors (new ones prefixed by >>):
>
> In file included from arch/frv/include/asm/mmu_context.h:17:0,
> from include/linux/mmu_context.h:5,
> from drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd.h:29,
> from drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd_fence.c:30:
> arch/frv/include/asm/pgalloc.h: In function 'pte_free':
>>> arch/frv/include/asm/pgalloc.h:48:2: error: implicit declaration of function 'pgtable_page_dtor'; did you mean 'pgdat_page_nr'? [-Werror=implicit-function-declaration]
> pgtable_page_dtor(pte);
> ^~~~~~~~~~~~~~~~~
> pgdat_page_nr
> cc1: some warnings being treated as errors
>
> vim +48 arch/frv/include/asm/pgalloc.h
>
> ^1da177e include/asm-frv/pgalloc.h Linus Torvalds 2005-04-16 45
> 2f569afd include/asm-frv/pgalloc.h Martin Schwidefsky 2008-02-08 46 static inline void pte_free(struct mm_struct *mm, pgtable_t pte)
> ^1da177e include/asm-frv/pgalloc.h Linus Torvalds 2005-04-16 47 {
> 2f569afd include/asm-frv/pgalloc.h Martin Schwidefsky 2008-02-08 @48 pgtable_page_dtor(pte);
> ^1da177e include/asm-frv/pgalloc.h Linus Torvalds 2005-04-16 49 __free_page(pte);
> ^1da177e include/asm-frv/pgalloc.h Linus Torvalds 2005-04-16 50 }
> ^1da177e include/asm-frv/pgalloc.h Linus Torvalds 2005-04-16 51
>
> :::::: The code at line 48 was first introduced by commit
> :::::: 2f569afd9ced9ebec9a6eb3dbf6f83429be0a7b4 CONFIG_HIGHPTE vs. sub-page page tables.
>
> :::::: TO: Martin Schwidefsky <schwidefsky at de.ibm.com>
> :::::: CC: Linus Torvalds <torvalds at woody.linux-foundation.org>
>
> ---
> 0-DAY kernel test infrastructure Open Source Technology Center
> https://lists.01.org/pipermail/kbuild-all Intel Corporation
More information about the Intel-gfx
mailing list