All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matt Mackall <mpm@selenic.com>
To: Andrew Morton <akpm@linux-foundation.org>,
	Hugh Dickins <hugh@veritas.com>, dhowells <dhowells@redhat.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: [PATCH] shmem: remove unused shmem_get_unmapped_area
Date: Thu, 04 Dec 2008 15:18:10 -0600	[thread overview]
Message-ID: <1228425490.3255.119.camel@calx> (raw)

Signed-off-by: Matt Mackall <mpm@selenic.com>

diff -r b4d73844205b -r 8a9f1e9c46e8 include/linux/mm.h
--- a/include/linux/mm.h	Wed Dec 03 16:45:56 2008 -0800
+++ b/include/linux/mm.h	Mon Oct 27 17:33:21 2008 -0500
@@ -717,14 +717,6 @@
 
 int shmem_zero_setup(struct vm_area_struct *);
 
-#ifndef CONFIG_MMU
-extern unsigned long shmem_get_unmapped_area(struct file *file,
-					     unsigned long addr,
-					     unsigned long len,
-					     unsigned long pgoff,
-					     unsigned long flags);
-#endif
-
 extern int can_do_mlock(void);
 extern int user_shm_lock(size_t, struct user_struct *);
 extern void user_shm_unlock(size_t, struct user_struct *);
diff -r b4d73844205b -r 8a9f1e9c46e8 mm/tiny-shmem.c
--- a/mm/tiny-shmem.c	Wed Dec 03 16:45:56 2008 -0800
+++ b/mm/tiny-shmem.c	Mon Oct 27 17:33:21 2008 -0500
@@ -121,14 +121,3 @@
 {
 	return 0;
 }
-
-#ifndef CONFIG_MMU
-unsigned long shmem_get_unmapped_area(struct file *file,
-				      unsigned long addr,
-				      unsigned long len,
-				      unsigned long pgoff,
-				      unsigned long flags)
-{
-	return ramfs_nommu_get_unmapped_area(file, addr, len, pgoff, flags);
-}
-#endif

-- 
Mathematics is the supreme nostalgia of our time.


             reply	other threads:[~2008-12-04 21:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-04 21:18 Matt Mackall [this message]
2008-12-05 11:05 ` [PATCH] shmem: remove unused shmem_get_unmapped_area David Howells
2008-12-05 13:04 ` Hugh Dickins

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1228425490.3255.119.camel@calx \
    --to=mpm@selenic.com \
    --cc=akpm@linux-foundation.org \
    --cc=dhowells@redhat.com \
    --cc=hugh@veritas.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.