Re: [PATCH v3 07/23] powerpc/8xx: Fix vaddr for IMMR early remap

From: kbuild test robot
Date: Tue Nov 17 2015 - 11:42:34 EST


Hi Christophe,

[auto build test WARNING on powerpc/next]
[also build test WARNING on v4.4-rc1 next-20151117]

url: https://github.com/0day-ci/linux/commits/Christophe-Leroy/powerpc-8xx-Use-large-pages-for-RAM-and-IMMR-and-other-improvments/20151117-221800
base: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next
config: powerpc-tqm8548_defconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=powerpc

All warnings (new ones prefixed by >>):

In file included from arch/powerpc/kernel/asm-offsets.c:68:0:
>> arch/powerpc/kernel/../mm/mmu_decl.h:111:5: warning: "CONFIG_PPC_8xx" is not defined [-Wundef]
#if CONFIG_PPC_8xx
^
--
In file included from arch/powerpc/kernel/asm-offsets.c:68:0:
>> arch/powerpc/kernel/../mm/mmu_decl.h:111:5: warning: "CONFIG_PPC_8xx" is not defined [-Wundef]
#if CONFIG_PPC_8xx
^
<stdin>:1304:2: warning: #warning syscall mlock2 not implemented [-Wcpp]

vim +/CONFIG_PPC_8xx +111 arch/powerpc/kernel/../mm/mmu_decl.h

95
96 extern void mapin_ram(void);
97 extern int map_page(unsigned long va, phys_addr_t pa, int flags);
98 extern void setbat(int index, unsigned long virt, phys_addr_t phys,
99 unsigned int size, pgprot_t prot);
100
101 extern int __map_without_bats;
102 extern int __allow_ioremap_reserved;
103 extern unsigned long ioremap_base;
104 extern unsigned int rtas_data, rtas_size;
105
106 struct hash_pte;
107 extern struct hash_pte *Hash, *Hash_end;
108 extern unsigned long Hash_size, Hash_mask;
109
110 #define PHYS_IMMR_BASE (mfspr(SPRN_IMMR) & 0xfff80000)
> 111 #if CONFIG_PPC_8xx
112 #define VIRT_IMMR_BASE (__fix_to_virt(FIX_IMMR_BASE))
113 #else
114 #define VIRT_IMMR_BASE PHYS_IMMR_BASE
115 #endif
116
117 #endif /* CONFIG_PPC32 */
118
119 #ifdef CONFIG_PPC64

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: Binary data