[PATCH] arm: mmu fix unused variable highmem when HIGHMEM is not enable

Nicolas Pitre nico at fluxnic.net
Wed Sep 16 22:18:14 EDT 2009


On Thu, 17 Sep 2009, Jean-Christophe PLAGNIOL-VILLARD wrote:

> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
> ---
>  arch/arm/mm/mmu.c |    5 ++++-
>  1 files changed, 4 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c
> index 4426ee6..650b0f1 100644
> --- a/arch/arm/mm/mmu.c
> +++ b/arch/arm/mm/mmu.c
> @@ -687,7 +687,10 @@ __early_param("vmalloc=", early_vmalloc);
>  
>  static void __init sanity_check_meminfo(void)
>  {
> -	int i, j, highmem = 0;
> +	int i, j;
> +#ifdef CONFIG_HIGHMEM
> +	int highmen = 0;
> +#endif

NAK.

Without even trying it, I can tell you this patch breaks highmem.


Nicolas



More information about the linux-arm-kernel mailing list