diff options
author | Ananth N Mavinakayanahalli <ananth@in.ibm.com> | 2007-05-08 07:26:23 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-08 18:15:03 (GMT) |
commit | 9b3af29bf33bfe08c604769632799d27d56ae103 (patch) | |
tree | e4709e8023b717b0b20632c11f393eda568a31c2 /include/linux/kprobes.h | |
parent | 6de02123bf3e8baeee97fff7efc50bc192332804 (diff) | |
download | linux-fsl-qoriq-9b3af29bf33bfe08c604769632799d27d56ae103.tar.xz |
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 <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>
Diffstat (limited to 'include/linux/kprobes.h')
-rw-r--r-- | include/linux/kprobes.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; |