[PATCH] [POWERPC] fix non HUGETLB_PAGE build warning

Paul Mackerras paulus at samba.org
Thu May 17 15:16:00 EST 2007


Stephen Rothwell writes:

> arch/powerpc/mm/mmu_context_64.c: In function 'init_new_context':
> arch/powerpc/mm/mmu_context_64.c:31: warning: unused variable 'new_context'

> +#ifdef CONFIG_PPC_MM_SLICES
>  	int new_context = (mm->context.id == 0);
> +#endif

Could we use __unused to suppress the warning instead?

Paul.



More information about the Linuxppc-dev mailing list