android_kernel_xiaomi_sm8350/arch/arm
Rod Whitby 313cbb5519 [ARM] 3218/1: PAGE_SHIFT undeclared in arch-ixp4xx/memory.h (adjust_zones moved out of line)
Patch from Rod Whitby

PAGE_SHIFT is undeclared in include/asm-arm/arch-ixp4xx/memory.h, identified by the following kernel compilation error:

CC [M] sound/core/memory.o
In file included from include/asm/memory.h:27,
from include/asm/io.h:28,
from sound/core/memory.c:24:
include/asm/arch/memory.h: In function `__arch_adjust_zones':
include/asm/arch/memory.h:28: error: `PAGE_SHIFT' undeclared (first use
in this function)

This patch replaces my previous attempt at fixing this problem (Patch 3214/1) and is based on the following feedback:

Russell King wrote:
> The error you see came up on SA1100.  The best solution was to move
> the __arch_adjust_zones() function out of line.  I suggest ixp4xx
> does the same.

I have moved the function out of line into arch/arm/mach-ixp4xx/common-pci.c as suggested.

Signed-off-by: Rod Whitby <rod@whitby.id.au>
Signed-off-by: Deepak Saxena <dsaxena@plexity.net>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2006-01-04 17:17:13 +00:00
..
boot [ARM] Make kernel link address depend on PAGE_OFFSET 2006-01-03 17:28:33 +00:00
common [ARM] sa1111.c needs asm/sizes.h 2005-11-16 18:29:51 +00:00
configs [ARM] 3188/1: Add missing i2c dependency for Akita 2005-12-01 15:52:47 +00:00
kernel [ARM] Move DMA exports to be next to each function 2006-01-04 15:52:45 +00:00
lib [ARM] Fix get_user when passed a const pointer 2005-11-18 14:22:03 +00:00
mach-aaec2000 [ARM] Remove clk_use()/clk_unuse() 2006-01-03 18:41:37 +00:00
mach-clps711x [ARM] Remove unused dma.c files 2006-01-04 14:06:31 +00:00
mach-clps7500 [ARM] Shut up gcc warning in clps7500 core.c 2005-11-21 17:03:15 +00:00
mach-ebsa110 [ARM] Convert EBSA110 network driver to a platform driver 2005-10-31 17:14:57 +00:00
mach-epxa10db [ARM] Remove unused dma.c files 2006-01-04 14:06:31 +00:00
mach-footbridge [ARM] Cleanup ARM includes 2006-01-03 17:39:34 +00:00
mach-h720x Create platform_device.h to contain all the platform device details. 2005-10-29 19:07:23 +01:00
mach-imx Merge master.kernel.org:/home/rmk/linux-2.6-drvmodel 2005-10-31 07:32:56 -08:00
mach-integrator [ARM] Remove unused dma.c files 2006-01-04 14:06:31 +00:00
mach-iop3xx Merge master.kernel.org:/home/rmk/linux-2.6-drvmodel 2005-10-31 07:32:56 -08:00
mach-ixp4xx [ARM] 3218/1: PAGE_SHIFT undeclared in arch-ixp4xx/memory.h (adjust_zones moved out of line) 2006-01-04 17:17:13 +00:00
mach-ixp2000 [ARM] 3121/1: unconditionally use XCB=101 on ixp2000 2005-11-07 21:12:09 +00:00
mach-l7200 [ARM] 2980/1: Fix L7200 core.c compile 2005-10-14 12:49:15 +01:00
mach-lh7a40x Create platform_device.h to contain all the platform device details. 2005-10-29 19:07:23 +01:00
mach-omap1 [ARM] 3141/1: OMAP 1/5: Update omap1 specific files 2005-11-10 14:26:48 +00:00
mach-omap2 [ARM] 3146/1: OMAP 3b/5: Add omap24xx clock framework 2005-11-10 14:26:52 +00:00
mach-pxa [ARM] 3201/1: PXA27x: Prevent hangup during resume due to inadvertedly enabling MBREQ (replaces: 3198/1) 2005-12-12 16:44:05 +00:00
mach-realview [ARM] Remove clk_use()/clk_unuse() 2006-01-03 18:41:37 +00:00
mach-rpc [ARM] Remove '__address' from scatterlist and convert to DMA API 2006-01-04 15:08:30 +00:00
mach-s3c2410 [ARM] Remove clk_use()/clk_unuse() 2006-01-03 18:41:37 +00:00
mach-sa1100 [ARM] Remove SA1100 PM prepare/finish ops 2006-01-04 15:55:41 +00:00
mach-shark [ARM] 2991/1: Replace map_desc.physical with map_desc.pfn: Shark 2005-10-28 15:19:03 +01:00
mach-versatile [ARM] Remove clk_use()/clk_unuse() 2006-01-03 18:41:37 +00:00
mm [ARM] Cleanup ARM includes 2006-01-03 17:39:34 +00:00
nwfpe [ARM] 3118/1: fix and reenable nwfpe extended precision emulation for big-endian 2005-11-07 21:12:08 +00:00
oprofile [PATCH] mm: kill check_user_page_readable 2005-10-29 21:40:41 -07:00
plat-omap [ARM] Include asm/hardware.h instead of asm/arch/hardware.h 2005-11-16 14:51:20 +00:00
tools [ARM] Update mach-types 2005-11-25 15:59:01 +00:00
vfp kbuild: arm - use generic asm-offsets.h support 2005-09-09 21:08:59 +02:00
Kconfig [ARM] Refine selection of ISA_DMA_API and generic dma.c code 2006-01-04 15:44:16 +00:00
Kconfig.debug [ARM] Fix typo in arch/arm/Kconfig.debug 2005-09-09 15:57:17 +01:00
Makefile [ARM] Make kernel link address depend on PAGE_OFFSET 2006-01-03 17:28:33 +00:00