diff options
author | Hannes Eder <hannes@hanneseder.net> | 2009-02-10 13:44:34 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-02-11 04:15:42 -0500 |
commit | 5e39841c45cf5e6ea930ede1b0303309e03037a2 (patch) | |
tree | f92c8d042c07f423c6300f570f3c3b6ae4613f90 /kernel/trace/trace.c | |
parent | 4fd2735881bf4d8bf5e30979f31fc2f1b1d505fa (diff) |
tracing: fix sparse warnings: fix (un-)signedness
Fix these sparse warnings:
kernel/trace/ring_buffer.c:70:37: warning: incorrect type in argument 2 (different signedness)
kernel/trace/ring_buffer.c:84:39: warning: incorrect type in argument 2 (different signedness)
kernel/trace/ring_buffer.c:96:43: warning: incorrect type in argument 2 (different signedness)
kernel/trace/ring_buffer.c:2475:13: warning: incorrect type in argument 2 (different signedness)
kernel/trace/ring_buffer.c:2475:13: warning: incorrect type in argument 2 (different signedness)
kernel/trace/ring_buffer.c:2478:42: warning: incorrect type in argument 2 (different signedness)
kernel/trace/ring_buffer.c:2478:42: warning: incorrect type in argument 2 (different signedness)
kernel/trace/ring_buffer.c:2500:40: warning: incorrect type in argument 3 (different signedness)
kernel/trace/ring_buffer.c:2505:44: warning: incorrect type in argument 2 (different signedness)
kernel/trace/ring_buffer.c:2507:46: warning: incorrect type in argument 2 (different signedness)
kernel/trace/trace.c:2130:40: warning: incorrect type in argument 3 (different signedness)
kernel/trace/trace.c:2280:40: warning: incorrect type in argument 3 (different signedness)
Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/trace.c')
-rw-r--r-- | kernel/trace/trace.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index c157ba70f30c..e2434990277c 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c | |||
@@ -2147,7 +2147,7 @@ tracing_ctrl_write(struct file *filp, const char __user *ubuf, | |||
2147 | { | 2147 | { |
2148 | struct trace_array *tr = filp->private_data; | 2148 | struct trace_array *tr = filp->private_data; |
2149 | char buf[64]; | 2149 | char buf[64]; |
2150 | long val; | 2150 | unsigned long val; |
2151 | int ret; | 2151 | int ret; |
2152 | 2152 | ||
2153 | if (cnt >= sizeof(buf)) | 2153 | if (cnt >= sizeof(buf)) |
@@ -2295,9 +2295,9 @@ static ssize_t | |||
2295 | tracing_max_lat_write(struct file *filp, const char __user *ubuf, | 2295 | tracing_max_lat_write(struct file *filp, const char __user *ubuf, |
2296 | size_t cnt, loff_t *ppos) | 2296 | size_t cnt, loff_t *ppos) |
2297 | { | 2297 | { |
2298 | long *ptr = filp->private_data; | 2298 | unsigned long *ptr = filp->private_data; |
2299 | char buf[64]; | 2299 | char buf[64]; |
2300 | long val; | 2300 | unsigned long val; |
2301 | int ret; | 2301 | int ret; |
2302 | 2302 | ||
2303 | if (cnt >= sizeof(buf)) | 2303 | if (cnt >= sizeof(buf)) |