Skip to contentSkip to conversation

2.6.5 build fails on sparc64 in hugetlbpage.c

PATCH In review Romain Francoise 2 participants 2 messages Apr 4, 2004 – Apr 5, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2.6.5 build fails on sparc64 in hugetlbpage.c

Hi,

Stock 2.6.5 does not compile on sparc64 because of akpm's change to export hugetlb_total_pages: arch/sparc64/mm/hugetlbpage.c does not include linux/module.h so EXPORT_SYMBOL prints out warnings, and since sparc64 Makefiles have -Werror, the build fails. Including module.h fixes it.

Please apply,

arch/sparc64/mm/hugetlbpage.c +1 -0
diff -urN a/arch/sparc64/mm/hugetlbpage.c b/arch/sparc64/mm/hugetlbpage.c
@@ -13,6 +13,7 @@
 #include <linux/smp_lock.h>
 #include <linux/slab.h>
 #include <linux/sysctl.h>
+#include <linux/module.h>
 
 #include <asm/mman.h>
 #include <asm/pgalloc.h>
Signature · 2 lines
Romain Francoise <[email protected]> | I know, you love the song but
it's a miracle -- http://orebokech.com/ | not the singer.
#1 lore raw

Yes, already fixed in my tree, but thanks for catching this Romain.