xen/blkback: Fix warning error.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 17 Apr 2012 01:55:04 +0000 (21:55 -0400)
committerVarun Wadekar <vwadekar@nvidia.com>
Wed, 25 Apr 2012 06:52:24 +0000 (11:52 +0530)
commit75d121d6e03cd68f155ec55d999ae27ff0abc1cc
treefcfc72972db15d09b6cfe61c87d7491f7756ba31
parent3a444cd8f01470942831548766c3b4725a4c0260
xen/blkback: Fix warning error.

drivers/block/xen-blkback/xenbus.c: In function 'xen_blkbk_discard':
drivers/block/xen-blkback/xenbus.c:419:4: warning: passing argument 1 of 'dev_warn' makes pointer from integer without a cast
+[enabled by default]
include/linux/device.h:894:5: note: expected 'const struct device *' but argument is of type 'long int'

It is unclear how that mistake made it in. It surely is wrong.

Acked-by: Jens Axboe <axboe@kernel.dk>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/block/xen-blkback/xenbus.c