From: Russell King Date: Tue, 25 Oct 2011 07:19:59 +0000 (+0100) Subject: Merge branch 'misc' into for-linus X-Git-Tag: v3.2-rc1~189^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bdf4e9482360a3ddc1619efbd5d1c928ede8c3fa;p=profile%2Fcommon%2Fkernel-common.git Merge branch 'misc' into for-linus Conflicts: arch/arm/mach-integrator/integrator_ap.c --- bdf4e9482360a3ddc1619efbd5d1c928ede8c3fa diff --cc arch/arm/Kconfig index 380e4f0,1412da8..92e6954 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@@ -205,13 -204,21 +205,17 @@@ config ARM_PATCH_PHYS_VIR kernel in system memory. This can only be used with non-XIP MMU kernels where the base - of physical memory is at a 16MB boundary, or theoretically 64K - for the MSM machine class. + of physical memory is at a 16MB boundary. + + Only disable this option if you know that you do not require + this feature (eg, building a kernel for a single machine) and + you need to shrink the kernel to the minimal size. -config ARM_PATCH_PHYS_VIRT_16BIT - def_bool y - depends on ARM_PATCH_PHYS_VIRT && ARCH_MSM - help - This option extends the physical to virtual translation patching - to allow physical memory down to a theoretical minimum of 64K - boundaries. + config GENERIC_BUG + def_bool y + depends on BUG + source "init/Kconfig" source "kernel/Kconfig.freezer" diff --cc arch/arm/kernel/vmlinux.lds.S index 4e66f62,7b2541e..20b3041 --- a/arch/arm/kernel/vmlinux.lds.S +++ b/arch/arm/kernel/vmlinux.lds.S @@@ -21,12 -21,11 +21,13 @@@ #define ARM_CPU_KEEP(x) #endif - #if defined(CONFIG_SMP_ON_UP) && !defined(CONFIG_DEBUG_SPINLOCK) + #if (defined(CONFIG_SMP_ON_UP) && !defined(CONFIG_DEBUG_SPINLOCK)) || \ + defined(CONFIG_GENERIC_BUG) #define ARM_EXIT_KEEP(x) x +#define ARM_EXIT_DISCARD(x) #else #define ARM_EXIT_KEEP(x) +#define ARM_EXIT_DISCARD(x) x #endif OUTPUT_ARCH(arm) diff --cc arch/arm/mach-integrator/integrator_ap.c index 8cdc730,8dca5a7..f211990 --- a/arch/arm/mach-integrator/integrator_ap.c +++ b/arch/arm/mach-integrator/integrator_ap.c @@@ -32,7 -32,7 +32,8 @@@ #include #include #include + #include +#include