diff options
| author | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2008-03-13 19:27:49 -0400 |
|---|---|---|
| committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2008-03-13 19:57:00 -0400 |
| commit | f5101d58afc528c1d0c863fe03cd2d607766c4a1 (patch) | |
| tree | 75bf5fd197dc30da063df1b92a42ca869c6dccd8 /drivers/firewire | |
| parent | bde1709aaa98f5004ab1580842c422be18eb4bc3 (diff) | |
firewire: fw-ohci: shut up false compiler warning on PPC32
Shut up "may be used uninitialised in this function" warnings due to
PPC32's implementation of dma_alloc_coherent().
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/firewire')
| -rw-r--r-- | drivers/firewire/fw-ohci.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/firewire/fw-ohci.c b/drivers/firewire/fw-ohci.c index fcf59fcae1bc..996d61f0d460 100644 --- a/drivers/firewire/fw-ohci.c +++ b/drivers/firewire/fw-ohci.c | |||
| @@ -281,7 +281,7 @@ static int ar_context_add_page(struct ar_context *ctx) | |||
| 281 | { | 281 | { |
| 282 | struct device *dev = ctx->ohci->card.device; | 282 | struct device *dev = ctx->ohci->card.device; |
| 283 | struct ar_buffer *ab; | 283 | struct ar_buffer *ab; |
| 284 | dma_addr_t ab_bus; | 284 | dma_addr_t uninitialized_var(ab_bus); |
| 285 | size_t offset; | 285 | size_t offset; |
| 286 | 286 | ||
| 287 | ab = dma_alloc_coherent(dev, PAGE_SIZE, &ab_bus, GFP_ATOMIC); | 287 | ab = dma_alloc_coherent(dev, PAGE_SIZE, &ab_bus, GFP_ATOMIC); |
| @@ -536,7 +536,7 @@ static int | |||
| 536 | context_add_buffer(struct context *ctx) | 536 | context_add_buffer(struct context *ctx) |
| 537 | { | 537 | { |
| 538 | struct descriptor_buffer *desc; | 538 | struct descriptor_buffer *desc; |
| 539 | dma_addr_t bus_addr; | 539 | dma_addr_t uninitialized_var(bus_addr); |
| 540 | int offset; | 540 | int offset; |
| 541 | 541 | ||
| 542 | /* | 542 | /* |
| @@ -1321,7 +1321,7 @@ ohci_set_config_rom(struct fw_card *card, u32 *config_rom, size_t length) | |||
| 1321 | unsigned long flags; | 1321 | unsigned long flags; |
| 1322 | int retval = -EBUSY; | 1322 | int retval = -EBUSY; |
| 1323 | __be32 *next_config_rom; | 1323 | __be32 *next_config_rom; |
| 1324 | dma_addr_t next_config_rom_bus; | 1324 | dma_addr_t uninitialized_var(next_config_rom_bus); |
| 1325 | 1325 | ||
| 1326 | ohci = fw_ohci(card); | 1326 | ohci = fw_ohci(card); |
| 1327 | 1327 | ||
