[PATCH] ia64: fix compilation for !CONFIG_FLATMEM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When CONFIG_FLATMEM is not set, GRANULEROUNDDOWN and GRANULEROUNDUP are 
used in arch/ia64/mm/init.c but compilation fails because they are 
undefined. Include asm/meminit.h to get the definitions.

Signed-off-by: Meelis Roos <mroos@xxxxxxxx>

diff --git a/arch/ia64/mm/init.c b/arch/ia64/mm/init.c
index 25c3502..499c2dc 100644
--- a/arch/ia64/mm/init.c
+++ b/arch/ia64/mm/init.c
@@ -35,6 +35,7 @@
 #include <asm/unistd.h>
 #include <asm/mca.h>
 #include <asm/paravirt.h>
+#include <asm/meminit.h>
 
 extern void ia64_tlb_init (void);
 

-- 
Meelis Roos (mroos@xxxxxxxx)
--
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Sparc Linux]     [DCCP]     [Linux ARM]     [Yosemite News]     [Linux SCSI]     [Linux x86_64]     [Linux for Ham Radio]

  Powered by Linux