uml-patch-2.6.0-test5
Subsystems (4)
Applied to linux-2.6.0-test5-mm1, compile fails with
arch/i386/kernel/sys_i386.c: In function `do_mmap2':arch/i386/kernel/sys_i386.c:59: warning: passing arg 1 of do_mmap_pgoff' from incompatible pointer type arch/i386/kernel/sys_i386.c:59: warning: passing arg 2 of do_mmap_pgoff' makes pointer from integer without a cast arch/i386/kernel/sys_i386.c:59: error: too few arguments to function `do_mmap_pgoff'
make[1]: *** [arch/i386/kernel/sys_i386.o] Error 1
make: *** [arch/i386/kernel] Error 2
Seems all the do_mmap_pgoff's will fail with the change made in mmap.c.While I understand the change is to enable compilation of a uml kernel, it really shouldn't break the normal compiles as well, should it?
Regards,
Gio
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 4 lines · Paul Giordano
Seems all the do_mmap_pgoff's will fail with the change made in mmap.c.While I understand the change is to enable compilation of a uml kernel, it really shouldn't break the normal compiles as well, should it?
Patch below should fix that. At least it did for the -test3 patch :)
Gerd
==============================[ cut here ]==============================
arch/um/kernel/syscall_kern.c +1 -1
@@ -81,7 +81,7 @@ }down_write (&mm->mmap_sem); - error =do_mmap_pgoff (mm, file, addr, len, prot, flags, pgoff); + error =__do_mmap_pgoff (mm, file, addr, len, prot, flags, pgoff);up_write (&mm->mmap_sem);if (file)
include/linux/mm.h +13 -6
@@ -516,10 +516,18 @@extern unsigned long get_unmapped_area (struct file *,unsigned long ,unsigned long ,unsigned long ,unsigned long ); -extern unsigned long do_mmap_pgoff (struct mm_struct *mm,struct file *file, -unsigned long addr,unsigned long len, -unsigned long prot,unsigned long flag, -unsigned long pgoff); +extern unsigned long __do_mmap_pgoff (struct mm_struct *mm, +struct file *file,unsigned long addr, +unsigned long len,unsigned long prot, +unsigned long flag,unsigned long pgoff); + +static inline unsigned long do_mmap_pgoff (struct file *file,unsigned long addr, +unsigned long len,unsigned long prot, +unsigned long flag,unsigned long pgoff) +{ +return __do_mmap_pgoff (current->mm, file, addr, len, + prot, flag, pgoff); +} static inline unsigned long do_mmap(struct file *file, unsigned long addr, unsigned long len, unsigned long prot,
@@ -529,8 +537,7 @@if ((offset +PAGE_ALIGN (len)) < offset) goto out;if (!(offset & ~PAGE_MASK )) - ret =do_mmap_pgoff (current->mm, file, addr, len, prot, flag, - offset >>PAGE_SHIFT ); + ret =do_mmap_pgoff (file, addr, len, prot, flag, offset >>PAGE_SHIFT ); out:return ret; }
mm/mmap.c +1 -1
@@ -457,7 +457,7 @@* The caller must hold down_write(current->mm->mmap_sem). */ -unsigned long do_mmap_pgoff (struct mm_struct *mm,struct file * file, +unsigned long __do_mmap_pgoff (struct mm_struct *mm,struct file * file,unsigned long addr,unsigned long len,unsigned long prot,unsigned long flags,unsigned long pgoff)
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel