Skip to content

Commit

Permalink
Kprobes: Make kprobe.symbol_name const
Browse files Browse the repository at this point in the history
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@in.ibm.com>
Signed-off-by: Jim Keniston <jkenisto@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Ananth N Mavinakayanahalli authored and Linus Torvalds committed May 8, 2007
1 parent 6de0212 commit 9b3af29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/kprobes.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9b3af29

Please sign in to comment.