The patch titled Kprobes: Make kprobe.symbol_name const has been added to the -mm tree. Its filename is kprobes-make-kprobesymbol_name-const.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: Kprobes: Make kprobe.symbol_name const From: Ananth N Mavinakayanahalli <ananth@xxxxxxxxxx> Kprobes doesn't scribble the kprobe.symbol_name field. Its only set by the module when registering the probe. Modules that exercise good hygiene using the "const" qualifier will see warnings... warning: assignment discards qualifiers from pointer target type Make struct kprobe.symbol_name const char * Signed-off-by: Ananth N Mavinakayanahalli <ananth@xxxxxxxxxx> Signed-off-by: Jim Keniston <jkenisto@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/kprobes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN include/linux/kprobes.h~kprobes-make-kprobesymbol_name-const include/linux/kprobes.h --- a/include/linux/kprobes.h~kprobes-make-kprobesymbol_name-const +++ a/include/linux/kprobes.h @@ -78,7 +78,7 @@ struct kprobe { kprobe_opcode_t *addr; /* Allow user to indicate symbol name of the probe point */ - char *symbol_name; + const char *symbol_name; /* Offset into the symbol */ unsigned int offset; _ Patches currently in -mm which might be from ananth@xxxxxxxxxx are kprobes-make-kprobesymbol_name-const.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