Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab057968 authored by Stephen Rothwell's avatar Stephen Rothwell Committed by Bartlomiej Zolnierkiewicz
Browse files

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: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent b37c6b84
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -640,7 +640,7 @@ typedef enum {
} idetape_chrdev_direction_t;
} idetape_chrdev_direction_t;


struct idetape_bh {
struct idetape_bh {
	unsigned short b_size;
	u32 b_size;
	atomic_t b_count;
	atomic_t b_count;
	struct idetape_bh *b_reqnext;
	struct idetape_bh *b_reqnext;
	char *b_data;
	char *b_data;