tracing/blktrace: fix up checkpatch reported problems in ftrace plugin patch

Also make sure sparse (make C=2 block/blktrace.o) is happy too.

Reported-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
Arnaldo Carvalho de Melo
2009-01-26 15:00:56 -02:00
committed by Ingo Molnar
parent c71a896154
commit 157f9c00e8
3 changed files with 31 additions and 19 deletions

View File

@@ -19,6 +19,7 @@
#include <linux/kmod.h>
#include <linux/ctype.h>
#include <linux/genhd.h>
#include <linux/blktrace_api.h>
#include "check.h"
@@ -268,10 +269,6 @@ ssize_t part_fail_store(struct device *dev,
}
#endif
#ifdef CONFIG_BLK_DEV_IO_TRACE
extern struct attribute_group blk_trace_attr_group;
#endif
static DEVICE_ATTR(partition, S_IRUGO, part_partition_show, NULL);
static DEVICE_ATTR(start, S_IRUGO, part_start_show, NULL);
static DEVICE_ATTR(size, S_IRUGO, part_size_show, NULL);