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/ring_buffer.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/ring_buffer.c')
-rw-r--r-- | kernel/trace/ring_buffer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c index fa64e1f003eb..dc18b5b9ccb4 100644 --- a/kernel/trace/ring_buffer.c +++ b/kernel/trace/ring_buffer.c | |||
@@ -59,7 +59,7 @@ enum { | |||
59 | RB_BUFFERS_DISABLED = 1 << RB_BUFFERS_DISABLED_BIT, | 59 | RB_BUFFERS_DISABLED = 1 << RB_BUFFERS_DISABLED_BIT, |
60 | }; | 60 | }; |
61 | 61 | ||
62 | static long ring_buffer_flags __read_mostly = RB_BUFFERS_ON; | 62 | static unsigned long ring_buffer_flags __read_mostly = RB_BUFFERS_ON; |
63 | 63 | ||
64 | /** | 64 | /** |
65 | * tracing_on - enable all tracing buffers | 65 | * tracing_on - enable all tracing buffers |
@@ -2501,7 +2501,7 @@ static ssize_t | |||
2501 | rb_simple_read(struct file *filp, char __user *ubuf, | 2501 | rb_simple_read(struct file *filp, char __user *ubuf, |
2502 | size_t cnt, loff_t *ppos) | 2502 | size_t cnt, loff_t *ppos) |
2503 | { | 2503 | { |
2504 | long *p = filp->private_data; | 2504 | unsigned long *p = filp->private_data; |
2505 | char buf[64]; | 2505 | char buf[64]; |
2506 | int r; | 2506 | int r; |
2507 | 2507 | ||
@@ -2517,9 +2517,9 @@ static ssize_t | |||
2517 | rb_simple_write(struct file *filp, const char __user *ubuf, | 2517 | rb_simple_write(struct file *filp, const char __user *ubuf, |
2518 | size_t cnt, loff_t *ppos) | 2518 | size_t cnt, loff_t *ppos) |
2519 | { | 2519 | { |
2520 | long *p = filp->private_data; | 2520 | unsigned long *p = filp->private_data; |
2521 | char buf[64]; | 2521 | char buf[64]; |
2522 | long val; | 2522 | unsigned long val; |
2523 | int ret; | 2523 | int ret; |
2524 | 2524 | ||
2525 | if (cnt >= sizeof(buf)) | 2525 | if (cnt >= sizeof(buf)) |