alpha: missing includes
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 25 Jan 2024 14:22:01 +0000 (09:22 -0500)
committerArnd Bergmann <arnd@arndb.de>
Fri, 3 May 2024 20:09:30 +0000 (22:09 +0200)
... 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>
16 files changed:
arch/alpha/kernel/bugs.c
arch/alpha/kernel/console.c
arch/alpha/kernel/core_irongate.c
arch/alpha/kernel/irq.c
arch/alpha/kernel/pci-noop.c
arch/alpha/kernel/proto.h
arch/alpha/kernel/smc37c669.c
arch/alpha/kernel/smc37c93x.c
arch/alpha/kernel/smp.c
arch/alpha/kernel/srmcons.c
arch/alpha/kernel/sys_nautilus.c
arch/alpha/lib/checksum.c
arch/alpha/lib/fpreg.c
arch/alpha/lib/memcpy.c
arch/alpha/math-emu/math.c
arch/alpha/mm/init.c

index 08cc10d7fa17d053127af0c882c7a51c0f0a3b46..e8c51089325fe9e2b7cc8dd5309144024372adaf 100644 (file)
@@ -1,6 +1,7 @@
 
 #include <asm/hwrpb.h>
 #include <linux/device.h>
+#include <linux/cpu.h>
 
 
 #ifdef CONFIG_SYSFS
index 5476279329a62ed320631f5ec0b90c0f443971cb..4193f76e9633abc7659d79a017a1f2e27e8bdde6 100644 (file)
@@ -15,6 +15,7 @@
 #include <asm/machvec.h>
 
 #include "pci_impl.h"
+#include "proto.h"
 
 #ifdef CONFIG_VGA_HOSE
 
index 6b8ed12936b6f131c4276d2d1283d876d42846a6..05dc4c1b9074868c81867dcee7d2fa1541076f65 100644 (file)
@@ -226,7 +226,6 @@ albacore_init_arch(void)
        if (memtop > pci_mem) {
 #ifdef CONFIG_BLK_DEV_INITRD
                extern unsigned long initrd_start, initrd_end;
-               extern void *move_initrd(unsigned long);
 
                /* Move the initrd out of the way. */
                if (initrd_end && __pa(initrd_end) > pci_mem) {
index 15f2effd6baf80d272988a123388cc7dd7754af6..c67047c5d83045032346fa60f7ca371e2713cd67 100644 (file)
@@ -28,6 +28,7 @@
 
 #include <asm/io.h>
 #include <linux/uaccess.h>
+#include "irq_impl.h"
 
 volatile unsigned long irq_err_count;
 DEFINE_PER_CPU(unsigned long, irq_pmi_count);
index ae82061edae995dc1ee2d9f711c9a1e604915849..32ca59a5a70477ed40754ff3f37a11f1669111df 100644 (file)
@@ -17,6 +17,7 @@
 #include <linux/scatterlist.h>
 #include <linux/syscalls.h>
 
+#include "pci_impl.h"
 #include "proto.h"
 
 
index 2c89c1c557129bc11ef9f2c02a58726861d6aff4..5b1d0d71d479bedca5999fc2478d36684b974b4b 100644 (file)
@@ -15,6 +15,7 @@ struct pt_regs;
 struct task_struct;
 struct pci_dev;
 struct pci_controller;
+struct pci_bus;
 
 /* core_apecs.c */
 extern struct pci_ops apecs_pci_ops;
@@ -114,6 +115,9 @@ extern int boot_cpuid;
 #ifdef CONFIG_VERBOSE_MCHECK
 extern unsigned long alpha_verbose_mcheck;
 #endif
+#ifdef CONFIG_BLK_DEV_INITRD
+extern void * __init move_initrd(unsigned long);
+#endif
 extern struct screen_info vgacon_screen_info;
 
 /* srmcons.c */
@@ -128,6 +132,7 @@ extern void unregister_srm_console(void);
 /* smp.c */
 extern void setup_smp(void);
 extern void handle_ipi(struct pt_regs *);
+extern void __init smp_callin(void);
 
 /* bios32.c */
 /* extern void reset_for_srm(void); */
@@ -139,13 +144,13 @@ extern void common_init_rtc(void);
 extern unsigned long est_cycle_freq;
 
 /* smc37c93x.c */
-extern void SMC93x_Init(void);
+extern int __init SMC93x_Init(void);
 
 /* smc37c669.c */
-extern void SMC669_Init(int);
+extern void __init SMC669_Init(int);
 
 /* es1888.c */
-extern void es1888_init(void);
+extern void __init es1888_init(void);
 
 /* ../lib/fpreg.c */
 extern void alpha_write_fp_reg (unsigned long reg, unsigned long val);
@@ -166,19 +171,37 @@ extern void entSys(void);
 extern void entUna(void);
 extern void entDbg(void);
 
+/* pci.c */
+extern void pcibios_claim_one_bus(struct pci_bus *);
+
 /* ptrace.c */
 extern int ptrace_set_bpt (struct task_struct *child);
 extern int ptrace_cancel_bpt (struct task_struct *child);
+extern void syscall_trace_leave(void);
+extern unsigned long syscall_trace_enter(void);
+
+/* signal.c */
+struct sigcontext;
+extern void do_sigreturn(struct sigcontext __user *);
+struct rt_sigframe;
+extern void do_rt_sigreturn(struct rt_sigframe __user *);
+extern void do_work_pending(struct pt_regs *, unsigned long, unsigned long, unsigned long);
 
 /* traps.c */
 extern void dik_show_regs(struct pt_regs *regs, unsigned long *r9_15);
 extern void die_if_kernel(char *, struct pt_regs *, long, unsigned long *);
+extern void do_entInt(unsigned long, unsigned long, unsigned long, struct pt_regs *);
+extern void do_entArith(unsigned long, unsigned long, struct pt_regs *);
+extern void do_entIF(unsigned long, struct pt_regs *);
+extern void do_entDbg(struct pt_regs *);
+struct allregs;
+extern void do_entUna(void *, unsigned long, unsigned long, struct allregs *);
+extern void do_entUnaUser(void __user *, unsigned long, unsigned long, struct pt_regs *);
 
 /* sys_titan.c */
 extern void titan_dispatch_irqs(u64);
 
 /* ../mm/init.c */
-extern void switch_to_system_map(void);
 extern void srm_paging_stop(void);
 
 static inline int
index cb8726b667da5935781a7ee29609c4224a26e71e..a5a6ed97a6ce0d6c1cb8936655cd15c5f3d326af 100644 (file)
@@ -11,6 +11,8 @@
 #include <asm/hwrpb.h>
 #include <asm/io.h>
 
+#include "proto.h"
+
 #if 0
 # define DBG_DEVS(args)         printk args
 #else
index 71cd7aca38ce2464be5a0e2dad8a21a57a800ee7..8028273f0d161f642fec8fd2e688fa044b42009c 100644 (file)
@@ -12,6 +12,8 @@
 #include <asm/hwrpb.h>
 #include <asm/io.h>
 
+#include "proto.h"
+
 #define SMC_DEBUG 0
 
 #if SMC_DEBUG
index 8e9dd63b220c68f1f9cbb4cfa470192900ea10f2..ed06367ece5749b29a07661a910a1f0a15022ab6 100644 (file)
@@ -38,6 +38,7 @@
 #include <asm/irq.h>
 #include <asm/mmu_context.h>
 #include <asm/tlbflush.h>
+#include <asm/cacheflush.h>
 
 #include "proto.h"
 #include "irq_impl.h"
index feaf89f6936bcd1a82b9fe9ae12ef06daa8fcb64..3e61073f4b3018123ec73e265546fc689e78e3db 100644 (file)
@@ -21,6 +21,8 @@
 #include <asm/console.h>
 #include <linux/uaccess.h>
 
+#include "proto.h"
+
 
 static DEFINE_SPINLOCK(srmcons_callback_lock);
 static int srm_is_registered_console = 0;
index 4dcee81606a59ba5ee4ec9500bf7c4692c141ca3..13b79960b4b90fe475c9fb68ba2a3436439016d1 100644 (file)
@@ -184,8 +184,6 @@ nautilus_machine_check(unsigned long vector, unsigned long la_ptr)
        mb();
 }
 
-extern void pcibios_claim_one_bus(struct pci_bus *);
-
 static struct resource irongate_mem = {
        .name   = "Irongate PCI MEM",
        .flags  = IORESOURCE_MEM,
index 3f35c3ed694886547e37825d95e6892ed5bee425..17fa230baeef63f9ce5ccff12d243bc64fc2188b 100644 (file)
@@ -12,6 +12,7 @@
  
 #include <linux/module.h>
 #include <linux/string.h>
+#include <net/checksum.h>
 
 #include <asm/byteorder.h>
 
index 7c08b225261c4add9b50b62a907239d30ecd4cf1..eee11fb4c7f154769f2cfeb5949a031a79612f25 100644 (file)
@@ -9,6 +9,7 @@
 #include <linux/export.h>
 #include <linux/preempt.h>
 #include <asm/thread_info.h>
+#include <asm/fpu.h>
 
 #if defined(CONFIG_ALPHA_EV6) || defined(CONFIG_ALPHA_EV67)
 #define STT(reg,val)  asm volatile ("ftoit $f"#reg",%0" : "=r"(val));
index cbac3dc6d9635840f99c8c71c23a94edde76cc24..78b6850a9d53399c2b742d71e4e1a75bffa3a3a5 100644 (file)
@@ -18,6 +18,7 @@
 
 #include <linux/types.h>
 #include <linux/export.h>
+#include <linux/string.h>
 
 /*
  * This should be done in one go with ldq_u*2/mask/stq_u. Do it
@@ -150,6 +151,8 @@ static inline void __memcpy_aligned_dn (unsigned long d, unsigned long s,
        DO_REST_ALIGNED_DN(d,s,n);
 }
 
+#undef memcpy
+
 void * memcpy(void * dest, const void *src, size_t n)
 {
        if (!(((unsigned long) dest ^ (unsigned long) src) & 7)) {
index 4212258f3cfdc8ef83f12e679003be42ee215cd5..68d420bfd3c0d7af1acc080a3ecb50ba1e462846 100644 (file)
@@ -4,6 +4,7 @@
 #include <linux/kernel.h>
 #include <linux/sched.h>
 #include <asm/ptrace.h>
+#include <asm/fpu.h>
 
 #include <linux/uaccess.h>
 
 #define MISC_TRAPB     0x0000
 #define MISC_EXCB      0x0400
 
-extern unsigned long alpha_read_fp_reg (unsigned long reg);
-extern void alpha_write_fp_reg (unsigned long reg, unsigned long val);
-extern unsigned long alpha_read_fp_reg_s (unsigned long reg);
-extern void alpha_write_fp_reg_s (unsigned long reg, unsigned long val);
-
-
 #ifdef MODULE
 
 MODULE_DESCRIPTION("FP Software completion module");
index a155180d7a837be3ae49a929ab65a86a90d6743c..4fe618446e4cf99caff7e965e81ceb2bf74679d1 100644 (file)
@@ -33,7 +33,7 @@
 #include <asm/setup.h>
 #include <asm/sections.h>
 
-extern void die_if_kernel(char *,struct pt_regs *,long);
+#include "../kernel/proto.h"
 
 static struct pcb_struct original_pcb;