x86, mm: Fix incorrect data type in vmalloc_sync_all()
authorBorislav Petkov <borislav.petkov@amd.com>
Tue, 19 Oct 2010 22:17:37 +0000 (22:17 +0000)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 20 Oct 2010 19:54:04 +0000 (12:54 -0700)
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

index 6c27c39f8a37577f6fe705223caf3a596ca858cc..0cdb8d493f6117a882e8d1a9f835f2c6c6dffeb8 100644 (file)
@@ -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;