CHROMIUM: trace: remove warning
authorOlof Johansson <olofj@chromium.org>
Mon, 10 Sep 2012 16:51:42 +0000 (09:51 -0700)
committerGerrit <chrome-bot@google.com>
Tue, 11 Sep 2012 18:58:56 +0000 (11:58 -0700)
fs/exec.c:790:2: warning: passing argument 1 of ‘trace_open_exec’ discards ‘const’ qualifier from pointer target type [enabled by default]

BUG=chromium-os:34287
TEST=build, make sure warning is gone

Change-Id: Ia81f05aa28bb28327e3be7b438df281a0166bcb8
Signed-off-by: Olof Johansson <olofj@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/32829
Reviewed-by: Mandeep Singh Baines <msb@chromium.org>
include/trace/events/fs.h

index 2cbb8fe..2efe49d 100644 (file)
@@ -31,7 +31,7 @@ TRACE_EVENT(do_sys_open,
 
 TRACE_EVENT(open_exec,
 
-       TP_PROTO(char *filename),
+       TP_PROTO(const char *filename),
 
        TP_ARGS(filename),