Skip to content

Commit ccf9d27

Browse files
rddunlapjcmvbkbc
authored andcommitted
xtensa: processor.h: add init_arch() prototype
Add the prototype for init_arch() to asm/processor.h to prevent a build warning: arch/xtensa/kernel/setup.c:244:13: warning: no previous prototype for 'init_arch' [-Wmissing-prototypes] 244 | void __init init_arch(bp_tag_t *bp_start) Signed-off-by: Randy Dunlap <[email protected]> Cc: Chris Zankel <[email protected]> Cc: Max Filippov <[email protected]> Message-Id: <[email protected]> Signed-off-by: Max Filippov <[email protected]>
1 parent 8cf543c commit ccf9d27

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

arch/xtensa/include/asm/processor.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
#include <linux/compiler.h>
1616
#include <linux/stringify.h>
17+
18+
#include <asm/bootparam.h>
1719
#include <asm/ptrace.h>
1820
#include <asm/types.h>
1921
#include <asm/regs.h>
@@ -217,6 +219,8 @@ struct mm_struct;
217219

218220
extern unsigned long __get_wchan(struct task_struct *p);
219221

222+
void init_arch(bp_tag_t *bp_start);
223+
220224
#define KSTK_EIP(tsk) (task_pt_regs(tsk)->pc)
221225
#define KSTK_ESP(tsk) (task_pt_regs(tsk)->areg[1])
222226

0 commit comments

Comments
 (0)