Skip to content

Commit 3c46e2d

Browse files
sravnborgdavem330
authored andcommitted
sparc32: use proper prototype for trapbase
This killed an extern ... in a .c file. No functional change. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 06fc7b5 commit 3c46e2d

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

‎arch/sparc/kernel/kernel.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ extern unsigned int t_nmi[];
127127
extern unsigned int linux_trap_ipi15_sun4d[];
128128
extern unsigned int linux_trap_ipi15_sun4m[];
129129

130+
extern struct tt_entry trapbase;
130131
extern struct tt_entry trapbase_cpu1;
131132
extern struct tt_entry trapbase_cpu2;
132133
extern struct tt_entry trapbase_cpu3;

‎arch/sparc/kernel/kgdb_32.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@
1212
#include <asm/irq.h>
1313
#include <asm/cacheflush.h>
1414

15+
#include "kernel.h"
1516
#include "entry.h"
1617

17-
extern unsigned long trapbase;
18-
1918
void pt_regs_to_gdb_regs(unsigned long *gdb_regs, struct pt_regs *regs)
2019
{
2120
struct reg_window32 *win;

‎arch/sparc/kernel/setup_32.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ struct screen_info screen_info = {
6868
* prints out pretty messages and returns.
6969
*/
7070

71-
extern unsigned long trapbase;
72-
7371
/* Pretty sick eh? */
7472
static void prom_sync_me(void)
7573
{
@@ -300,7 +298,7 @@ void __init setup_arch(char **cmdline_p)
300298
int i;
301299
unsigned long highest_paddr;
302300

303-
sparc_ttable = (struct tt_entry *) &trapbase;
301+
sparc_ttable = &trapbase;
304302

305303
/* Initialize PROM console and command line. */
306304
*cmdline_p = prom_getbootargs();

0 commit comments

Comments
 (0)