On Mon, Jul 09, 2012 at 09:46:39AM -0500, Nathan Zimmer wrote:+static unsigned long shmem_interleave(struct vm_area_struct *vma,Should this be?:
+ unsigned long addr)
+{
+ 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 is an unsigned long, not a pointer. ->vm_private_data is a
void pointer.
It causes a GCC warning:
mm/shmem.c: In function âshmem_interleaveâ:
mm/shmem.c:1341:9: warning: assignment makes integer from pointer without a cast [enabled by default]
+regards,
+ offset += ((addr - vma->vm_start) >> PAGE_SHIFT) + vma->vm_pgoff;
+
+ return offset;
+}
#endif
dan carpenter
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxxx For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>