public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix BLKTRACESETUP32 compile error
@ 2010-07-08 23:59 FUJITA Tomonori
  2010-07-09 12:57 ` Arnd Bergmann
  0 siblings, 1 reply; 2+ messages in thread
From: FUJITA Tomonori @ 2010-07-08 23:59 UTC (permalink / raw)
  To: axboe, arnd; +Cc: linux-kernel

I got the following compile error with block's for-2.6.36 tree:

block/compat_ioctl.c: In function compat_blkdev_ioctl:
block/compat_ioctl.c:754: error: BLKTRACESETUP32 undeclared (first use in this function)
block/compat_ioctl.c:754: error: (Each undeclared identifier is reported only once
block/compat_ioctl.c:754: error: for each function it appears in.)


This is due to "block: push BKL into blktrace ioctls" patch.

=
From: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Subject: [PATCH] fix BLKTRACESETUP32 compile error

We need BLKTRACESETUP32 even with CONFIG_BLK_DEV_IO_TRACE disabled.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
---
 include/linux/blktrace_api.h |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/include/linux/blktrace_api.h b/include/linux/blktrace_api.h
index 07c6986..a19b85f 100644
--- a/include/linux/blktrace_api.h
+++ b/include/linux/blktrace_api.h
@@ -204,17 +204,6 @@ extern int blk_trace_init_sysfs(struct device *dev);
 
 extern struct attribute_group blk_trace_attr_group;
 
-struct compat_blk_user_trace_setup {
-	char name[32];
-	u16 act_mask;
-	u32 buf_size;
-	u32 buf_nr;
-	compat_u64 start_lba;
-	compat_u64 end_lba;
-	u32 pid;
-};
-#define BLKTRACESETUP32 _IOWR(0x12, 115, struct compat_blk_user_trace_setup)
-
 #else /* !CONFIG_BLK_DEV_IO_TRACE */
 # define blk_trace_ioctl(bdev, cmd, arg)		(-ENOTTY)
 # define blk_trace_shutdown(q)				do { } while (0)
@@ -232,6 +221,17 @@ static inline int blk_trace_init_sysfs(struct device *dev)
 
 #endif /* CONFIG_BLK_DEV_IO_TRACE */
 
+struct compat_blk_user_trace_setup {
+	char name[32];
+	u16 act_mask;
+	u32 buf_size;
+	u32 buf_nr;
+	compat_u64 start_lba;
+	compat_u64 end_lba;
+	u32 pid;
+};
+#define BLKTRACESETUP32 _IOWR(0x12, 115, struct compat_blk_user_trace_setup)
+
 #if defined(CONFIG_EVENT_TRACING) && defined(CONFIG_BLOCK)
 
 static inline int blk_cmd_buf_len(struct request *rq)
-- 
1.6.5


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

* Re: [PATCH] fix BLKTRACESETUP32 compile error
  2010-07-08 23:59 [PATCH] fix BLKTRACESETUP32 compile error FUJITA Tomonori
@ 2010-07-09 12:57 ` Arnd Bergmann
  0 siblings, 0 replies; 2+ messages in thread
From: Arnd Bergmann @ 2010-07-09 12:57 UTC (permalink / raw)
  To: FUJITA Tomonori; +Cc: axboe, linux-kernel, Stephen Rothwell

On Friday 09 July 2010, FUJITA Tomonori wrote:
> I got the following compile error with block's for-2.6.36 tree:
> 
> block/compat_ioctl.c: In function compat_blkdev_ioctl:
> block/compat_ioctl.c:754: error: BLKTRACESETUP32 undeclared (first use in this function)
> block/compat_ioctl.c:754: error: (Each undeclared identifier is reported only once
> block/compat_ioctl.c:754: error: for each function it appears in.)
> 
> 
> This is due to "block: push BKL into blktrace ioctls" patch.
> 
> =
> From: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
> Subject: [PATCH] fix BLKTRACESETUP32 compile error
> 
> We need BLKTRACESETUP32 even with CONFIG_BLK_DEV_IO_TRACE disabled.
> 
> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>

Stephen sent an almost identical patch, either version looks good.
Sorry for breaking this.

Acked-by: Arnd Bergmann <arnd@arndb.de>

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

end of thread, other threads:[~2010-07-09 12:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-08 23:59 [PATCH] fix BLKTRACESETUP32 compile error FUJITA Tomonori
2010-07-09 12:57 ` Arnd Bergmann

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