Commit f717a8d1 authored by Arnd Bergmann's avatar Arnd Bergmann
Browse files

arch: include linux/cpu.h for trap_init() prototype



some architectures run into a -Wmissing-prototypes warning
for trap_init()

arch/microblaze/kernel/traps.c:21:6: warning: no previous prototype for 'trap_init' [-Wmissing-prototypes]

Include the right header to avoid this consistently, removing
the extra declarations on m68k and x86 that were added as local
workarounds already.

Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent 4d868967
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@
 * This file initializes the trap entry points
 */

#include <linux/cpu.h>
#include <linux/jiffies.h>
#include <linux/mm.h>
#include <linux/sched/signal.h>
+0 −2
Original line number Diff line number Diff line
@@ -55,6 +55,4 @@ asmlinkage void trap_c(struct pt_regs *regs);
asmlinkage void do_notify_resume(struct pt_regs *regs,
			unsigned long thread_info_flags);

void trap_init(void);

#endif /* __ASM_CSKY_TRAPS_H */
+1 −0
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0
// Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.

#include <linux/cpu.h>
#include <linux/sched.h>
#include <linux/signal.h>
#include <linux/kernel.h>
+1 −2
Original line number Diff line number Diff line
@@ -12,14 +12,13 @@
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/irq.h>
#include <linux/cpu.h>
#include <asm/traps.h>
#include <asm/machdep.h>
#include <asm/coldfire.h>
#include <asm/mcfsim.h>
#include <asm/mcfwdebug.h>

#include "vectors.h"

/***************************************************************************/

#ifdef TRAP_DBG_INTERRUPT

arch/m68k/coldfire/vectors.h

deleted100644 → 0
+0 −3
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0-only */

void trap_init(void);
Loading