diff mbox series

[03/10] sparse: fix (main|secondar)_cpu_entry declaration types

Message ID 20190718065117.16923-4-stewart@linux.ibm.com
State Accepted
Headers show
Series Misc sparse fixes | expand

Checks

Context Check Description
snowpatch_ozlabs/apply_patch success Successfully applied on branch master (3a6fdede6ce117facec0108afe716cf5d0472c3f)
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot success Test snowpatch/job/snowpatch-skiboot on branch master
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot-dco success Signed-off-by present

Commit Message

Stewart Smith July 18, 2019, 6:51 a.m. UTC
core/init.c:923:28: error: symbol 'main_cpu_entry' redeclared with different type (originally declared at core/init.c:921) - different modifiers
core/init.c:1314:28: error: symbol 'secondary_cpu_entry' redeclared with different type (originally declared at core/init.c:1312) - different modifiers

Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
---
 core/init.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/core/init.c b/core/init.c
index e3e0ea380bb2..7a35da16bd90 100644
--- a/core/init.c
+++ b/core/init.c
@@ -918,7 +918,7 @@  bool verify_romem(void)
 }
 
 /* Called from head.S, thus no prototype. */
-void main_cpu_entry(const void *fdt);
+void __noreturn __nomcount  main_cpu_entry(const void *fdt);
 
 void __noreturn __nomcount main_cpu_entry(const void *fdt)
 {
@@ -1309,7 +1309,7 @@  void __noreturn __secondary_cpu_entry(void)
 }
 
 /* Called from head.S, thus no prototype. */
-void secondary_cpu_entry(void);
+void __noreturn __nomcount secondary_cpu_entry(void);
 
 void __noreturn __nomcount secondary_cpu_entry(void)
 {