From: Russell King Date: Tue, 25 Oct 2011 07:19:59 +0000 (+0100) Subject: Merge branch 'misc' into for-linus X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bdf4e9482360a3ddc1619efbd5d1c928ede8c3fa;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git Merge branch 'misc' into for-linus Conflicts: arch/arm/mach-integrator/integrator_ap.c --- bdf4e9482360a3ddc1619efbd5d1c928ede8c3fa diff --cc arch/arm/Kconfig index 380e4f016654,1412da8ccf05..92e695412bd5 --- 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 4e66f62b8d41,7b2541efd9f8..20b3041e0860 --- 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 8cdc730dcb3a,8dca5a7ab370..f2119908a0b3 --- 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