Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965863AbcDLSwD (ORCPT ); Tue, 12 Apr 2016 14:52:03 -0400 Received: from mx2.suse.de ([195.135.220.15]:51235 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964811AbcDLSwB (ORCPT ); Tue, 12 Apr 2016 14:52:01 -0400 Date: Tue, 12 Apr 2016 20:51:59 +0200 Message-ID: From: Takashi Iwai To: Paul Bolle Cc: Greg Kroah-Hartman , Libin Yang , linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH 4.5 128/238] ALSA: hda - Fix missing ELD update at unplugging In-Reply-To: <1460486340.25714.10.camel@tiscali.nl> References: <20160410183456.398741366@linuxfoundation.org> <20160410183503.651874957@linuxfoundation.org> <1460486340.25714.10.camel@tiscali.nl> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/24.5 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1220 Lines: 36 On Tue, 12 Apr 2016 20:39:00 +0200, Paul Bolle wrote: > > On zo, 2016-04-10 at 11:35 -0700, Greg Kroah-Hartman wrote: > > --- a/sound/pci/hda/patch_hdmi.c > > +++ b/sound/pci/hda/patch_hdmi.c > > @@ -1670,11 +1670,10 @@ static void sync_eld_via_acomp(struct hd > > int size; > > > > mutex_lock(&per_pin->lock); > > + eld->monitor_present = false; > > size = snd_hdac_acomp_get_eld(&codec->bus->core, per_pin->pin_nid, > > &eld->monitor_present, eld->eld_buffer, > > ELD_MAX_SIZE); > > - if (size < 0) > > - goto unlock; > > This hunk triggers an obviously correct warning: > sound/pci/hda/patch_hdmi.c: In function 'sync_eld_via_acomp': > sound/pci/hda/patch_hdmi.c:1695:2: warning: label 'unlock' defined but not used [-Wunused-label] > unlock: > ^ > > It's trivial to silence this warning for the v4.5 stable build, of > course. But I never saw this warning in my v4.6-rc builds, so it's > possible another patch should also be included in the v4.5 stable tree. > Takashi? The newer kernel has more code jumping to unlock label, so it's a warning seen only on 4.5 kernel. If this really matters, we'd need a non-upstream fix to paper over it. thanks, Takashi