Merge tag 'for-linus-4.8-rc0-tag' of git://git.kernel.org/pub/scm/linux/kernel/git...
[deliverable/linux.git] / arch / arc / mm / tlb.c
index 7046c12c58edd3779990c3b16911c72d4a985e37..ec868a9081a1103790e594063d1544c0766be3fb 100644 (file)
@@ -814,6 +814,17 @@ void arc_mmu_init(void)
 
        printk(arc_mmu_mumbojumbo(0, str, sizeof(str)));
 
+       /*
+        * Can't be done in processor.h due to header include depenedencies
+        */
+       BUILD_BUG_ON(!IS_ALIGNED((CONFIG_ARC_KVADDR_SIZE << 20), PMD_SIZE));
+
+       /*
+        * stack top size sanity check,
+        * Can't be done in processor.h due to header include depenedencies
+        */
+       BUILD_BUG_ON(!IS_ALIGNED(STACK_TOP, PMD_SIZE));
+
        /* For efficiency sake, kernel is compile time built for a MMU ver
         * This must match the hardware it is running on.
         * Linux built for MMU V2, if run on MMU V1 will break down because V1
This page took 0.033152 seconds and 5 git commands to generate.