From: Ananth N Mavinakayanahalli Date: Tue, 8 May 2007 07:26:23 +0000 (-0700) Subject: Kprobes: Make kprobe.symbol_name const X-Git-Tag: upstream/snapshot3+hdmi~34578 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9b3af29bf33bfe08c604769632799d27d56ae103;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git Kprobes: Make kprobe.symbol_name const 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 Signed-off-by: Jim Keniston Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/kprobes.h b/include/linux/kprobes.h index 769be39..f264607 100644 --- a/include/linux/kprobes.h +++ b/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;