]> err.no Git - linux-2.6/commit
Kprobes: Make kprobe.symbol_name const
authorAnanth N Mavinakayanahalli <ananth@in.ibm.com>
Tue, 8 May 2007 07:26:23 +0000 (00:26 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
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 <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>
include/linux/kprobes.h