From: Minchan Kim <minchan@kernel.org>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-mm@kvack.org, Minchan Kim <minchan@kernel.org>,
Sagi Grimberg <sagig@mellanox.com>,
Haggai Eran <haggaie@mellanox.com>
Subject: [PATCH] mm: Fix compile warning of mmotm-2012-09-06-16-46
Date: Fri, 7 Sep 2012 09:57:10 +0900 [thread overview]
Message-ID: <1346979430-23110-1-git-send-email-minchan@kernel.org> (raw)
When I compiled today, I met following warning.
Correct it.
mm/memory.c: In function a??copy_page_rangea??:
include/linux/mmu_notifier.h:235:38: warning: a??mmun_enda?? may be used uninitialized in this function [-Wuninitialized]
mm/memory.c:1043:16: note: a??mmun_enda?? was declared here
include/linux/mmu_notifier.h:235:38: warning: a??mmun_starta?? may be used uninitialized in this function [-Wuninitialized]
mm/memory.c:1042:16: note: a??mmun_starta?? was declared here
LD mm/built-in.o
Cc: Sagi Grimberg <sagig@mellanox.com>
Cc: Haggai Eran <haggaie@mellanox.com>
Signed-off-by: Minchan Kim <minchan@kernel.org>
---
mm/memory.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mm/memory.c b/mm/memory.c
index 10e9b38..d000449 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -1039,8 +1039,8 @@ int copy_page_range(struct mm_struct *dst_mm, struct mm_struct *src_mm,
unsigned long next;
unsigned long addr = vma->vm_start;
unsigned long end = vma->vm_end;
- unsigned long mmun_start; /* For mmu_notifiers */
- unsigned long mmun_end; /* For mmu_notifiers */
+ unsigned long uninitialized_var(mmun_start); /* For mmu_notifiers */
+ unsigned long uninitialized_var(mmun_end); /* For mmu_notifiers */
int ret;
/*
--
1.7.9.5
--
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>
next reply other threads:[~2012-09-07 0:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-07 0:57 Minchan Kim [this message]
2012-09-07 20:06 ` [PATCH] mm: Fix compile warning of mmotm-2012-09-06-16-46 Andrew Morton
2012-09-09 6:57 ` Haggai Eran
2012-09-10 11:40 ` [PATCH] mm: Fix compiler warning in copy_page_range Haggai Eran
2012-09-11 6:21 ` Minchan Kim
2012-09-10 1:14 ` [PATCH] mm: Fix compile warning of mmotm-2012-09-06-16-46 Minchan Kim
2012-09-10 1:15 ` Minchan Kim
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1346979430-23110-1-git-send-email-minchan@kernel.org \
--to=minchan@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=haggaie@mellanox.com \
--cc=linux-mm@kvack.org \
--cc=sagig@mellanox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).