···457457 sbus_time_init();458458}459459460460-extern __inline__ unsigned long do_gettimeoffset(void)460460+static inline unsigned long do_gettimeoffset(void)461461{462462 return (*master_l10_counter >> 10) & 0x1fffff;463463}
+1-1
arch/sparc/mm/srmmu.c
···260260{ return __pte((pte_val(pte) & SRMMU_CHG_MASK) | pgprot_val(newprot)); }261261262262/* to find an entry in a top-level page table... */263263-extern inline pgd_t *srmmu_pgd_offset(struct mm_struct * mm, unsigned long address)263263+static inline pgd_t *srmmu_pgd_offset(struct mm_struct * mm, unsigned long address)264264{ return mm->pgd + (address >> SRMMU_PGDIR_SHIFT); }265265266266/* Find an entry in the second-level page table.. */
···1010#include <linux/config.h>1111#include <asm/cpudata.h>12121313-extern __inline__ void __delay(unsigned long loops)1313+static inline void __delay(unsigned long loops)1414{1515 __asm__ __volatile__("cmp %0, 0\n\t"1616 "1: bne 1b\n\t"
+1-1
include/asm-sparc/dma.h
···198198/* Pause until counter runs out or BIT isn't set in the DMA condition199199 * register.200200 */201201-extern __inline__ void sparc_dma_pause(struct sparc_dma_registers *regs,201201+static inline void sparc_dma_pause(struct sparc_dma_registers *regs,202202 unsigned long bit)203203{204204 int ctr = 50000; /* Let's find some bugs ;) */
···4646extern struct kernel_debug *linux_dbvec;47474848/* Use this macro in C-code to enter the debugger. */4949-extern __inline__ void sp_enter_debugger(void)4949+static inline void sp_enter_debugger(void)5050{5151 __asm__ __volatile__("jmpl %0, %%o7\n\t"5252 "nop\n\t" : :
+2-2
include/asm-sparc/mbus.h
···8383 */8484#define TBR_ID_SHIFT 2085858686-extern __inline__ int get_cpuid(void)8686+static inline int get_cpuid(void)8787{8888 register int retval;8989 __asm__ __volatile__("rd %%tbr, %0\n\t"···9393 return (retval & 3);9494}95959696-extern __inline__ int get_modid(void)9696+static inline int get_modid(void)9797{9898 return (get_cpuid() | 0x8);9999}
···15151616#define PCI_IRQ_NONE 0xffffffff17171818-extern inline void pcibios_set_master(struct pci_dev *dev)1818+static inline void pcibios_set_master(struct pci_dev *dev)1919{2020 /* No special bus mastering setup handling */2121}22222323-extern inline void pcibios_penalize_isa_irq(int irq, int active)2323+static inline void pcibios_penalize_isa_irq(int irq, int active)2424{2525 /* We don't do dynamic PCI IRQ allocation */2626}···137137 * only drive the low 24-bits during PCI bus mastering, then138138 * you would pass 0x00ffffff as the mask to this function.139139 */140140-extern inline int pci_dma_supported(struct pci_dev *hwdev, u64 mask)140140+static inline int pci_dma_supported(struct pci_dev *hwdev, u64 mask)141141{142142 return 1;143143}
···148148#define __nocache_fix(VADDR) __va(__nocache_pa(VADDR))149149150150/* Accessing the MMU control register. */151151-extern __inline__ unsigned int srmmu_get_mmureg(void)151151+static inline unsigned int srmmu_get_mmureg(void)152152{153153 unsigned int retval;154154 __asm__ __volatile__("lda [%%g0] %1, %0\n\t" :···157157 return retval;158158}159159160160-extern __inline__ void srmmu_set_mmureg(unsigned long regval)160160+static inline void srmmu_set_mmureg(unsigned long regval)161161{162162 __asm__ __volatile__("sta %0, [%%g0] %1\n\t" : :163163 "r" (regval), "i" (ASI_M_MMUREGS) : "memory");164164165165}166166167167-extern __inline__ void srmmu_set_ctable_ptr(unsigned long paddr)167167+static inline void srmmu_set_ctable_ptr(unsigned long paddr)168168{169169 paddr = ((paddr >> 4) & SRMMU_CTX_PMASK);170170 __asm__ __volatile__("sta %0, [%1] %2\n\t" : :···173173 "memory");174174}175175176176-extern __inline__ unsigned long srmmu_get_ctable_ptr(void)176176+static inline unsigned long srmmu_get_ctable_ptr(void)177177{178178 unsigned int retval;179179···184184 return (retval & SRMMU_CTX_PMASK) << 4;185185}186186187187-extern __inline__ void srmmu_set_context(int context)187187+static inline void srmmu_set_context(int context)188188{189189 __asm__ __volatile__("sta %0, [%1] %2\n\t" : :190190 "r" (context), "r" (SRMMU_CTX_REG),191191 "i" (ASI_M_MMUREGS) : "memory");192192}193193194194-extern __inline__ int srmmu_get_context(void)194194+static inline int srmmu_get_context(void)195195{196196 register int retval;197197 __asm__ __volatile__("lda [%1] %2, %0\n\t" :···201201 return retval;202202}203203204204-extern __inline__ unsigned int srmmu_get_fstatus(void)204204+static inline unsigned int srmmu_get_fstatus(void)205205{206206 unsigned int retval;207207···211211 return retval;212212}213213214214-extern __inline__ unsigned int srmmu_get_faddr(void)214214+static inline unsigned int srmmu_get_faddr(void)215215{216216 unsigned int retval;217217···222222}223223224224/* This is guaranteed on all SRMMU's. */225225-extern __inline__ void srmmu_flush_whole_tlb(void)225225+static inline void srmmu_flush_whole_tlb(void)226226{227227 __asm__ __volatile__("sta %%g0, [%0] %1\n\t": :228228 "r" (0x400), /* Flush entire TLB!! */···231231}232232233233/* These flush types are not available on all chips... */234234-extern __inline__ void srmmu_flush_tlb_ctx(void)234234+static inline void srmmu_flush_tlb_ctx(void)235235{236236 __asm__ __volatile__("sta %%g0, [%0] %1\n\t": :237237 "r" (0x300), /* Flush TLB ctx.. */···239239240240}241241242242-extern __inline__ void srmmu_flush_tlb_region(unsigned long addr)242242+static inline void srmmu_flush_tlb_region(unsigned long addr)243243{244244 addr &= SRMMU_PGDIR_MASK;245245 __asm__ __volatile__("sta %%g0, [%0] %1\n\t": :···249249}250250251251252252-extern __inline__ void srmmu_flush_tlb_segment(unsigned long addr)252252+static inline void srmmu_flush_tlb_segment(unsigned long addr)253253{254254 addr &= SRMMU_REAL_PMD_MASK;255255 __asm__ __volatile__("sta %%g0, [%0] %1\n\t": :···258258259259}260260261261-extern __inline__ void srmmu_flush_tlb_page(unsigned long page)261261+static inline void srmmu_flush_tlb_page(unsigned long page)262262{263263 page &= PAGE_MASK;264264 __asm__ __volatile__("sta %%g0, [%0] %1\n\t": :···267267268268}269269270270-extern __inline__ unsigned long srmmu_hwprobe(unsigned long vaddr)270270+static inline unsigned long srmmu_hwprobe(unsigned long vaddr)271271{272272 unsigned long retval;273273···279279 return retval;280280}281281282282-extern __inline__ int282282+static inline int283283srmmu_get_pte (unsigned long addr)284284{285285 register unsigned long entry;
+1-1
include/asm-sparc/processor.h
···7979extern unsigned long thread_saved_pc(struct task_struct *t);80808181/* Do necessary setup to start up a newly executed thread. */8282-extern __inline__ void start_thread(struct pt_regs * regs, unsigned long pc,8282+static inline void start_thread(struct pt_regs * regs, unsigned long pc,8383 unsigned long sp)8484{8585 register unsigned long zero asm("g1");
+3-3
include/asm-sparc/psr.h
···38383939#ifndef __ASSEMBLY__4040/* Get the %psr register. */4141-extern __inline__ unsigned int get_psr(void)4141+static inline unsigned int get_psr(void)4242{4343 unsigned int psr;4444 __asm__ __volatile__(···5353 return psr;5454}55555656-extern __inline__ void put_psr(unsigned int new_psr)5656+static inline void put_psr(unsigned int new_psr)5757{5858 __asm__ __volatile__(5959 "wr %0, 0x0, %%psr\n\t"···72727373extern unsigned int fsr_storage;74747575-extern __inline__ unsigned int get_fsr(void)7575+static inline unsigned int get_fsr(void)7676{7777 unsigned int fsr = 0;7878
+5-5
include/asm-sparc/sbi.h
···65656666#ifndef __ASSEMBLY__67676868-extern __inline__ int acquire_sbi(int devid, int mask)6868+static inline int acquire_sbi(int devid, int mask)6969{7070 __asm__ __volatile__ ("swapa [%2] %3, %0" :7171 "=r" (mask) :···7575 return mask;7676}77777878-extern __inline__ void release_sbi(int devid, int mask)7878+static inline void release_sbi(int devid, int mask)7979{8080 __asm__ __volatile__ ("sta %0, [%1] %2" : :8181 "r" (mask),···8383 "i" (ASI_M_CTL));8484}85858686-extern __inline__ void set_sbi_tid(int devid, int targetid)8686+static inline void set_sbi_tid(int devid, int targetid)8787{8888 __asm__ __volatile__ ("sta %0, [%1] %2" : :8989 "r" (targetid),···9191 "i" (ASI_M_CTL));9292}93939494-extern __inline__ int get_sbi_ctl(int devid, int cfgno)9494+static inline int get_sbi_ctl(int devid, int cfgno)9595{9696 int cfg;9797···102102 return cfg;103103}104104105105-extern __inline__ void set_sbi_ctl(int devid, int cfgno, int cfg)105105+static inline void set_sbi_ctl(int devid, int cfgno, int cfg)106106{107107 __asm__ __volatile__ ("sta %0, [%1] %2" : :108108 "r" (cfg),
+3-3
include/asm-sparc/sbus.h
···2828 * numbers + offsets, and vice versa.2929 */30303131-extern __inline__ unsigned long sbus_devaddr(int slotnum, unsigned long offset)3131+static inline unsigned long sbus_devaddr(int slotnum, unsigned long offset)3232{3333 return (unsigned long) (SUN_SBUS_BVADDR+((slotnum)<<25)+(offset));3434}35353636-extern __inline__ int sbus_dev_slot(unsigned long dev_addr)3636+static inline int sbus_dev_slot(unsigned long dev_addr)3737{3838 return (int) (((dev_addr)-SUN_SBUS_BVADDR)>>25);3939}···80808181extern struct sbus_bus *sbus_root;82828383-extern __inline__ int8383+static inline int8484sbus_is_slave(struct sbus_dev *dev)8585{8686 /* XXX Have to write this for sun4c's */
+13-13
include/asm-sparc/smp.h
···6060#define smp_cross_call(func,arg1,arg2,arg3,arg4,arg5) BTFIXUP_CALL(smp_cross_call)(func,arg1,arg2,arg3,arg4,arg5)6161#define smp_message_pass(target,msg,data,wait) BTFIXUP_CALL(smp_message_pass)(target,msg,data,wait)62626363-extern __inline__ void xc0(smpfunc_t func) { smp_cross_call(func, 0, 0, 0, 0, 0); }6464-extern __inline__ void xc1(smpfunc_t func, unsigned long arg1)6363+static inline void xc0(smpfunc_t func) { smp_cross_call(func, 0, 0, 0, 0, 0); }6464+static inline void xc1(smpfunc_t func, unsigned long arg1)6565{ smp_cross_call(func, arg1, 0, 0, 0, 0); }6666-extern __inline__ void xc2(smpfunc_t func, unsigned long arg1, unsigned long arg2)6666+static inline void xc2(smpfunc_t func, unsigned long arg1, unsigned long arg2)6767{ smp_cross_call(func, arg1, arg2, 0, 0, 0); }6868-extern __inline__ void xc3(smpfunc_t func, unsigned long arg1, unsigned long arg2,6868+static inline void xc3(smpfunc_t func, unsigned long arg1, unsigned long arg2,6969 unsigned long arg3)7070{ smp_cross_call(func, arg1, arg2, arg3, 0, 0); }7171-extern __inline__ void xc4(smpfunc_t func, unsigned long arg1, unsigned long arg2,7171+static inline void xc4(smpfunc_t func, unsigned long arg1, unsigned long arg2,7272 unsigned long arg3, unsigned long arg4)7373{ smp_cross_call(func, arg1, arg2, arg3, arg4, 0); }7474-extern __inline__ void xc5(smpfunc_t func, unsigned long arg1, unsigned long arg2,7474+static inline void xc5(smpfunc_t func, unsigned long arg1, unsigned long arg2,7575 unsigned long arg3, unsigned long arg4, unsigned long arg5)7676{ smp_cross_call(func, arg1, arg2, arg3, arg4, arg5); }77777878-extern __inline__ int smp_call_function(void (*func)(void *info), void *info, int nonatomic, int wait)7878+static inline int smp_call_function(void (*func)(void *info), void *info, int nonatomic, int wait)7979{8080 xc1((smpfunc_t)func, (unsigned long)info);8181 return 0;···8484extern __volatile__ int __cpu_number_map[NR_CPUS];8585extern __volatile__ int __cpu_logical_map[NR_CPUS];86868787-extern __inline__ int cpu_logical_map(int cpu)8787+static inline int cpu_logical_map(int cpu)8888{8989 return __cpu_logical_map[cpu];9090}9191-extern __inline__ int cpu_number_map(int cpu)9191+static inline int cpu_number_map(int cpu)9292{9393 return __cpu_number_map[cpu];9494}95959696-extern __inline__ int hard_smp4m_processor_id(void)9696+static inline int hard_smp4m_processor_id(void)9797{9898 int cpuid;9999···104104 return cpuid;105105}106106107107-extern __inline__ int hard_smp4d_processor_id(void)107107+static inline int hard_smp4d_processor_id(void)108108{109109 int cpuid;110110···114114}115115116116#ifndef MODULE117117-extern __inline__ int hard_smp_processor_id(void)117117+static inline int hard_smp_processor_id(void)118118{119119 int cpuid;120120···136136 return cpuid;137137}138138#else139139-extern __inline__ int hard_smp_processor_id(void)139139+static inline int hard_smp_processor_id(void)140140{141141 int cpuid;142142
+4-4
include/asm-sparc/smpprim.h
···1515 * atomic.1616 */17171818-extern __inline__ __volatile__ char test_and_set(void *addr)1818+static inline __volatile__ char test_and_set(void *addr)1919{2020 char state = 0;2121···2727}28282929/* Initialize a spin-lock. */3030-extern __inline__ __volatile__ smp_initlock(void *spinlock)3030+static inline __volatile__ smp_initlock(void *spinlock)3131{3232 /* Unset the lock. */3333 *((unsigned char *) spinlock) = 0;···3636}37373838/* This routine spins until it acquires the lock at ADDR. */3939-extern __inline__ __volatile__ smp_lock(void *addr)3939+static inline __volatile__ smp_lock(void *addr)4040{4141 while(test_and_set(addr) == 0xff)4242 ;···4646}47474848/* This routine releases the lock at ADDR. */4949-extern __inline__ __volatile__ smp_unlock(void *addr)4949+static inline __volatile__ smp_unlock(void *addr)5050{5151 *((unsigned char *) addr) = 0;5252}
···204204BTFIXUPDEF_CALL(void, ___xchg32, void)205205#endif206206207207-extern __inline__ unsigned long xchg_u32(__volatile__ unsigned long *m, unsigned long val)207207+static inline unsigned long xchg_u32(__volatile__ unsigned long *m, unsigned long val)208208{209209#ifdef CONFIG_SMP210210 __asm__ __volatile__("swap [%2], %0"
+1-1
include/asm-sparc/traps.h
···2222/* We set this to _start in system setup. */2323extern struct tt_entry *sparc_ttable;24242525-extern __inline__ unsigned long get_tbr(void)2525+static inline unsigned long get_tbr(void)2626{2727 unsigned long tbr;2828