Skip to contentSkip to conversation

shmem: correct build warning in shmem interleave

PATCH New Nathan Zimmer 1 participant 1 message Jul 23, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 shmem: correct build warning in shmem interleave

Correcting a build warning in shmem_interleave

---
 mm/shmem.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
mm/shmem.c +1 -1
index cee03c0..a38960b 100644
@@ -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;
 
Signature · 7 lines
1.6.0.2

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>