Commit 4b8df891 authored by David Rientjes's avatar David Rientjes Committed by Linus Torvalds
Browse files

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: default avatarDavid Rientjes <>
Signed-off-by: default avatarDavid Howells <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 7e81ab9d
......@@ -708,6 +708,7 @@ static const struct file_operations proc_oom_adjust_operations = {
.write = oom_adjust_write,
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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment