linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] x86: remove unused variable pmd warning
@ 2008-07-28 17:23 Andrea Righi
  0 siblings, 0 replies; only message in thread
From: Andrea Righi @ 2008-07-28 17:23 UTC (permalink / raw)
  To: torvalds; +Cc: akpm, linux-mm, linux-kernel, Andrea Righi

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

    arch/x86/mm/pgtable.c: In function a??pgd_mop_up_pmdsa??:
    arch/x86/mm/pgtable.c:194: warning: unused variable a??pmda??

Signed-off-by: Andrea Righi <righi.andrea@gmail.com>
---
 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, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-07-28 17:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-28 17:23 [PATCH 1/1] x86: remove unused variable pmd warning Andrea Righi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox