All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -tip] trace: ring_buffer.c fix various signedness issues
@ 2009-03-22 18:44 Jaswinder Singh Rajput
  2009-03-22 19:05 ` Jaswinder Singh Rajput
  2009-03-23 19:00 ` Steven Rostedt
  0 siblings, 2 replies; 3+ messages in thread
From: Jaswinder Singh Rajput @ 2009-03-22 18:44 UTC (permalink / raw)
  To: Ingo Molnar, Steven Rostedt, LKML

From: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
Date: Mon, 23 Mar 2009 00:02:38 +0530
Subject: [PATCH] trace: ring_buffer.c fix various signedness issues

Impact:cleanup

Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
---
 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 bd38c5c..114811b 100644
--- a/kernel/trace/ring_buffer.c
+++ b/kernel/trace/ring_buffer.c
@@ -57,7 +57,7 @@ enum {
 	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
@@ -2466,7 +2466,7 @@ static ssize_t
 rb_simple_read(struct file *filp, char __user *ubuf,
 	       size_t cnt, loff_t *ppos)
 {
-	long *p = filp->private_data;
+	unsigned long *p = filp->private_data;
 	char buf[64];
 	int r;
 
@@ -2482,9 +2482,9 @@ static ssize_t
 rb_simple_write(struct file *filp, const char __user *ubuf,
 		size_t cnt, loff_t *ppos)
 {
-	long *p = filp->private_data;
+	unsigned long *p = filp->private_data;
+	unsigned long val;
 	char buf[64];
-	long val;
 	int ret;
 
 	if (cnt >= sizeof(buf))
-- 
1.6.0.6




^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-03-23 19:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-22 18:44 [PATCH -tip] trace: ring_buffer.c fix various signedness issues Jaswinder Singh Rajput
2009-03-22 19:05 ` Jaswinder Singh Rajput
2009-03-23 19:00 ` Steven Rostedt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.