From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julian Calaby Subject: Re: [PATCHv4 3/4] sparc64: Avoid irqsave/restore on vio.lock if in_softirq() Date: Wed, 22 Oct 2014 09:42:13 +1100 Message-ID: References: <20141021141647.GF15405@oracle.com> <20141021223952.GA26724@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: "David S. Miller" , netdev , sparclinux To: Sowmini Varadhan Return-path: In-Reply-To: <20141021223952.GA26724@oracle.com> Sender: sparclinux-owner@vger.kernel.org List-Id: netdev.vger.kernel.org Hi Sowmini, On Wed, Oct 22, 2014 at 9:39 AM, Sowmini Varadhan wrote: > On (10/22/14 09:35), Julian Calaby wrote: >> > void vio_port_up(struct vio_driver_state *vio) >> > { >> > - unsigned long flags; >> > + unsigned long flags = 0; >> >> Is gcc not smart enough to know that this variable isn't used before >> it's set? (I assume it isn't used elsewhere in this function) > > No, it's not used elsewhere in the function, and yes, I too was > surprised by the build warning, which is why I initialized it > as above. Ok, fair enough then. Thanks, -- Julian Calaby Email: julian.calaby@gmail.com Profile: http://www.google.com/profiles/julian.calaby/