mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ring-buffer-benchmark: Fix the wrong type
@ 2015-06-10  8:12 Wang Long
  2015-06-10 19:45 ` Steven Rostedt
  0 siblings, 1 reply; 2+ messages in thread
From: Wang Long @ 2015-06-10  8:12 UTC (permalink / raw)
  To: rostedt, mingo; +Cc: wanglong, long.wanglong, linux-kernel, peifeiyue

The macro 'module_param' shows that the type of the
variable disable_reader and write_iteration is unsigned
integer. so, we change their type form int to unsigned int.

Signed-off-by: Wang Long <long.wanglong@huawei.com>
---
 kernel/trace/ring_buffer_benchmark.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/trace/ring_buffer_benchmark.c b/kernel/trace/ring_buffer_benchmark.c
index 1b28df2..e1b4a81 100644
--- a/kernel/trace/ring_buffer_benchmark.c
+++ b/kernel/trace/ring_buffer_benchmark.c
@@ -32,11 +32,11 @@ static struct task_struct *producer;
 static struct task_struct *consumer;
 static unsigned long read;
 
-static int disable_reader;
+static unsigned int disable_reader;
 module_param(disable_reader, uint, 0644);
 MODULE_PARM_DESC(disable_reader, "only run producer");
 
-static int write_iteration = 50;
+static unsigned int write_iteration = 50;
 module_param(write_iteration, uint, 0644);
 MODULE_PARM_DESC(write_iteration, "# of writes between timestamp readings");
 
-- 
1.8.3.4


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

* Re: [PATCH] ring-buffer-benchmark: Fix the wrong type
  2015-06-10  8:12 [PATCH] ring-buffer-benchmark: Fix the wrong type Wang Long
@ 2015-06-10 19:45 ` Steven Rostedt
  0 siblings, 0 replies; 2+ messages in thread
From: Steven Rostedt @ 2015-06-10 19:45 UTC (permalink / raw)
  To: Wang Long; +Cc: mingo, wanglong, linux-kernel, peifeiyue

On Wed, 10 Jun 2015 08:12:07 +0000
Wang Long <long.wanglong@huawei.com> wrote:

> The macro 'module_param' shows that the type of the
> variable disable_reader and write_iteration is unsigned
> integer. so, we change their type form int to unsigned int.
> 
> Signed-off-by: Wang Long <long.wanglong@huawei.com>

Thanks, applied!

-- Steve

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

end of thread, other threads:[~2015-06-10 19:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-10  8:12 [PATCH] ring-buffer-benchmark: Fix the wrong type Wang Long
2015-06-10 19:45 ` Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®