include/asm-generic/pgtable-nopmd.h: macros are noxious, reason #435

arch/x86/mm/pgtable.c: In function 'pgd_mop_up_pmds':
arch/x86/mm/pgtable.c:194: warning: unused variable 'pmd'

Cc: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by Andrew Morton and committed by Linus Torvalds 34ee5501 c27ef92d

+5 -1
+5 -1
include/asm-generic/pgtable-nopmd.h
··· 5 6 #include <asm-generic/pgtable-nopud.h> 7 8 #define __PAGETABLE_PMD_FOLDED 9 10 /* ··· 56 * inside the pud, so has no extra memory associated with it. 57 */ 58 #define pmd_alloc_one(mm, address) NULL 59 - #define pmd_free(mm, x) do { } while (0) 60 #define __pmd_free_tlb(tlb, x) do { } while (0) 61 62 #undef pmd_addr_end
··· 5 6 #include <asm-generic/pgtable-nopud.h> 7 8 + struct mm_struct; 9 + 10 #define __PAGETABLE_PMD_FOLDED 11 12 /* ··· 54 * inside the pud, so has no extra memory associated with it. 55 */ 56 #define pmd_alloc_one(mm, address) NULL 57 + static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) 58 + { 59 + } 60 #define __pmd_free_tlb(tlb, x) do { } while (0) 61 62 #undef pmd_addr_end