ChangeSet 1.2024, 2005/03/08 09:23:39-08:00, [EMAIL PROTECTED]
[PATCH] x86_64 pte warning fix
include/asm/pgtable.h:267: warning: `struct vm_area_struct' declared
inside parameter list
include/asm/pgtable.h:267: warning: its scope is only this definition
or declaration, which is probably not what you want
Cc: Andi Kleen <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
pgtable.h | 2 ++
1 files changed, 2 insertions(+)
diff -Nru a/include/asm-x86_64/pgtable.h b/include/asm-x86_64/pgtable.h
--- a/include/asm-x86_64/pgtable.h 2005-03-08 11:10:28 -08:00
+++ b/include/asm-x86_64/pgtable.h 2005-03-08 11:10:28 -08:00
@@ -264,6 +264,8 @@
extern inline pte_t pte_mkyoung(pte_t pte) { set_pte(&pte,
__pte(pte_val(pte) | _PAGE_ACCESSED)); return pte; }
extern inline pte_t pte_mkwrite(pte_t pte) { set_pte(&pte,
__pte(pte_val(pte) | _PAGE_RW)); return pte; }
+struct vm_area_struct;
+
static inline int ptep_test_and_clear_dirty(struct vm_area_struct *vma,
unsigned long addr, pte_t *ptep)
{
if (!pte_dirty(*ptep))
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html