: Fix warning on ieee1275 platforms other than i386
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
@@ -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
@@ -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