From: Nathan Zimmer <nzimmer@sgi.com>
Cc: akpm@linux-foundation.org, linux-mm@kvack.org,
dan.carpenter@oracle.com, Nathan Zimmer <nzimmer@sgi.com>
Subject: [PATCH mmotm] shmem: correct build warning in shmem interleave
Date: Mon, 23 Jul 2012 14:53:31 -0500 [thread overview]
Message-ID: <1343073211-31746-1-git-send-email-nzimmer@sgi.com> (raw)
Correcting a build warning in shmem_interleave
Signed-off-by: Nathan Zimmer <nzimmer@sgi.com>
---
mm/shmem.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/mm/shmem.c b/mm/shmem.c
index cee03c0..a38960b 100644
--- a/mm/shmem.c
+++ b/mm/shmem.c
@@ -1338,7 +1338,7 @@ static unsigned long shmem_interleave(struct vm_area_struct *vma,
unsigned long offset;
/* Use the vm_files prefered node as the initial offset. */
- offset = (unsigned long *) vma->vm_private_data;
+ offset = (unsigned long)vma->vm_private_data;
offset += ((addr - vma->vm_start) >> PAGE_SHIFT) + vma->vm_pgoff;
--
1.6.0.2
--
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>
reply other threads:[~2012-07-23 19:53 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1343073211-31746-1-git-send-email-nzimmer@sgi.com \
--to=nzimmer@sgi.com \
--cc=akpm@linux-foundation.org \
--cc=dan.carpenter@oracle.com \
--cc=linux-mm@kvack.org \
/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).