X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=arch%2Farm64%2Fmm%2Finit.c;h=787e27964ab9de8658398bba239be5743e2416c7;hb=edb0a20009363ae787bfe0d6fd52abb504f05113;hp=811f9f8b3bb0325c4b4ec1e33e2a46728fb35321;hpb=5ad356eabc47d26a92140a0c4b20eba471c10de3;p=platform%2Fkernel%2Flinux-rpi.git diff --git a/arch/arm64/mm/init.c b/arch/arm64/mm/init.c index 811f9f8..787e279 100644 --- a/arch/arm64/mm/init.c +++ b/arch/arm64/mm/init.c @@ -615,11 +615,13 @@ void __init mem_init(void) BUILD_BUG_ON(TASK_SIZE_32 > TASK_SIZE_64); #endif +#ifdef CONFIG_SPARSEMEM_VMEMMAP /* * Make sure we chose the upper bound of sizeof(struct page) - * correctly. + * correctly when sizing the VMEMMAP array. */ BUILD_BUG_ON(sizeof(struct page) > (1 << STRUCT_PAGE_MAX_SHIFT)); +#endif if (PAGE_SIZE >= 16384 && get_num_physpages() <= 128) { extern int sysctl_overcommit_memory;