diff options
author | Adrian Bunk <bunk@stusta.de> | 2007-10-16 17:24:59 -0400 |
---|---|---|
committer | Kyle McMartin <kyle@shortfin.cabal.ca> | 2007-10-18 03:58:41 -0400 |
commit | f13cec8447f18cca3a0feb4b83b7ba6fae9e59ae (patch) | |
tree | ab42ee63ed1a108262c9a7267fa7e36d8a9e923d /include/asm-parisc/pgtable.h | |
parent | 0ed5462927211286502576142bd322d850b49a86 (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.h | 32 |
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 | */ |
328 | extern inline int pgd_none(pgd_t pgd) { return 0; } | 328 | static inline int pgd_none(pgd_t pgd) { return 0; } |
329 | extern inline int pgd_bad(pgd_t pgd) { return 0; } | 329 | static inline int pgd_bad(pgd_t pgd) { return 0; } |
330 | extern inline int pgd_present(pgd_t pgd) { return 1; } | 330 | static inline int pgd_present(pgd_t pgd) { return 1; } |
331 | extern inline void pgd_clear(pgd_t * pgdp) { } | 331 | static 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 | */ |
338 | extern inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } | 338 | static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } |
339 | extern inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } | 339 | static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } |
340 | extern inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } | 340 | static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } |
341 | extern inline int pte_file(pte_t pte) { return pte_val(pte) & _PAGE_FILE; } | 341 | static inline int pte_file(pte_t pte) { return pte_val(pte) & _PAGE_FILE; } |
342 | 342 | ||
343 | extern inline pte_t pte_mkclean(pte_t pte) { pte_val(pte) &= ~_PAGE_DIRTY; return pte; } | 343 | static inline pte_t pte_mkclean(pte_t pte) { pte_val(pte) &= ~_PAGE_DIRTY; return pte; } |
344 | extern inline pte_t pte_mkold(pte_t pte) { pte_val(pte) &= ~_PAGE_ACCESSED; return pte; } | 344 | static inline pte_t pte_mkold(pte_t pte) { pte_val(pte) &= ~_PAGE_ACCESSED; return pte; } |
345 | extern inline pte_t pte_wrprotect(pte_t pte) { pte_val(pte) &= ~_PAGE_WRITE; return pte; } | 345 | static inline pte_t pte_wrprotect(pte_t pte) { pte_val(pte) &= ~_PAGE_WRITE; return pte; } |
346 | extern inline pte_t pte_mkdirty(pte_t pte) { pte_val(pte) |= _PAGE_DIRTY; return pte; } | 346 | static inline pte_t pte_mkdirty(pte_t pte) { pte_val(pte) |= _PAGE_DIRTY; return pte; } |
347 | extern inline pte_t pte_mkyoung(pte_t pte) { pte_val(pte) |= _PAGE_ACCESSED; return pte; } | 347 | static inline pte_t pte_mkyoung(pte_t pte) { pte_val(pte) |= _PAGE_ACCESSED; return pte; } |
348 | extern inline pte_t pte_mkwrite(pte_t pte) { pte_val(pte) |= _PAGE_WRITE; return pte; } | 348 | static 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 | ||
372 | extern inline pte_t pte_modify(pte_t pte, pgprot_t newprot) | 372 | static 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. */ |