#include <asm/fhc.h>
 #include <asm/starfire.h>
 
-struct linux_central *central_bus = NULL;
-struct linux_fhc *fhc_list = NULL;
+static struct linux_central *central_bus = NULL;
+static struct linux_fhc *fhc_list = NULL;
 
 #define IS_CENTRAL_FHC(__fhc)  ((__fhc) == central_bus->child)
 
 }
 
 /* Apply probed fhc ranges to registers passed, if no ranges return. */
-void apply_fhc_ranges(struct linux_fhc *fhc,
-                     struct linux_prom_registers *regs,
-                     int nregs)
+static void apply_fhc_ranges(struct linux_fhc *fhc,
+                            struct linux_prom_registers *regs,
+                            int nregs)
 {
        if (fhc->num_fhc_ranges)
                adjust_regs(regs, nregs, fhc->fhc_ranges,
 }
 
 /* Apply probed central ranges to registers passed, if no ranges return. */
-void apply_central_ranges(struct linux_central *central,
-                         struct linux_prom_registers *regs, int nregs)
+static void apply_central_ranges(struct linux_central *central,
+                                struct linux_prom_registers *regs, int nregs)
 {
        if (central->num_central_ranges)
                adjust_regs(regs, nregs, central->central_ranges,
 
                        struct ds_cap_state *cp,
                        void *buf, int len);
 
-struct ds_cap_state ds_states_template[] = {
+static struct ds_cap_state ds_states_template[] = {
        {
                .service_id     = "md-update",
                .data           = md_update_data,
 
        /* XXX affinity XXX */
 };
 
-int sparc64_setup_msi_irq(unsigned int *virt_irq_p,
-                         struct pci_dev *pdev,
-                         struct msi_desc *entry)
+static int sparc64_setup_msi_irq(unsigned int *virt_irq_p,
+                                struct pci_dev *pdev,
+                                struct msi_desc *entry)
 {
        struct pci_pbm_info *pbm = pdev->dev.archdata.host_controller;
        const struct sparc64_msiq_ops *ops = pbm->msi_ops;
        return err;
 }
 
-void sparc64_teardown_msi_irq(unsigned int virt_irq,
-                             struct pci_dev *pdev)
+static void sparc64_teardown_msi_irq(unsigned int virt_irq,
+                                    struct pci_dev *pdev)
 {
        struct pci_pbm_info *pbm = pdev->dev.archdata.host_controller;
        const struct sparc64_msiq_ops *ops = pbm->msi_ops;
 
        /* Nothing to do... */
 }
 
-const struct dma_ops sun4v_dma_ops = {
+static const struct dma_ops sun4v_dma_ops = {
        .alloc_coherent                 = dma_4v_alloc_coherent,
        .free_coherent                  = dma_4v_free_coherent,
        .map_single                     = dma_4v_map_single,
 
        return err;
 }
 
-int cp_compat_stat64(struct kstat *stat, struct compat_stat64 __user *statbuf)
+static int cp_compat_stat64(struct kstat *stat,
+                           struct compat_stat64 __user *statbuf)
 {
        int err;
 
 
        int                             num_fhc_ranges;
 };
 
-extern struct linux_central *central_bus;
-
-extern void apply_central_ranges(struct linux_central *central, 
-                                struct linux_prom_registers *regs,
-                                int nregs);
-
-extern void apply_fhc_ranges(struct linux_fhc *fhc, 
-                            struct linux_prom_registers *regs,
-                            int nregs);
-
 #endif /* !(_SPARC64_FHC_H) */