[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1368376251-14622-1-git-send-email-vincent.stehle@laposte.net>
Date: Sun, 12 May 2013 18:30:51 +0200
From: Vincent Stehlé <vincent.stehle@...oste.net>
To: Kent Overstreet <koverstreet@...gle.com>
Cc: linux-bcache@...r.kernel.org, linux-kernel@...r.kernel.org,
Vincent Stehlé <vincent.stehle@...oste.net>
Subject: [PATCH] bcache: fix compilation warning
The release function of a block device does not return a value; make
release_dev void. This fixes the following warning:
drivers/md/bcache/super.c:653:2: warning: initialization from incompatible pointer type [enabled by default]
drivers/md/bcache/super.c:653:2: warning: (near initialization for ‘bcache_ops.release’) [enabled by default]
Signed-off-by: Vincent Stehlé <vincent.stehle@...oste.net>
---
drivers/md/bcache/super.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c
index c8046bc..b09beb2 100644
--- a/drivers/md/bcache/super.c
+++ b/drivers/md/bcache/super.c
@@ -634,11 +634,10 @@ static int open_dev(struct block_device *b, fmode_t mode)
return 0;
}
-static int release_dev(struct gendisk *b, fmode_t mode)
+static void release_dev(struct gendisk *b, fmode_t mode)
{
struct bcache_device *d = b->private_data;
closure_put(&d->cl);
- return 0;
}
static int ioctl_dev(struct block_device *b, fmode_t mode,
--
1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists