Skip to content

Commit

Permalink
sparse: fix (main|secondar)_cpu_entry declaration types
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
  • Loading branch information
stewartsmith authored and oohal committed Jul 19, 2019
1 parent 2c256c6 commit c773765
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/init.c
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit c773765

Please sign in to comment.