aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2007-10-16 17:24:59 -0400
committerKyle McMartin <kyle@shortfin.cabal.ca>2007-10-18 03:58:41 -0400
commitf13cec8447f18cca3a0feb4b83b7ba6fae9e59ae (patch)
treeab42ee63ed1a108262c9a7267fa7e36d8a9e923d /include
parent0ed5462927211286502576142bd322d850b49a86 (diff)
[PARISC] parisc: "extern inline" -> "static inline"
"extern inline" will have different semantics with gcc 4.3, and "static inline" is correct here. Signed-off-by: Adrian Bunk <bunk@stusta.de> Cc: Matthew Wilcox <willy@debian.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
Diffstat (limited to 'include')
-rw-r--r--include/asm-parisc/io.h2
-rw-r--r--include/asm-parisc/pci.h2
-rw-r--r--include/asm-parisc/pgtable.h32
-rw-r--r--include/asm-parisc/prefetch.h4
-rw-r--r--include/asm-parisc/semaphore.h10
-rw-r--r--include/asm-parisc/tlbflush.h2
6 files changed, 26 insertions, 26 deletions
diff --git a/include/asm-parisc/io.h b/include/asm-parisc/io.h
index 95f00e11c7b4..55ddb1842107 100644
--- a/include/asm-parisc/io.h
+++ b/include/asm-parisc/io.h
@@ -138,7 +138,7 @@ extern void __iomem * __ioremap(unsigned long offset, unsigned long size, unsign
138/* Most machines react poorly to I/O-space being cacheable... Instead let's 138/* Most machines react poorly to I/O-space being cacheable... Instead let's
139 * define ioremap() in terms of ioremap_nocache(). 139 * define ioremap() in terms of ioremap_nocache().
140 */ 140 */
141extern inline void __iomem * ioremap(unsigned long offset, unsigned long size) 141static inline void __iomem * ioremap(unsigned long offset, unsigned long size)
142{ 142{
143 return __ioremap(offset, size, _PAGE_NO_CACHE); 143 return __ioremap(offset, size, _PAGE_NO_CACHE);
144} 144}
diff --git a/include/asm-parisc/pci.h b/include/asm-parisc/pci.h
index 61fbd57a8323..4ba868f44a5e 100644
--- a/include/asm-parisc/pci.h
+++ b/include/asm-parisc/pci.h
@@ -207,7 +207,7 @@ extern struct pci_bios_ops *pci_bios;
207extern void pcibios_register_hba(struct pci_hba_data *); 207extern void pcibios_register_hba(struct pci_hba_data *);
208extern void pcibios_set_master(struct pci_dev *); 208extern void pcibios_set_master(struct pci_dev *);
209#else 209#else
210extern inline void pcibios_register_hba(struct pci_hba_data *x) 210static inline void pcibios_register_hba(struct pci_hba_data *x)
211{ 211{
212} 212}
213#endif 213#endif
diff --git a/include/asm-parisc/pgtable.h b/include/asm-parisc/pgtable.h
index e88cacd63724..33ed0e73227b 100644
--- a/include/asm-parisc/pgtable.h
+++ b/include/asm-parisc/pgtable.h
@@ -325,27 +325,27 @@ static inline void pgd_clear(pgd_t *pgd) {
325 * setup: the pgd is never bad, and a pmd always exists (as it's folded 325 * setup: the pgd is never bad, and a pmd always exists (as it's folded
326 * into the pgd entry) 326 * into the pgd entry)
327 */ 327 */
328extern inline int pgd_none(pgd_t pgd) { return 0; } 328static inline int pgd_none(pgd_t pgd) { return 0; }
329extern inline int pgd_bad(pgd_t pgd) { return 0; } 329static inline int pgd_bad(pgd_t pgd) { return 0; }
330extern inline int pgd_present(pgd_t pgd) { return 1; } 330static inline int pgd_present(pgd_t pgd) { return 1; }
331extern inline void pgd_clear(pgd_t * pgdp) { } 331static inline void pgd_clear(pgd_t * pgdp) { }
332#endif 332#endif
333 333
334/* 334/*
335 * The following only work if pte_present() is true. 335 * The following only work if pte_present() is true.
336 * Undefined behaviour if not.. 336 * Undefined behaviour if not..
337 */ 337 */
338extern inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } 338static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; }
339extern inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } 339static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; }
340extern inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } 340static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; }
341extern inline int pte_file(pte_t pte) { return pte_val(pte) & _PAGE_FILE; } 341static inline int pte_file(pte_t pte) { return pte_val(pte) & _PAGE_FILE; }
342 342
343extern inline pte_t pte_mkclean(pte_t pte) { pte_val(pte) &= ~_PAGE_DIRTY; return pte; } 343static inline pte_t pte_mkclean(pte_t pte) { pte_val(pte) &= ~_PAGE_DIRTY; return pte; }
344extern inline pte_t pte_mkold(pte_t pte) { pte_val(pte) &= ~_PAGE_ACCESSED; return pte; } 344static inline pte_t pte_mkold(pte_t pte) { pte_val(pte) &= ~_PAGE_ACCESSED; return pte; }
345extern inline pte_t pte_wrprotect(pte_t pte) { pte_val(pte) &= ~_PAGE_WRITE; return pte; } 345static inline pte_t pte_wrprotect(pte_t pte) { pte_val(pte) &= ~_PAGE_WRITE; return pte; }
346extern inline pte_t pte_mkdirty(pte_t pte) { pte_val(pte) |= _PAGE_DIRTY; return pte; } 346static inline pte_t pte_mkdirty(pte_t pte) { pte_val(pte) |= _PAGE_DIRTY; return pte; }
347extern inline pte_t pte_mkyoung(pte_t pte) { pte_val(pte) |= _PAGE_ACCESSED; return pte; } 347static inline pte_t pte_mkyoung(pte_t pte) { pte_val(pte) |= _PAGE_ACCESSED; return pte; }
348extern inline pte_t pte_mkwrite(pte_t pte) { pte_val(pte) |= _PAGE_WRITE; return pte; } 348static inline pte_t pte_mkwrite(pte_t pte) { pte_val(pte) |= _PAGE_WRITE; return pte; }
349 349
350/* 350/*
351 * Conversion functions: convert a page and protection to a page entry, 351 * Conversion functions: convert a page and protection to a page entry,
@@ -369,7 +369,7 @@ static inline pte_t pfn_pte(unsigned long pfn, pgprot_t pgprot)
369 return pte; 369 return pte;
370} 370}
371 371
372extern inline pte_t pte_modify(pte_t pte, pgprot_t newprot) 372static inline pte_t pte_modify(pte_t pte, pgprot_t newprot)
373{ pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); return pte; } 373{ pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); return pte; }
374 374
375/* Permanent address of a page. On parisc we don't have highmem. */ 375/* Permanent address of a page. On parisc we don't have highmem. */
diff --git a/include/asm-parisc/prefetch.h b/include/asm-parisc/prefetch.h
index 5d021726fa33..c5edc60c059f 100644
--- a/include/asm-parisc/prefetch.h
+++ b/include/asm-parisc/prefetch.h
@@ -19,7 +19,7 @@
19#ifdef CONFIG_PREFETCH 19#ifdef CONFIG_PREFETCH
20 20
21#define ARCH_HAS_PREFETCH 21#define ARCH_HAS_PREFETCH
22extern inline void prefetch(const void *addr) 22static inline void prefetch(const void *addr)
23{ 23{
24 __asm__("ldw 0(%0), %%r0" : : "r" (addr)); 24 __asm__("ldw 0(%0), %%r0" : : "r" (addr));
25} 25}
@@ -27,7 +27,7 @@ extern inline void prefetch(const void *addr)
27/* LDD is a PA2.0 addition. */ 27/* LDD is a PA2.0 addition. */
28#ifdef CONFIG_PA20 28#ifdef CONFIG_PA20
29#define ARCH_HAS_PREFETCHW 29#define ARCH_HAS_PREFETCHW
30extern inline void prefetchw(const void *addr) 30static inline void prefetchw(const void *addr)
31{ 31{
32 __asm__("ldd 0(%0), %%r0" : : "r" (addr)); 32 __asm__("ldd 0(%0), %%r0" : : "r" (addr));
33} 33}
diff --git a/include/asm-parisc/semaphore.h b/include/asm-parisc/semaphore.h
index b771dcfcfdd1..a16271cdc748 100644
--- a/include/asm-parisc/semaphore.h
+++ b/include/asm-parisc/semaphore.h
@@ -54,7 +54,7 @@ struct semaphore {
54 54
55#define DECLARE_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name,1) 55#define DECLARE_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name,1)
56 56
57extern inline void sema_init (struct semaphore *sem, int val) 57static inline void sema_init (struct semaphore *sem, int val)
58{ 58{
59 *sem = (struct semaphore)__SEMAPHORE_INITIALIZER((*sem),val); 59 *sem = (struct semaphore)__SEMAPHORE_INITIALIZER((*sem),val);
60} 60}
@@ -82,7 +82,7 @@ asmlinkage void __up(struct semaphore * sem);
82 * interrupts while we're messing with the semaphore. Sorry. 82 * interrupts while we're messing with the semaphore. Sorry.
83 */ 83 */
84 84
85extern __inline__ void down(struct semaphore * sem) 85static inline void down(struct semaphore * sem)
86{ 86{
87 might_sleep(); 87 might_sleep();
88 spin_lock_irq(&sem->sentry); 88 spin_lock_irq(&sem->sentry);
@@ -94,7 +94,7 @@ extern __inline__ void down(struct semaphore * sem)
94 spin_unlock_irq(&sem->sentry); 94 spin_unlock_irq(&sem->sentry);
95} 95}
96 96
97extern __inline__ int down_interruptible(struct semaphore * sem) 97static inline int down_interruptible(struct semaphore * sem)
98{ 98{
99 int ret = 0; 99 int ret = 0;
100 might_sleep(); 100 might_sleep();
@@ -112,7 +112,7 @@ extern __inline__ int down_interruptible(struct semaphore * sem)
112 * down_trylock returns 0 on success, 1 if we failed to get the lock. 112 * down_trylock returns 0 on success, 1 if we failed to get the lock.
113 * May not sleep, but must preserve irq state 113 * May not sleep, but must preserve irq state
114 */ 114 */
115extern __inline__ int down_trylock(struct semaphore * sem) 115static inline int down_trylock(struct semaphore * sem)
116{ 116{
117 unsigned long flags; 117 unsigned long flags;
118 int count; 118 int count;
@@ -129,7 +129,7 @@ extern __inline__ int down_trylock(struct semaphore * sem)
129 * Note! This is subtle. We jump to wake people up only if 129 * Note! This is subtle. We jump to wake people up only if
130 * the semaphore was negative (== somebody was waiting on it). 130 * the semaphore was negative (== somebody was waiting on it).
131 */ 131 */
132extern __inline__ void up(struct semaphore * sem) 132static inline void up(struct semaphore * sem)
133{ 133{
134 unsigned long flags; 134 unsigned long flags;
135 135
diff --git a/include/asm-parisc/tlbflush.h b/include/asm-parisc/tlbflush.h
index 270cf309772b..7758ee3832af 100644
--- a/include/asm-parisc/tlbflush.h
+++ b/include/asm-parisc/tlbflush.h
@@ -57,7 +57,7 @@ static inline void flush_tlb_mm(struct mm_struct *mm)
57#endif 57#endif
58} 58}
59 59
60extern __inline__ void flush_tlb_pgtables(struct mm_struct *mm, unsigned long start, unsigned long end) 60static inline void flush_tlb_pgtables(struct mm_struct *mm, unsigned long start, unsigned long end)
61{ 61{
62} 62}
63 63