summaryrefslogtreecommitdiff
path: root/drivers/base
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@novell.com>2008-05-12 17:44:41 +0400
committerThomas Gleixner <tglx@linutronix.de>2008-05-25 09:09:47 +0400
commit63687a528c39a67c1a213cdffa09feb0e6af9dbe (patch)
tree0a21067f84d2495d37cc6fe864675db53ca56630 /drivers/base
parent75d3bce2fc0a80f435fe12f2c9ed2632c8ac29e4 (diff)
downloadlinux-63687a528c39a67c1a213cdffa09feb0e6af9dbe.tar.xz
x86: move tracedata to RODATA
.. allowing it to be write-protected just as other read-only data under CONFIG_DEBUG_RODATA. Signed-off-by: Jan Beulich <jbeulich@novell.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/power/trace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/power/trace.c b/drivers/base/power/trace.c
index 2b4b392dcbc1..87a7f1d02578 100644
--- a/drivers/base/power/trace.c
+++ b/drivers/base/power/trace.c
@@ -153,7 +153,7 @@ EXPORT_SYMBOL(set_trace_device);
* it's not any guarantee, but it's a high _likelihood_ that
* the match is valid).
*/
-void generate_resume_trace(void *tracedata, unsigned int user)
+void generate_resume_trace(const void *tracedata, unsigned int user)
{
unsigned short lineno = *(unsigned short *)tracedata;
const char *file = *(const char **)(tracedata + 2);