projects
/
platform
/
kernel
/
kernel-mfld-blackbay.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a907905
)
ide: Fix annoying warning in ide_pio_bytes().
author
David S. Miller
<davem@davemloft.net>
Tue, 23 Jun 2009 11:16:04 +0000
(
04:16
-0700)
committer
David S. Miller
<davem@davemloft.net>
Fri, 7 Aug 2009 17:42:56 +0000
(10:42 -0700)
GCC can't see that flags is only set and used when PageHighmem() is
true.
Inspired by a patch from Jean Delvare.
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ide/ide-taskfile.c
patch
|
blob
|
history
diff --git
a/drivers/ide/ide-taskfile.c
b/drivers/ide/ide-taskfile.c
index
90e5c0d
..
3a5224c
100644
(file)
--- a/
drivers/ide/ide-taskfile.c
+++ b/
drivers/ide/ide-taskfile.c
@@
-225,8
+225,8
@@
void ide_pio_bytes(ide_drive_t *drive, struct ide_cmd *cmd,
ide_hwif_t *hwif = drive->hwif;
struct scatterlist *sg = hwif->sg_table;
struct scatterlist *cursg = cmd->cursg;
+ unsigned long uninitialized_var(flags);
struct page *page;
- unsigned long flags;
unsigned int offset;
u8 *buf;