Skip to content

Commit 0f95df6

Browse files
rddunlapjcmvbkbc
authored andcommitted
xtensa: smp: add headers for missing function prototypes
Use <asm/smp.h> to provide the prototype for secondary_start_kernel(). Use <linux/profile.h> to provide the prototype for setup_profiling_timer(). arch/xtensa/kernel/smp.c:119:6: warning: no previous prototype for 'secondary_start_kernel' [-Wmissing-prototypes] 119 | void secondary_start_kernel(void) arch/xtensa/kernel/smp.c:461:5: warning: no previous prototype for 'setup_profiling_timer' [-Wmissing-prototypes] 461 | int setup_profiling_timer(unsigned int multiplier) 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 373e416 commit 0f95df6

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

arch/xtensa/include/asm/smp.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ struct cpumask;
2323
void arch_send_call_function_ipi_mask(const struct cpumask *mask);
2424
void arch_send_call_function_single_ipi(int cpu);
2525

26+
void secondary_start_kernel(void);
2627
void smp_init_cpus(void);
2728
void secondary_init_irq(void);
2829
void ipi_init(void);

arch/xtensa/kernel/smp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include <linux/irq.h>
2222
#include <linux/kdebug.h>
2323
#include <linux/module.h>
24+
#include <linux/profile.h>
2425
#include <linux/sched/mm.h>
2526
#include <linux/sched/hotplug.h>
2627
#include <linux/sched/task_stack.h>

0 commit comments

Comments
 (0)