[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070315043547.GA14236@in.ibm.com>
Date: Thu, 15 Mar 2007 10:05:47 +0530
From: Ananth N Mavinakayanahalli <ananth@...ibm.com>
To: lkml <linux-kernel@...r.kernel.org>
Cc: akpm@...ux-foundation.org, hch@...radead.org,
Prasanna S Panchamukhi <prasanna@...ibm.com>,
Jim Keniston <jkenisto@...ibm.com>
Subject: [PATCH] Kprobes: Make kprobe.symbol_name const
From: Ananth N Mavinakayanahalli <ananth@...ibm.com>
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@...ibm.com>
Signed-off-by: Jim Keniston <jkenisto@...ibm.com>
---
include/linux/kprobes.h | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: linux-2.6.21-rc3/include/linux/kprobes.h
===================================================================
--- linux-2.6.21-rc3.orig/include/linux/kprobes.h
+++ linux-2.6.21-rc3/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 linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists