On Saturday 02 July 2011, Jonas Bonn wrote: > + > +asmlinkage long sys_mmap2(unsigned long addr, unsigned long len, > + unsigned long prot, unsigned long flags, > + unsigned long fd, unsigned long pgoff) > +{ > + return sys_mmap_pgoff(addr, len, prot, flags, fd, pgoff); > +} > + > +asmlinkage long sys_mmap(unsigned long addr, unsigned long len, > + unsigned long prot, unsigned long flags, > + unsigned long fd, off_t pgoff) > +{ > + if (pgoff & ~PAGE_MASK) > + return -EINVAL; > + > + return sys_mmap_pgoff(addr, len, prot, flags, fd, pgoff >> PAGE_SHIFT); > +} You shouldn't really need these two. Either provide just sys_mmap2, or "#define sys_mmap2 sys_mmap_pgoff" and change your user implementation. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-arch" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html