From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: Xen on ARM: upstream kernel compile fails with defconfig Date: Tue, 04 Feb 2014 23:35:35 +0000 Message-ID: <52F17947.3040606@linaro.org> References: <52F15B93.4000000@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <52F15B93.4000000@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Zoltan Kiss , xen-devel@lists.xen.org, Stefano Stabellini Cc: Ian Campbell List-Id: xen-devel@lists.xenproject.org (Add Ian Campbell for sunxi bits) Hello Zoltan, On 04/02/14 21:28, Zoltan Kiss wrote: = > However both cases the build fails quite early with the same error: > = > CC arch/arm/kernel/asm-offsets.s > In file included from /local/repo/linux-net-next/include/linux/cache.h:5:= 0, > from /local/repo/linux-net-next/include/linux/printk.h:= 8, > from = > /local/repo/linux-net-next/include/linux/kernel.h:13, > from /local/repo/linux-net-next/include/linux/sched.h:1= 5, > from = > /local/repo/linux-net-next/arch/arm/kernel/asm-offsets.c:13: > /local/repo/linux-net-next/include/linux/prefetch.h: In function = > =91prefetch_range=92: > /local/repo/linux-net-next/arch/arm/include/asm/cache.h:7:25: error: = > =91CONFIG_ARM_L1_CACHE_SHIFT=92 undeclared (first use in this function) > #define L1_CACHE_SHIFT CONFIG_ARM_L1_CACHE_SHIFT I can't get the same error with net-next + your V7. I have this following e= rror: drivers/xen/grant-table.c: In function =91__gnttab_unmap_refs=92: drivers/xen/grant-table.c:1047:3: error: implicit declaration of function = =91get_phys_to_machine=92 [-Werror=3Dimplicit-function-declaration] mfn =3D get_phys_to_machine(page_to_pfn(pages[i])); ^ I'm using this config for Linux: http://xenbits.xen.org/people/julieng/conf= ig-midway = > So far I figured out that autoconf.h is not included here, that CONFIG_ = > is defined there. But I'm not that familiar with the kernel build = > system, so I'm a bit stucked here. Probably I'm doing something = > trivially wrong, can someone help me? > Btw. on Julian's repo from the Arndale page I could compile, but that's = > too old for my patch to apply. My main goal is to compile an upstream = > kernel with Xen, and then check if my patch breaks it. The kernel repo for the Arndale is completely out-of-date on the wiki page. I will update the wiki page to use directly the Linaro tree. Sincerely yours, -- = Julien Grall