Commit:     4b8df8915a6980f476e1fa8f4d156e36cb63bf76
Parent:     7e81ab9d3d9a22fb7b20c56f0cabc8ef51954014
Author:     David Rientjes <[EMAIL PROTECTED]>
AuthorDate: Tue May 8 20:27:01 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Tue May 8 20:41:14 2007 -0700

    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 <[EMAIL PROTECTED]>
    Signed-off-by: David Howells <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 fs/proc/base.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/fs/proc/base.c b/fs/proc/base.c
index 3c41149..a5fa1fd 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -708,6 +708,7 @@ static const struct file_operations 
proc_oom_adjust_operations = {
        .write          = oom_adjust_write,
+#ifdef CONFIG_MMU
 static ssize_t clear_refs_write(struct file *file, const char __user *buf,
                                size_t count, loff_t *ppos)
@@ -741,6 +742,7 @@ static ssize_t clear_refs_write(struct file *file, const 
char __user *buf,
 static struct file_operations proc_clear_refs_operations = {
        .write          = clear_refs_write,
 #define TMPBUFLEN 21
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to