mg_disk: fix CONFIG_LBD=y warning
PATCH 1/3 mg_disk: fix CONFIG_LBD=y warning
drivers/block/mg_disk.c: In function ‘mg_dump_status’:drivers/block/mg_disk.c:265: warning: format ‘%ld’ expects type ‘long int’, but argument 2 has type ‘sector_t’
Cc unsik Kim <[email protected]>
Cc Tejun Heo <[email protected]>
Signed-off-by Bartlomiej Zolnierkiewicz <[email protected]>
---
few more mg_disk patches on top of http://lkml.org/lkml/2009/4/24/334
drivers/block/mg_disk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/block/mg_disk.c +1 -1
@@ -262,7 +262,7 @@ static void mg_dump_status(const char *mif (host->breq) { req =elv_next_request (host->breq);if (req) -printk (", sector=%ld" , req->sector); +printk (", sector=%u" , (u32 )req->sector); } }
Quoted 7 lines · Bartlomiej Zolnierkiewicz
drivers/block/mg_disk.c: In function ‘mg_dump_status’:drivers/block/mg_disk.c:265: warning: format ‘%ld’ expects type ‘long int’, but argument 2 has type ‘sector_t’Cc unsik Kim <[email protected]>Cc Tejun Heo <[email protected]>Signed-off-by Bartlomiej Zolnierkiewicz <[email protected]>
FWIW-Acked-by Tejun Heo <[email protected]>
I think this should go through Jens' tree. Care to cc Jens?
Thanks.
Signature · 1 line
tejun