aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-parisc/pgtable.h
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/asm-parisc/pgtable.h
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/asm-parisc/pgtable.h')
-rw-r--r--include/asm-parisc/pgtable.h32
1 files changed, 16 insertions, 16 deletions
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. */