]> git.karo-electronics.de Git - linux-beck.git/commitdiff
tracing: Use outer () on __get_str() definition
authorDaniel Bristot de Oliveira <bristot@redhat.com>
Fri, 1 Jul 2016 23:44:34 +0000 (20:44 -0300)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 15 Jul 2016 19:50:58 +0000 (15:50 -0400)
__get_str(str)'s definition includes a (char *) operator
overloading that is not protected with outer ().

This patch adds () around __get_str()'s definition, enabling
some code cleanup.

Link: http://lkml.kernel.org/r/20ac1a10c2ec4ccd23e4a8ef34101fb6e4157d37.1467407618.git.bristot@redhat.com
Cc: Trond Myklebust <trond.myklebust@primarydata.com>
Cc: Anna Schumaker <anna.schumaker@netapp.com>
Cc: Ingo Molnar <mingo@redhat.com>
Suggested-by: Steven Rostedt <rostedt@goodmis.org>
Reviewed-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Daniel Bristot de Oliveira <bristot@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
include/trace/perf.h
include/trace/trace_events.h

index 88de5c205e86f7040854221baa2fe04c737daa3a..04fe68bbe7679f48ef5e58b883b7780a5b6fbbfd 100644 (file)
@@ -15,7 +15,7 @@
                ((__entry->__data_loc_##field >> 16) & 0xffff)
 
 #undef __get_str
-#define __get_str(field) (char *)__get_dynamic_array(field)
+#define __get_str(field) ((char *)__get_dynamic_array(field))
 
 #undef __get_bitmask
 #define __get_bitmask(field) (char *)__get_dynamic_array(field)
index 80679a9fae65e3d5a00be4235d7153d7aad34177..467e12f780d863956b1b1b650c406d9d4cb5c0c2 100644 (file)
@@ -256,7 +256,7 @@ TRACE_MAKE_SYSTEM_STR();
                ((__entry->__data_loc_##field >> 16) & 0xffff)
 
 #undef __get_str
-#define __get_str(field) (char *)__get_dynamic_array(field)
+#define __get_str(field) ((char *)__get_dynamic_array(field))
 
 #undef __get_bitmask
 #define __get_bitmask(field)                                           \