Commit 5e39841c authored by Hannes Eder's avatar Hannes Eder Committed by Ingo Molnar

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: default avatarHannes Eder <hannes@hanneseder.net>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 4fd27358
...@@ -59,7 +59,7 @@ enum { ...@@ -59,7 +59,7 @@ enum {
RB_BUFFERS_DISABLED = 1 << RB_BUFFERS_DISABLED_BIT, RB_BUFFERS_DISABLED = 1 << RB_BUFFERS_DISABLED_BIT,
}; };
static long ring_buffer_flags __read_mostly = RB_BUFFERS_ON; static unsigned long ring_buffer_flags __read_mostly = RB_BUFFERS_ON;
/** /**
* tracing_on - enable all tracing buffers * tracing_on - enable all tracing buffers
...@@ -2501,7 +2501,7 @@ static ssize_t ...@@ -2501,7 +2501,7 @@ static ssize_t
rb_simple_read(struct file *filp, char __user *ubuf, rb_simple_read(struct file *filp, char __user *ubuf,
size_t cnt, loff_t *ppos) size_t cnt, loff_t *ppos)
{ {
long *p = filp->private_data; unsigned long *p = filp->private_data;
char buf[64]; char buf[64];
int r; int r;
...@@ -2517,9 +2517,9 @@ static ssize_t ...@@ -2517,9 +2517,9 @@ static ssize_t
rb_simple_write(struct file *filp, const char __user *ubuf, rb_simple_write(struct file *filp, const char __user *ubuf,
size_t cnt, loff_t *ppos) size_t cnt, loff_t *ppos)
{ {
long *p = filp->private_data; unsigned long *p = filp->private_data;
char buf[64]; char buf[64];
long val; unsigned long val;
int ret; int ret;
if (cnt >= sizeof(buf)) if (cnt >= sizeof(buf))
......
...@@ -2147,7 +2147,7 @@ tracing_ctrl_write(struct file *filp, const char __user *ubuf, ...@@ -2147,7 +2147,7 @@ tracing_ctrl_write(struct file *filp, const char __user *ubuf,
{ {
struct trace_array *tr = filp->private_data; struct trace_array *tr = filp->private_data;
char buf[64]; char buf[64];
long val; unsigned long val;
int ret; int ret;
if (cnt >= sizeof(buf)) if (cnt >= sizeof(buf))
...@@ -2295,9 +2295,9 @@ static ssize_t ...@@ -2295,9 +2295,9 @@ static ssize_t
tracing_max_lat_write(struct file *filp, const char __user *ubuf, tracing_max_lat_write(struct file *filp, const char __user *ubuf,
size_t cnt, loff_t *ppos) size_t cnt, loff_t *ppos)
{ {
long *ptr = filp->private_data; unsigned long *ptr = filp->private_data;
char buf[64]; char buf[64];
long val; unsigned long val;
int ret; int ret;
if (cnt >= sizeof(buf)) if (cnt >= sizeof(buf))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment