]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/x86/mm/ioremap.c
Merge branch 'x86/vdso' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip...
[karo-tx-linux.git] / arch / x86 / mm / ioremap.c
index bc7527e109c8115687928c891174828afbced048..baff1da354e0ecfaf371b4e9f30ac6533d657a28 100644 (file)
@@ -367,6 +367,12 @@ void __init early_ioremap_init(void)
 {
        pmd_t *pmd;
 
+#ifdef CONFIG_X86_64
+       BUILD_BUG_ON((fix_to_virt(0) + PAGE_SIZE) & ((1 << PMD_SHIFT) - 1));
+#else
+       WARN_ON((fix_to_virt(0) + PAGE_SIZE) & ((1 << PMD_SHIFT) - 1));
+#endif
+
        early_ioremap_setup();
 
        pmd = early_ioremap_pmd(fix_to_virt(FIX_BTMAP_BEGIN));