Re: [PATCH] mm, vmalloc: properly track vmalloc users
From: kbuild test robot
Date: Tue May 02 2017 - 20:53:29 EST
Hi Michal,
[auto build test ERROR on mmotm/master]
[also build test ERROR on next-20170502]
[cannot apply to v4.11]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Michal-Hocko/mm-vmalloc-properly-track-vmalloc-users/20170503-065022
base: git://git.cmpxchg.org/linux-mmotm.git master
config: m68k-m5475evb_defconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 4.9.0
reproduce:
wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=m68k
All error/warnings (new ones prefixed by >>):
In file included from arch/m68k/include/asm/pgtable_mm.h:145:0,
from arch/m68k/include/asm/pgtable.h:4,
from include/linux/vmalloc.h:9,
from arch/m68k/kernel/module.c:9:
arch/m68k/include/asm/mcf_pgtable.h: In function 'nocache_page':
>> arch/m68k/include/asm/mcf_pgtable.h:339:43: error: 'init_mm' undeclared (first use in this function)
#define pgd_offset_k(address) pgd_offset(&init_mm, address)
^
arch/m68k/include/asm/mcf_pgtable.h:334:35: note: in definition of macro 'pgd_offset'
#define pgd_offset(mm, address) ((mm)->pgd + pgd_index(address))
^
>> arch/m68k/include/asm/mcf_pgtable.h:366:8: note: in expansion of macro 'pgd_offset_k'
dir = pgd_offset_k(addr);
^
arch/m68k/include/asm/mcf_pgtable.h:339:43: note: each undeclared identifier is reported only once for each function it appears in
#define pgd_offset_k(address) pgd_offset(&init_mm, address)
^
arch/m68k/include/asm/mcf_pgtable.h:334:35: note: in definition of macro 'pgd_offset'
#define pgd_offset(mm, address) ((mm)->pgd + pgd_index(address))
^
>> arch/m68k/include/asm/mcf_pgtable.h:366:8: note: in expansion of macro 'pgd_offset_k'
dir = pgd_offset_k(addr);
^
arch/m68k/include/asm/mcf_pgtable.h: In function 'cache_page':
>> arch/m68k/include/asm/mcf_pgtable.h:339:43: error: 'init_mm' undeclared (first use in this function)
#define pgd_offset_k(address) pgd_offset(&init_mm, address)
^
arch/m68k/include/asm/mcf_pgtable.h:334:35: note: in definition of macro 'pgd_offset'
#define pgd_offset(mm, address) ((mm)->pgd + pgd_index(address))
^
arch/m68k/include/asm/mcf_pgtable.h:382:8: note: in expansion of macro 'pgd_offset_k'
dir = pgd_offset_k(addr);
^
vim +/init_mm +339 arch/m68k/include/asm/mcf_pgtable.h
91521c2e Greg Ungerer 2011-10-14 333 #define pgd_index(address) ((address) >> PGDIR_SHIFT)
91521c2e Greg Ungerer 2011-10-14 334 #define pgd_offset(mm, address) ((mm)->pgd + pgd_index(address))
91521c2e Greg Ungerer 2011-10-14 335
91521c2e Greg Ungerer 2011-10-14 336 /*
91521c2e Greg Ungerer 2011-10-14 337 * Find an entry in a kernel pagetable directory.
91521c2e Greg Ungerer 2011-10-14 338 */
91521c2e Greg Ungerer 2011-10-14 @339 #define pgd_offset_k(address) pgd_offset(&init_mm, address)
91521c2e Greg Ungerer 2011-10-14 340
91521c2e Greg Ungerer 2011-10-14 341 /*
91521c2e Greg Ungerer 2011-10-14 342 * Find an entry in the second-level pagetable.
91521c2e Greg Ungerer 2011-10-14 343 */
91521c2e Greg Ungerer 2011-10-14 344 static inline pmd_t *pmd_offset(pgd_t *pgd, unsigned long address)
91521c2e Greg Ungerer 2011-10-14 345 {
91521c2e Greg Ungerer 2011-10-14 346 return (pmd_t *) pgd;
91521c2e Greg Ungerer 2011-10-14 347 }
91521c2e Greg Ungerer 2011-10-14 348
91521c2e Greg Ungerer 2011-10-14 349 /*
91521c2e Greg Ungerer 2011-10-14 350 * Find an entry in the third-level pagetable.
91521c2e Greg Ungerer 2011-10-14 351 */
91521c2e Greg Ungerer 2011-10-14 352 #define __pte_offset(address) ((address >> PAGE_SHIFT) & (PTRS_PER_PTE - 1))
91521c2e Greg Ungerer 2011-10-14 353 #define pte_offset_kernel(dir, address) \
91521c2e Greg Ungerer 2011-10-14 354 ((pte_t *) __pmd_page(*(dir)) + __pte_offset(address))
91521c2e Greg Ungerer 2011-10-14 355
91521c2e Greg Ungerer 2011-10-14 356 /*
91521c2e Greg Ungerer 2011-10-14 357 * Disable caching for page at given kernel virtual address.
91521c2e Greg Ungerer 2011-10-14 358 */
91521c2e Greg Ungerer 2011-10-14 359 static inline void nocache_page(void *vaddr)
91521c2e Greg Ungerer 2011-10-14 360 {
91521c2e Greg Ungerer 2011-10-14 361 pgd_t *dir;
91521c2e Greg Ungerer 2011-10-14 362 pmd_t *pmdp;
91521c2e Greg Ungerer 2011-10-14 363 pte_t *ptep;
91521c2e Greg Ungerer 2011-10-14 364 unsigned long addr = (unsigned long) vaddr;
91521c2e Greg Ungerer 2011-10-14 365
91521c2e Greg Ungerer 2011-10-14 @366 dir = pgd_offset_k(addr);
91521c2e Greg Ungerer 2011-10-14 367 pmdp = pmd_offset(dir, addr);
91521c2e Greg Ungerer 2011-10-14 368 ptep = pte_offset_kernel(pmdp, addr);
91521c2e Greg Ungerer 2011-10-14 369 *ptep = pte_mknocache(*ptep);
:::::: The code at line 339 was first introduced by commit
:::::: 91521c2ea6e3d5a790df40988101ad099ddbf7c8 m68k: page table support definitions and code for ColdFire MMU
:::::: TO: Greg Ungerer <gerg@xxxxxxxxxxx>
:::::: CC: Greg Ungerer <gerg@xxxxxxxxxxx>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip