aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/base.c
diff options
context:
space:
mode:
authorDavid Rientjes <rientjes@google.com>2007-05-08 23:27:01 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-08 23:41:14 -0400
commit4b8df8915a6980f476e1fa8f4d156e36cb63bf76 (patch)
treedee4cbe41aee3570b9a129a4c87dcf8ea09f8112 /fs/proc/base.c
parent7e81ab9d3d9a22fb7b20c56f0cabc8ef51954014 (diff)
smaps: only define clear_refs for CONFIG_MMU
/proc/pid/clear_refs is only defined in the CONFIG_MMU case, so make sure we don't have any references to clear_refs_smap() in generic procfs code. Signed-off-by: David Rientjes <rientjes@google.com> Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/proc/base.c')
-rw-r--r--fs/proc/base.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c
index 3c41149dea88..a5fa1fdafc4e 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -708,6 +708,7 @@ static const struct file_operations proc_oom_adjust_operations = {
708 .write = oom_adjust_write, 708 .write = oom_adjust_write,
709}; 709};
710 710
711#ifdef CONFIG_MMU
711static ssize_t clear_refs_write(struct file *file, const char __user *buf, 712static ssize_t clear_refs_write(struct file *file, const char __user *buf,
712 size_t count, loff_t *ppos) 713 size_t count, loff_t *ppos)
713{ 714{
@@ -741,6 +742,7 @@ static ssize_t clear_refs_write(struct file *file, const char __user *buf,
741static struct file_operations proc_clear_refs_operations = { 742static struct file_operations proc_clear_refs_operations = {
742 .write = clear_refs_write, 743 .write = clear_refs_write,
743}; 744};
745#endif
744 746
745#ifdef CONFIG_AUDITSYSCALL 747#ifdef CONFIG_AUDITSYSCALL
746#define TMPBUFLEN 21 748#define TMPBUFLEN 21