From: Stephen Rothwell Date: Wed, 1 Aug 2007 21:46:44 +0000 (+0200) Subject: ide: eliminate warnings in ide-tape.c X-Git-Tag: v2.6.23-rc2~23^2~8 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ab0579685d34eb2c6b101534796ba64c8b9107b5;p=linux-2.6-omap-h63xx.git ide: eliminate warnings in ide-tape.c drivers/ide/ide-tape.c: In function '__idetape_kmalloc_stage': drivers/ide/ide-tape.c:2588: warning: large integer implicitly truncated to unsigned type drivers/ide/ide-tape.c:2616: warning: large integer implicitly truncated to unsigned type b_size in struct idetape_bh is an unsigned short. We sometimes assigne PAGE_SIZE to it and PAGE_SIZE can be 64K or larger, so make it a u32. Signed-off-by: Stephen Rothwell Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c index e82bfa5e0ab..1fa57947bca 100644 --- a/drivers/ide/ide-tape.c +++ b/drivers/ide/ide-tape.c @@ -640,7 +640,7 @@ typedef enum { } idetape_chrdev_direction_t; struct idetape_bh { - unsigned short b_size; + u32 b_size; atomic_t b_count; struct idetape_bh *b_reqnext; char *b_data;