aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_export.c
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-03-06 10:50:53 -0500
committerSteven Rostedt <srostedt@redhat.com>2009-03-10 00:34:03 -0400
commit156b5f172a64103bcb13b6d26288388b9019caa3 (patch)
treee29141720bd9d0e4c722dd3c7dc8c62d5113db43 /kernel/trace/trace_export.c
parent7bffc23e56e92c14b787bf4d95249a32085bfed5 (diff)
tracing: typecast sizeof and offsetof to unsigned int
Impact: fix compiler warnings On x86_64 sizeof and offsetof are treated as long, where as on x86_32 they are int. This patch typecasts them to unsigned int to avoid one arch giving warnings while the other does not. Reported-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Diffstat (limited to 'kernel/trace/trace_export.c')
-rw-r--r--kernel/trace/trace_export.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/trace/trace_export.c b/kernel/trace/trace_export.c
index 0fb7be73e31c..7162ab49d05d 100644
--- a/kernel/trace/trace_export.c
+++ b/kernel/trace/trace_export.c
@@ -18,11 +18,11 @@
18#include "trace_format.h" 18#include "trace_format.h"
19 19
20#undef TRACE_FIELD_ZERO_CHAR 20#undef TRACE_FIELD_ZERO_CHAR
21#define TRACE_FIELD_ZERO_CHAR(item) \ 21#define TRACE_FIELD_ZERO_CHAR(item) \
22 ret = trace_seq_printf(s, "\tfield: char " #item ";\t" \ 22 ret = trace_seq_printf(s, "\tfield: char " #item ";\t" \
23 "offset:%lu;\tsize:0;\n", \ 23 "offset:%u;\tsize:0;\n", \
24 offsetof(typeof(field), item)); \ 24 (unsigned int)offsetof(typeof(field), item)); \
25 if (!ret) \ 25 if (!ret) \
26 return 0; 26 return 0;
27 27
28 28