Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp806834rwb; Mon, 26 Sep 2022 06:11:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4eARyeqR9Afdyj54REYuUyyOL7jTydmd/FISud1UtfdiiP9SJ0jmEr408K6WIEBcLlJOUg X-Received: by 2002:a17:907:1df1:b0:779:4f57:6bb2 with SMTP id og49-20020a1709071df100b007794f576bb2mr18398793ejc.407.1664197877619; Mon, 26 Sep 2022 06:11:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664197877; cv=none; d=google.com; s=arc-20160816; b=JTH8ST31T/P31707HeiwjlcQP9sd79yDCJiWJuKqr8tQl/pW3mAwtpDQ4EdkLqyjtC xMNPcjVev+41lqw4uRtRjzRKsx3vtzYNAoCU5ukjNUqyt2J8siXz8pzxe1gk0P6nxVx9 DG+5zNY2MQguLEC1kfpEzsH9eC74bY/Aayny2saw8JZ7Xg8atJeuygj8jc4wGbNdZHyG zv1L9ZCm0L65EC5+aAyS5HJOGEblkUp+/PZ+RmZKQQJooohFk/hWFVgeih2uSMpobjUn n/q1/6Sa7NfsWh/DPXoiUZurvKowCL5DJkFRU57yfJBEoNFAG1FHYbKz2kiJfu6gQQbX d22A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=zrciDgxBrLlteIVXsriuQXPkfEUwGBiqDDEwiTZ/Hdc=; b=iyHLFVhn154P/rUoI+YyWLHChr9dZsUG9oTkYlgKRi7sdlZFkOuS62O7toqXmrR6B1 Y56RvUI3IyPz5RQDIvCfQ6ICKvXE+2gdTrb27pwrh5Uwsr2BPP0ID7twZUNdiufUQ8gT cMz6w3S5yWKJnVlLuuZfpGEu/ARU/i8A4JSa8+WZ6gX/y7a3CmU+IHHAyWVU9jzLsiaF /JQK1KJwbsoS9/x538256WDhGmQFmZmsxxtcDgaQfvGEFkmKAgS6Pu6nupz3SWfmL8tq 5tn/IrhD+SsbnOwRMB9F2WXwSM/OFzMUrQ49KC8HEKYUhYeaW1ZXQzIgZIIhqAIHb/lS JlsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=WFmPzTet; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cs10-20020a170906dc8a00b00775de3ca64bsi16481021ejc.92.2022.09.26.06.10.52; Mon, 26 Sep 2022 06:11:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=WFmPzTet; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236061AbiIZKg4 (ORCPT + 99 others); Mon, 26 Sep 2022 06:36:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236260AbiIZKeb (ORCPT ); Mon, 26 Sep 2022 06:34:31 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E50BD520BD; Mon, 26 Sep 2022 03:21:31 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 56FE560687; Mon, 26 Sep 2022 10:21:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6847DC433D7; Mon, 26 Sep 2022 10:21:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1664187689; bh=1Yxffo6S0sxdEzmShPd7nwhUaHoU5kt7FLFKSwqHfpc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WFmPzTetcl89O073mnAmnj6w/25lgZ8CCM4Wj1DCJXSI/D2ZBphVacuk1aajbI2za oLq5wtwlx7wcCuy9abMGS/Z5G4Lq33WX5izAMItlpUyDWqVsQK1/M9wESbD/1+N5lM 5Jllj9EeKVTkQ54nJ5N+dcdwM3ikP5Hkv0C61t8A= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Takashi Iwai Subject: [PATCH 5.4 028/120] ALSA: hda/sigmatel: Fix unused variable warning for beep power change Date: Mon, 26 Sep 2022 12:11:01 +0200 Message-Id: <20220926100751.680244014@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220926100750.519221159@linuxfoundation.org> References: <20220926100750.519221159@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Takashi Iwai commit 51bdc8bb82525cd70feb92279c8b7660ad7948dd upstream. The newly added stac_check_power_status() caused a compile warning when CONFIG_SND_HDA_INPUT_BEEP is disabled. Fix it. Fixes: 414d38ba8710 ("ALSA: hda/sigmatel: Keep power up while beep is enabled") Reported-by: kernel test robot Link: https://lore.kernel.org/r/20220905130630.2845-1-tiwai@suse.de Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/patch_sigmatel.c | 2 ++ 1 file changed, 2 insertions(+) --- a/sound/pci/hda/patch_sigmatel.c +++ b/sound/pci/hda/patch_sigmatel.c @@ -4445,7 +4445,9 @@ static int stac_suspend(struct hda_codec static int stac_check_power_status(struct hda_codec *codec, hda_nid_t nid) { +#ifdef CONFIG_SND_HDA_INPUT_BEEP struct sigmatel_spec *spec = codec->spec; +#endif int ret = snd_hda_gen_check_power_status(codec, nid); #ifdef CONFIG_SND_HDA_INPUT_BEEP