The patch titled NOMMU: supply get_unmapped_area() to fix NOMMU SYSV SHM has been removed from the -mm tree. Its filename was nommu-supply-get_unmapped_area-to-fix-nommu-sysv-shm.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ Subject: NOMMU: supply get_unmapped_area() to fix NOMMU SYSV SHM From: David Howells <dhowells@xxxxxxxxxx> Supply a get_unmapped_area() to fix NOMMU SYSV SHM support. Signed-off-by: David Howells <dhowells@xxxxxxxxxx> Acked-by: Adam Litke <agl@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/nommu.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff -puN mm/nommu.c~nommu-supply-get_unmapped_area-to-fix-nommu-sysv-shm mm/nommu.c --- a/mm/nommu.c~nommu-supply-get_unmapped_area-to-fix-nommu-sysv-shm +++ a/mm/nommu.c @@ -1193,6 +1193,28 @@ void unmap_mapping_range(struct address_ EXPORT_SYMBOL(unmap_mapping_range); /* + * ask for an unmapped area at which to create a mapping on a file + */ +unsigned long get_unmapped_area(struct file *file, unsigned long addr, + unsigned long len, unsigned long pgoff, + unsigned long flags) +{ + unsigned long (*get_area)(struct file *, unsigned long, unsigned long, + unsigned long, unsigned long); + + get_area = current->mm->get_unmapped_area; + if (file && file->f_op && file->f_op->get_unmapped_area) + get_area = file->f_op->get_unmapped_area; + + if (!get_area) + return -ENOSYS; + + return get_area(file, addr, len, pgoff, flags); +} + +EXPORT_SYMBOL(get_unmapped_area); + +/* * Check that a process has enough memory to allocate a new virtual * mapping. 0 means there is enough memory for the allocation to * succeed and -ENOMEM implies there is not. _ Patches currently in -mm which might be from dhowells@xxxxxxxxxx are nommu-present-backing-device-capabilities-for-mtd.patch nommu-add-support-for-direct-mapping-through-mtdconcat.patch nommu-generalise-the-handling-of-mtd-specific-superblocks.patch nommu-make-it-possible-for-romfs-to-use-mtd-devices.patch romfs-printk-format-warnings.patch nommu-hide-vm_mm-in-nommu-mode.patch doc-atomic_add_unless-doesnt-imply-mb-on-failure.patch kill-net-rxrpc-rxrpc_symsc.patch use-symbolic-constants-in-generic-lseek-code.patch use-use-seek_max-to-validate-user-lseek-arguments.patch kconfig-centralize-the-selection-of-semaphore-debugging.patch aio-use-flush_work.patch kblockd-use-flush_work.patch relayfs-use-flush_keventd_work.patch tg3-use-flush_keventd_work.patch e1000-use-flush_keventd_work.patch libata-use-flush_work.patch phy-use-flush_work.patch workqueue-kill-noautorel-works.patch mutex-subsystem-synchro-test-module.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html