[PATCH 41/42] powerpc/shared/bootloader: Fix warnings

Joel Sherrill joel.sherrill at oarcorp.com
Fri Oct 17 15:23:57 UTC 2014


---
 c/src/lib/libbsp/powerpc/shared/bootloader/qemu_fakeres.c | 2 +-
 c/src/lib/libbsp/powerpc/shared/bootloader/qemu_fakerom.S | 3 +++
 c/src/lib/libbsp/powerpc/shared/residual/residual.h       | 7 +++++++
 3 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/c/src/lib/libbsp/powerpc/shared/bootloader/qemu_fakeres.c b/c/src/lib/libbsp/powerpc/shared/bootloader/qemu_fakeres.c
index e8944b9..51f03a0 100644
--- a/c/src/lib/libbsp/powerpc/shared/bootloader/qemu_fakeres.c
+++ b/c/src/lib/libbsp/powerpc/shared/bootloader/qemu_fakeres.c
@@ -119,7 +119,7 @@ nvram_addr(uint16_t addr)
 }
 
 /* Read a 32-bit (big-endian) work from NVRAM */
-uint32_t
+static uint32_t
 nvram_rdl_be(uint16_t addr)
 {
 int i;
diff --git a/c/src/lib/libbsp/powerpc/shared/bootloader/qemu_fakerom.S b/c/src/lib/libbsp/powerpc/shared/bootloader/qemu_fakerom.S
index 7ed9739..b77c3bd 100644
--- a/c/src/lib/libbsp/powerpc/shared/bootloader/qemu_fakerom.S
+++ b/c/src/lib/libbsp/powerpc/shared/bootloader/qemu_fakerom.S
@@ -1,6 +1,9 @@
 /* A fake 'bios' which does nothing but move a kernel image 
  * to RAM address zero and then starts that...
  */
+
+#include <bsp/residual.h>
+
 #define LD_CACHE_LINE_SIZE  5
 #define INIT_STACK (0x100 - 16) /* 16-byte/svr4 aligned */
 
diff --git a/c/src/lib/libbsp/powerpc/shared/residual/residual.h b/c/src/lib/libbsp/powerpc/shared/residual/residual.h
index 3c6ae37..1bf1a34 100644
--- a/c/src/lib/libbsp/powerpc/shared/residual/residual.h
+++ b/c/src/lib/libbsp/powerpc/shared/residual/residual.h
@@ -16,6 +16,8 @@
 
 #ifndef ASM
 
+#include <stdint.h>
+
 #define MAX_CPUS 32                     /* These should be set to the maximum */
 #define MAX_MEMS 64                     /* number possible for this system.   */
 #define MAX_DEVICES 256                 /* Changing these will change the     */
@@ -345,5 +347,10 @@ extern PnP_TAG_PACKET *PnP_find_small_vendor_packet(unsigned char *p,
 extern PnP_TAG_PACKET *PnP_find_large_vendor_packet(unsigned char *p,
 						    unsigned packet_type,
 						    int n);
+/*
+ * Prototypes for methods called only from .S for dependency tracking
+ */
+uint32_t res_copy(void);
+
 #endif /* ASM */
 #endif  /* ndef _RESIDUAL_ */
-- 
1.9.3




More information about the devel mailing list