[PATCH 1/1] x86: remove unused variable pmd warning

From: Andrea Righi
Date: Mon Jul 28 2008 - 13:24:10 EST


Remove the following warning on x86 when CONFIG_X86_PAE is not set:

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

Signed-off-by: Andrea Righi <righi.andrea@xxxxxxxxx>
---
include/asm-generic/pgtable-nopmd.h | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/include/asm-generic/pgtable-nopmd.h b/include/asm-generic/pgtable-nopmd.h
index 087325e..fe9c96b 100644
--- a/include/asm-generic/pgtable-nopmd.h
+++ b/include/asm-generic/pgtable-nopmd.h
@@ -54,7 +54,10 @@ 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)
+struct mm_struct;
+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
--
1.5.4.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/