From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933283AbYCABvK (ORCPT ); Fri, 29 Feb 2008 20:51:10 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758672AbYCABu5 (ORCPT ); Fri, 29 Feb 2008 20:50:57 -0500 Received: from einhorn.in-berlin.de ([192.109.42.8]:36058 "EHLO einhorn.in-berlin.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755608AbYCABu4 (ORCPT ); Fri, 29 Feb 2008 20:50:56 -0500 X-Envelope-From: stefanr@s5r6.in-berlin.de Date: Sat, 1 Mar 2008 02:50:44 +0100 (CET) From: Stefan Richter Subject: [PATCH 3/3] firewire: fw-ohci: shut up false compiler warning on PPC32 To: linux1394-devel@lists.sourceforge.net cc: linuxppc-dev@ozlabs.org, linux-kernel@vger.kernel.org In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=us-ascii Content-Disposition: INLINE Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Shut up two "may be used uninitialised in this function" warnings due to PPC32's implementation of dma_alloc_coherent(). Signed-off-by: Stefan Richter --- Wasn't there a macro somewhere for this? Also, could this be better done in PPC32's dma_alloc_coherent()? At least this kind of workaround here doesn't add anything to the compiled result. drivers/firewire/fw-ohci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: linux-2.6.25-rc3/drivers/firewire/fw-ohci.c =================================================================== --- linux-2.6.25-rc3.orig/drivers/firewire/fw-ohci.c +++ linux-2.6.25-rc3/drivers/firewire/fw-ohci.c @@ -544,7 +544,7 @@ static int context_add_buffer(struct context *ctx) { struct descriptor_buffer *desc; - dma_addr_t bus_addr; + dma_addr_t bus_addr = bus_addr; int offset; /* @@ -1334,7 +1334,7 @@ ohci_set_config_rom(struct fw_card *card unsigned long flags; int retval = -EBUSY; __be32 *next_config_rom; - dma_addr_t next_config_rom_bus; + dma_addr_t next_config_rom_bus = next_config_rom_bus; ohci = fw_ohci(card); -- Stefan Richter -=====-==--- --== ----= http://arcgraph.de/sr/