From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail172.messagelabs.com (mail172.messagelabs.com [216.82.254.3]) by kanga.kvack.org (Postfix) with SMTP id 65FD36B0089 for ; Tue, 15 Sep 2009 17:19:56 -0400 (EDT) Date: Tue, 15 Sep 2009 22:19:07 +0100 (BST) From: Hugh Dickins Subject: [PATCH] hwpoison: fix uninitialized warning Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org To: Andi Kleen Cc: Wu Fengguang , Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org List-ID: Fix mmotm build warning, presumably also in linux-next: mm/memory.c: In function `do_swap_page': mm/memory.c:2498: warning: `pte' may be used uninitialized in this function Signed-off-by: Hugh Dickins --- I've only noticed this warning on one machine, the powerpc: certainly it needs CONFIG_MIGRATION or CONFIG_MEMORY_FAILURE to see it, but I thought I had one of those set on other machines - just musing in case it's being masked elsewhere by some other bug... mm/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- mmotm/mm/memory.c 2009-09-14 16:34:37.000000000 +0100 +++ linux/mm/memory.c 2009-09-15 22:00:48.000000000 +0100 @@ -2495,7 +2495,7 @@ static int do_swap_page(struct mm_struct } else if (is_hwpoison_entry(entry)) { ret = VM_FAULT_HWPOISON; } else { - print_bad_pte(vma, address, pte, NULL); + print_bad_pte(vma, address, orig_pte, NULL); ret = VM_FAULT_OOM; } goto out; -- 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: email@kvack.org