Re: [PATCH] Eliminate warnings in ide-tape.c

2007-08-01 Thread Bartlomiej Zolnierkiewicz
On Monday 30 July 2007, Stephen Rothwell wrote:
> 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 <[EMAIL PROTECTED]>

applied
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH] Eliminate warnings in ide-tape.c

2007-08-01 Thread Bartlomiej Zolnierkiewicz
On Monday 30 July 2007, Stephen Rothwell wrote:
 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 [EMAIL PROTECTED]

applied
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH] Eliminate warnings in ide-tape.c

2007-07-29 Thread Stephen Rothwell
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 <[EMAIL PROTECTED]>
---
 drivers/ide/ide-tape.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

-- 
Cheers,
Stephen Rothwell[EMAIL PROTECTED]

diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c
index e82bfa5..1fa5794 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;
-- 
1.5.2.4

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH] Eliminate warnings in ide-tape.c

2007-07-29 Thread Stephen Rothwell
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 [EMAIL PROTECTED]
---
 drivers/ide/ide-tape.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

-- 
Cheers,
Stephen Rothwell[EMAIL PROTECTED]

diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c
index e82bfa5..1fa5794 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;
-- 
1.5.2.4

-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/