The patch titled smaps: only define clear_refs for CONFIG_MMU has been added to the -mm tree. Its filename is smaps-only-define-clear_refs-for-config_mmu.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: smaps: only define clear_refs for CONFIG_MMU From: David Rientjes <rientjes@xxxxxxxxxx> /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@xxxxxxxxxx> Signed-off-by: David Howells <dhowells@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/proc/base.c | 2 ++ 1 files changed, 2 insertions(+) diff -puN fs/proc/base.c~smaps-only-define-clear_refs-for-config_mmu fs/proc/base.c --- a/fs/proc/base.c~smaps-only-define-clear_refs-for-config_mmu +++ a/fs/proc/base.c @@ -708,6 +708,7 @@ static const struct file_operations proc .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 f static struct file_operations proc_clear_refs_operations = { .write = clear_refs_write, }; +#endif #ifdef CONFIG_AUDITSYSCALL #define TMPBUFLEN 21 _ Patches currently in -mm which might be from rientjes@xxxxxxxxxx are origin.patch cpusets-allow-empty-cpusmems_allowed-to-be-set-for.patch smaps-only-define-clear_refs-for-config_mmu.patch git-alsa.patch maps2-uninline-some-functions-in-the-page-walker.patch maps2-eliminate-the-pmd_walker-struct-in-the-page-walker.patch maps2-remove-vma-from-args-in-the-page-walker.patch maps2-propagate-errors-from-callback-in-page-walker.patch maps2-add-callbacks-for-each-level-to-page-walker.patch maps2-move-the-page-walker-code-to-lib.patch maps2-simplify-interdependence-of-proc-pid-maps-and-smaps.patch maps2-move-clear_refs-code-to-task_mmuc.patch maps2-regroup-task_mmu-by-interface.patch maps2-make-proc-pid-smaps-optional-under-config_embedded.patch maps2-make-proc-pid-clear_refs-option-under-config_embedded.patch maps2-add-proc-pid-pagemap-interface.patch maps2-add-proc-kpagemap-interface.patch compiler-introduce-__used-and-__maybe_unused.patch i386-pci-type-may-be-unused.patch sh-dma-use-__maybe_unused.patch scsi-fix-ambiguous-gdthtable-definition.patch frv-gdb-use-__maybe_unused.patch i386-voyager-use-__maybe_unused.patch mips-excite-use-__maybe_unused.patch mips-tlbex-use-__maybe_unused.patch powerpc-ps3-use-__maybe_unused.patch i386-mmzone-use-__maybe_unused.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