[tip:x86/mm] x86, mm: Fix incorrect data type in vmalloc_sync_all()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: tip-bot for tip-bot for Jeremy Fitzhardinge
Date: Wednesday, October 20, 2010 - 12:31 pm

Commit-ID:  bfac67208d6d2a84fe7980187d3d2f21424dde59
Gitweb:     http://git.kernel.org/tip/bfac67208d6d2a84fe7980187d3d2f21424dde59
Author:     tip-bot for Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
AuthorDate: Tue, 19 Oct 2010 22:17:37 +0000
Committer:  H. Peter Anvin <hpa@linux.intel.com>
CommitDate: Wed, 20 Oct 2010 11:53:10 -0700

x86, mm: Fix incorrect data type in vmalloc_sync_all()

arch/x86/mm/fault.c: In function 'vmalloc_sync_all':
arch/x86/mm/fault.c:238: warning: assignment makes integer from pointer without a cast

introduced by 617d34d9e5d8326ec8f188c616aa06ac59d083fe.

Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
LKML-Reference: <20101020103642.GA3135@kryptos.osrc.amd.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
---
 arch/x86/mm/fault.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/x86/mm/fault.c b/arch/x86/mm/fault.c
index 6c27c39..0cdb8d4 100644
--- a/arch/x86/mm/fault.c
+++ b/arch/x86/mm/fault.c
@@ -230,7 +230,7 @@ void vmalloc_sync_all(void)
 		spin_lock_irqsave(&pgd_lock, flags);
 		list_for_each_entry(page, &pgd_list, lru) {
 			spinlock_t *pgt_lock;
-			int ret;
+			pmd_t *ret;
 
 			pgt_lock = &pgd_page_get_mm(page)->page_table_lock;
 
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] x86: hold mm-&gt;page_table_lock while doing vmalloc_sync, Jeremy Fitzhardinge, (Thu Oct 14, 1:56 pm)
Re: [Xen-devel] [PATCH] x86: hold mm-&gt;page_table_lock whil ..., Jeremy Fitzhardinge, (Fri Oct 15, 10:07 am)
[tip:x86/mm] x86, mm: Hold mm-&gt;page_table_lock while doing ..., tip-bot for Jeremy F ..., (Tue Oct 19, 3:17 pm)
[tip:x86/mm] x86, mm: Fix incorrect data type in vmalloc_s ..., tip-bot for tip-bot ..., (Wed Oct 20, 12:31 pm)
[tip:x86/mm] x86, mm: Fix incorrect data type in vmalloc_s ..., tip-bot for Borislav ..., (Wed Oct 20, 12:58 pm)
Re: [PATCH] x86: hold mm-&gt;page_table_lock while doing vmal ..., Jeremy Fitzhardinge, (Thu Oct 21, 2:06 pm)