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