diff options
author | Wang Long <long.wanglong@huawei.com> | 2015-06-10 10:12:07 +0200 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2015-06-10 21:45:22 +0200 |
commit | 33d657d1381025542b84b79d5c7b548598e40a4d (patch) | |
tree | 235074885995174bf1b435d0a7f18a06e0c88a60 /kernel/trace/ring_buffer_benchmark.c | |
parent | ring-buffer-benchmark: Fix the wrong param in module_param (diff) | |
download | linux-33d657d1381025542b84b79d5c7b548598e40a4d.tar.xz linux-33d657d1381025542b84b79d5c7b548598e40a4d.zip |
ring-buffer-benchmark: Fix the wrong type
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.
Link: http://lkml.kernel.org/r/1433923927-67782-1-git-send-email-long.wanglong@huawei.com
Signed-off-by: Wang Long <long.wanglong@huawei.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/ring_buffer_benchmark.c')
-rw-r--r-- | kernel/trace/ring_buffer_benchmark.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/trace/ring_buffer_benchmark.c b/kernel/trace/ring_buffer_benchmark.c index cdff7d3df902..2430563cf2bc 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"); |