X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=mm%2Fioremap.c;h=8ee0136f8cb082c0c1e57c3462988b79d8d96c6a;hb=67e446eb4d063d9f75ef5ebbb4f5083a3f2edc32;hp=d1dcc7e744acfa5adbf2c77cc69d16c11bd826eb;hpb=a647034fe26b92702d5084b518c061e3cebefbaf;p=linux-2.6-microblaze.git diff --git a/mm/ioremap.c b/mm/ioremap.c index d1dcc7e744ac..8ee0136f8cb0 100644 --- a/mm/ioremap.c +++ b/mm/ioremap.c @@ -16,16 +16,16 @@ #include "pgalloc-track.h" #ifdef CONFIG_HAVE_ARCH_HUGE_VMAP -static bool __ro_after_init iomap_max_page_shift = PAGE_SHIFT; +static unsigned int __ro_after_init iomap_max_page_shift = BITS_PER_LONG - 1; static int __init set_nohugeiomap(char *str) { - iomap_max_page_shift = P4D_SHIFT; + iomap_max_page_shift = PAGE_SHIFT; return 0; } early_param("nohugeiomap", set_nohugeiomap); #else /* CONFIG_HAVE_ARCH_HUGE_VMAP */ -static const bool iomap_max_page_shift = PAGE_SHIFT; +static const unsigned int iomap_max_page_shift = PAGE_SHIFT; #endif /* CONFIG_HAVE_ARCH_HUGE_VMAP */ int ioremap_page_range(unsigned long addr,