[Skiboot] [PATCH 06/25] sparse: declare platform as extern

Cédric Le Goater clg at fr.ibm.com
Tue Feb 24 22:14:20 AEDT 2015


Signed-off-by: Cédric Le Goater <clg at fr.ibm.com>
---
 core/platform.c    |    2 ++
 include/platform.h |    2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/core/platform.c b/core/platform.c
index 877251e55111..7cf9727eb9f6 100644
--- a/core/platform.c
+++ b/core/platform.c
@@ -20,6 +20,8 @@
 #include <opal-api.h>
 #include <console.h>
 
+struct platform	platform;
+
 /*
  * Various wrappers for platform functions
  */
diff --git a/include/platform.h b/include/platform.h
index 690772e5b1f8..c25ee1946293 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -143,7 +143,7 @@ struct platform {
 extern struct platform __platforms_start;
 extern struct platform __platforms_end;
 
-struct platform	platform;
+extern struct platform	platform;
 
 #define DECLARE_PLATFORM(name)\
 static const struct platform __used __section(".platforms") name ##_platform
-- 
1.7.10.4



More information about the Skiboot mailing list