--- zzzz-none-000/linux-2.6.32.60/include/asm-generic/pgtable-nopmd.h 2012-10-07 21:41:24.000000000 +0000 +++ ur8-7270-606/linux-2.6.32.60/include/asm-generic/pgtable-nopmd.h 2010-07-16 10:24:07.000000000 +0000 @@ -26,10 +26,10 @@ * setup: the pmd is never bad, and a pmd always exists (as it's folded * into the pud entry) */ -static inline int pud_none(pud_t pud) { return 0; } -static inline int pud_bad(pud_t pud) { return 0; } -static inline int pud_present(pud_t pud) { return 1; } -static inline void pud_clear(pud_t *pud) { } +static inline int pud_none(pud_t pud __attribute__ ((unused))) { return 0; } +static inline int pud_bad(pud_t pud __attribute__ ((unused))) { return 0; } +static inline int pud_present(pud_t pud __attribute__ ((unused))) { return 1; } +static inline void pud_clear(pud_t *pud __attribute__ ((unused))) { } #define pmd_ERROR(pmd) (pud_ERROR((pmd).pud)) #define pud_populate(mm, pmd, pte) do { } while (0) @@ -40,7 +40,7 @@ */ #define set_pud(pudptr, pudval) set_pmd((pmd_t *)(pudptr), (pmd_t) { pudval }) -static inline pmd_t * pmd_offset(pud_t * pud, unsigned long address) +static inline pmd_t * pmd_offset(pud_t * pud, unsigned long address __attribute__ ((unused))) { return (pmd_t *)pud; } @@ -56,7 +56,7 @@ * inside the pud, so has no extra memory associated with it. */ #define pmd_alloc_one(mm, address) NULL -static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) +static inline void pmd_free(struct mm_struct *mm __attribute__ ((unused)), pmd_t *pmd __attribute__ ((unused))) { } #define __pmd_free_tlb(tlb, x, a) do { } while (0)