Skip to contentSkip to conversation

: Fix warning on ieee1275 platforms other than i386

PATCH New David Miller 1 participant 1 message Apr 30, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : Fix warning on ieee1275 platforms other than i386

On powerpc and sparc compiling lsmmap.c gives a warning because the mmap iterator function declaration isn't visible.

Others provide this via memory.h so let's make these platforms do this as well by simply including ieee1275.h

The sparc64 build, at least, is now warning free for me.

Committed.

2009-04-29 David S. Miller <[email protected]>

* include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
* include/grub/sparc64/ieee1275/memory.h: Likewise.

include/grub/powerpc/ieee1275/memory.h +2 -0
index 23e282f..f8f2ff0 100644
@@ -19,6 +19,8 @@
 #ifndef GRUB_MEMORY_MACHINE_HEADER
 #define GRUB_MEMORY_MACHINE_HEADER	1
 
+#include <grub/ieee1275/ieee1275.h>
+
 #define GRUB_MACHINE_MEMORY_AVAILABLE		1
 
 #endif
include/grub/sparc64/ieee1275/memory.h +2 -0
index c997f66..25e3100 100644
@@ -19,6 +19,8 @@
 #ifndef GRUB_MEMORY_MACHINE_HEADER
 #define GRUB_MEMORY_MACHINE_HEADER	1
 
+#include <grub/ieee1275/ieee1275.h>
+
 #define GRUB_MACHINE_MEMORY_AVAILABLE		1
 
 #endif