Skip to content

Commit 6e8d023

Browse files
Al Viroarndb
authored andcommitted
alpha: missing includes
... and missing externs in proto.h Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Acked-by: Paul E. McKenney <paulmck@kernel.org> Acked-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
1 parent 0ec60e2 commit 6e8d023

16 files changed

Lines changed: 45 additions & 14 deletions

File tree

arch/alpha/kernel/bugs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

22
#include <asm/hwrpb.h>
33
#include <linux/device.h>
4+
#include <linux/cpu.h>
45

56

67
#ifdef CONFIG_SYSFS

arch/alpha/kernel/console.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <asm/machvec.h>
1616

1717
#include "pci_impl.h"
18+
#include "proto.h"
1819

1920
#ifdef CONFIG_VGA_HOSE
2021

arch/alpha/kernel/core_irongate.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,6 @@ albacore_init_arch(void)
226226
if (memtop > pci_mem) {
227227
#ifdef CONFIG_BLK_DEV_INITRD
228228
extern unsigned long initrd_start, initrd_end;
229-
extern void *move_initrd(unsigned long);
230229

231230
/* Move the initrd out of the way. */
232231
if (initrd_end && __pa(initrd_end) > pci_mem) {

arch/alpha/kernel/irq.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

2929
#include <asm/io.h>
3030
#include <linux/uaccess.h>
31+
#include "irq_impl.h"
3132

3233
volatile unsigned long irq_err_count;
3334
DEFINE_PER_CPU(unsigned long, irq_pmi_count);

arch/alpha/kernel/pci-noop.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include <linux/scatterlist.h>
1818
#include <linux/syscalls.h>
1919

20+
#include "pci_impl.h"
2021
#include "proto.h"
2122

2223

arch/alpha/kernel/proto.h

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ struct pt_regs;
1515
struct task_struct;
1616
struct pci_dev;
1717
struct pci_controller;
18+
struct pci_bus;
1819

1920
/* core_apecs.c */
2021
extern struct pci_ops apecs_pci_ops;
@@ -114,6 +115,9 @@ extern int boot_cpuid;
114115
#ifdef CONFIG_VERBOSE_MCHECK
115116
extern unsigned long alpha_verbose_mcheck;
116117
#endif
118+
#ifdef CONFIG_BLK_DEV_INITRD
119+
extern void * __init move_initrd(unsigned long);
120+
#endif
117121
extern struct screen_info vgacon_screen_info;
118122

119123
/* srmcons.c */
@@ -128,6 +132,7 @@ extern void unregister_srm_console(void);
128132
/* smp.c */
129133
extern void setup_smp(void);
130134
extern void handle_ipi(struct pt_regs *);
135+
extern void __init smp_callin(void);
131136

132137
/* bios32.c */
133138
/* extern void reset_for_srm(void); */
@@ -139,13 +144,13 @@ extern void common_init_rtc(void);
139144
extern unsigned long est_cycle_freq;
140145

141146
/* smc37c93x.c */
142-
extern void SMC93x_Init(void);
147+
extern int __init SMC93x_Init(void);
143148

144149
/* smc37c669.c */
145-
extern void SMC669_Init(int);
150+
extern void __init SMC669_Init(int);
146151

147152
/* es1888.c */
148-
extern void es1888_init(void);
153+
extern void __init es1888_init(void);
149154

150155
/* ../lib/fpreg.c */
151156
extern void alpha_write_fp_reg (unsigned long reg, unsigned long val);
@@ -166,19 +171,37 @@ extern void entSys(void);
166171
extern void entUna(void);
167172
extern void entDbg(void);
168173

174+
/* pci.c */
175+
extern void pcibios_claim_one_bus(struct pci_bus *);
176+
169177
/* ptrace.c */
170178
extern int ptrace_set_bpt (struct task_struct *child);
171179
extern int ptrace_cancel_bpt (struct task_struct *child);
180+
extern void syscall_trace_leave(void);
181+
extern unsigned long syscall_trace_enter(void);
182+
183+
/* signal.c */
184+
struct sigcontext;
185+
extern void do_sigreturn(struct sigcontext __user *);
186+
struct rt_sigframe;
187+
extern void do_rt_sigreturn(struct rt_sigframe __user *);
188+
extern void do_work_pending(struct pt_regs *, unsigned long, unsigned long, unsigned long);
172189

173190
/* traps.c */
174191
extern void dik_show_regs(struct pt_regs *regs, unsigned long *r9_15);
175192
extern void die_if_kernel(char *, struct pt_regs *, long, unsigned long *);
193+
extern void do_entInt(unsigned long, unsigned long, unsigned long, struct pt_regs *);
194+
extern void do_entArith(unsigned long, unsigned long, struct pt_regs *);
195+
extern void do_entIF(unsigned long, struct pt_regs *);
196+
extern void do_entDbg(struct pt_regs *);
197+
struct allregs;
198+
extern void do_entUna(void *, unsigned long, unsigned long, struct allregs *);
199+
extern void do_entUnaUser(void __user *, unsigned long, unsigned long, struct pt_regs *);
176200

177201
/* sys_titan.c */
178202
extern void titan_dispatch_irqs(u64);
179203

180204
/* ../mm/init.c */
181-
extern void switch_to_system_map(void);
182205
extern void srm_paging_stop(void);
183206

184207
static inline int

arch/alpha/kernel/smc37c669.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
#include <asm/hwrpb.h>
1212
#include <asm/io.h>
1313

14+
#include "proto.h"
15+
1416
#if 0
1517
# define DBG_DEVS(args) printk args
1618
#else

arch/alpha/kernel/smc37c93x.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
#include <asm/hwrpb.h>
1313
#include <asm/io.h>
1414

15+
#include "proto.h"
16+
1517
#define SMC_DEBUG 0
1618

1719
#if SMC_DEBUG

arch/alpha/kernel/smp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
#include <asm/irq.h>
3939
#include <asm/mmu_context.h>
4040
#include <asm/tlbflush.h>
41+
#include <asm/cacheflush.h>
4142

4243
#include "proto.h"
4344
#include "irq_impl.h"

arch/alpha/kernel/srmcons.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
#include <asm/console.h>
2222
#include <linux/uaccess.h>
2323

24+
#include "proto.h"
25+
2426

2527
static DEFINE_SPINLOCK(srmcons_callback_lock);
2628
static int srm_is_registered_console = 0;

0 commit comments

Comments
 (0)