Kprobes: Make kprobe.symbol_name const
authorAnanth N Mavinakayanahalli <[email protected]>
Tue, 8 May 2007 07:26:23 +0000 (00:26 -0700)
committerLinus Torvalds <[email protected]>
Tue, 8 May 2007 18:15:03 +0000 (11:15 -0700)
commit9b3af29bf33bfe08c604769632799d27d56ae103
treee4709e8023b717b0b20632c11f393eda568a31c2
parent6de02123bf3e8baeee97fff7efc50bc192332804
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 <[email protected]>
Signed-off-by: Jim Keniston <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/kprobes.h