Commit:     9b3af29bf33bfe08c604769632799d27d56ae103
Parent:     6de02123bf3e8baeee97fff7efc50bc192332804
Author:     Ananth N Mavinakayanahalli <[EMAIL PROTECTED]>
AuthorDate: Tue May 8 00:26:23 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Tue May 8 11:15:03 2007 -0700

    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 |    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;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to