Skip to content

Commit fb37bb0

Browse files
Paul Gortmakertorvalds
authored andcommitted
smp.h: fix x86+cpu.c sparse warnings about arch nonboot CPU calls
Use what we already do for arch_disable_smp_support() to fix these: arch/x86/kernel/smpboot.c:1155:6: warning: symbol 'arch_enable_nonboot_cpus_begin' was not declared. Should it be static? arch/x86/kernel/smpboot.c:1160:6: warning: symbol 'arch_enable_nonboot_cpus_end' was not declared. Should it be static? kernel/cpu.c:512:13: warning: symbol 'arch_enable_nonboot_cpus_begin' was not declared. Should it be static? kernel/cpu.c:516:13: warning: symbol 'arch_enable_nonboot_cpus_end' was not declared. Should it be static? Signed-off-by: Paul Gortmaker <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: "H. Peter Anvin" <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent a0b54ad commit fb37bb0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/linux/smp.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,9 @@ static inline void kick_all_cpus_sync(void) { }
188188
*/
189189
extern void arch_disable_smp_support(void);
190190

191+
extern void arch_enable_nonboot_cpus_begin(void);
192+
extern void arch_enable_nonboot_cpus_end(void);
193+
191194
void smp_setup_processor_id(void);
192195

193196
#endif /* __LINUX_SMP_H */

0 commit comments

Comments
 (0)