Skip to content

Commit

Permalink
include/asm-generic/pgtable-nopmd.h: macros are noxious, reason torva…
Browse files Browse the repository at this point in the history
…lds#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>
  • Loading branch information
akpm00 authored and torvalds committed Jul 28, 2008
1 parent c27ef92 commit 34ee550
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/asm-generic/pgtable-nopmd.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

#include <asm-generic/pgtable-nopud.h>

struct mm_struct;

#define __PAGETABLE_PMD_FOLDED

/*
Expand Down Expand Up @@ -54,7 +56,9 @@ static inline pmd_t * pmd_offset(pud_t * pud, unsigned long address)
* inside the pud, so has no extra memory associated with it.
*/
#define pmd_alloc_one(mm, address) NULL
#define pmd_free(mm, x) do { } while (0)
static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd)
{
}
#define __pmd_free_tlb(tlb, x) do { } while (0)

#undef pmd_addr_end
Expand Down

0 comments on commit 34ee550

Please sign in to comment.