From: address@hidden
[mailto:address@hidden On Behalf Of Amit
Hergass
Sent: Wednesday, June 16, 2010 3:30 PM
To: address@hidden
Subject: [Ltib] ARM lpc32xx build fails for linux-2.6.34
Hi,
I am currently upgrading the kernel from LTIB Linux 2.6.27.8 to 2.6.34.
I applied all the patches for the lpc32xx, and tried to build.
The build failed with missing __pfn_to_bus and __bus_to_pfn.
A search through the sources showed that "__arch_page_to_dma"
definition is not available for the lpc32xx processors.
Is there a patch that provides the above? Is anyone know of a solution for it?
I
am quite new to the Linux kernel and will appreciate any information that will
help solving this issue.
Thanks
Amit
Build output:
CHK include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CC arch/arm/kernel/asm-offsets.s
In file included from include/linux/dma-mapping.h:103,
from arch/arm/kernel/asm-offsets.c:15:
/home/hergass/dev/linux-2.6.34/arch/arm/include/asm/dma-mapping.h: In function
'page_to_dma':
/home/hergass/dev/linux-2.6.34/arch/arm/include/asm/dma-mapping.h:20: error:
implicit declaration of function '__pfn_to_bus'
/home/hergass/dev/linux-2.6.34/arch/arm/include/asm/dma-mapping.h: In function
'dma_to_page':
/home/hergass/dev/linux-2.6.34/arch/arm/include/asm/dma-mapping.h:25: error:
implicit declaration of function '__bus_to_pfn'
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2