Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp830066rwb; Mon, 26 Sep 2022 06:27:08 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5cfPXM2T60+SqDPJj1/MxGKtEQ8/GGip9GV1JiQxFJAxdRZvwfxKJg1TlSkbgfZB+cpBo7 X-Received: by 2002:a17:906:6a23:b0:782:e8:1b7d with SMTP id qw35-20020a1709066a2300b0078200e81b7dmr18171479ejc.127.1664198827700; Mon, 26 Sep 2022 06:27:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664198827; cv=none; d=google.com; s=arc-20160816; b=gdzci49rAz5GJRUUg+ydOOZmQ2kBOg3hgDzMdf22VEjFZ3L76eke0gIDXMjeCU0Lb9 UyOOrUk/mu5Yb3if31hBd0cTDTmIVen/d067B/h7dwxUqGhnGGFxYX/VDgLJFVj0zPOE z1j9ENR+VtAru9OzVWzUnpf2X9T1CO0wNa/nHURCPQtCZ0eeqd20jhjDHj/GO2/LYsa+ LVgSNLSuOIxZ3pBps5QNFN0JNMm4XZQxH41JBt2kPpcS1R0PWluJqdRJhpaem956v5LG wTmwdb2c493AIZjuzlFt74ooDORAZ23MmPofwKVX9U4KXPtRuH7+SyhQtzP+oCAd86O3 bcAg== 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=lhPBilpHwq+7QrrFd0VfpFfzqsWmkDL8FBtwTWIeuzY=; b=xudOx0orcEG1PVIDmDc7FbiJRwjXeJL5sudoktrwNBbHJGAcQahP06IzWKwN98On64 5nvucW/kkp/rfdmV7rjV/fdAZJzCtHbNCFZdZqaxMPioQK2xuBp7d8LGt2KMlZFmISJl ggpa2kJlFsOZV33GIlS/Z7GQddmtAahkaZuSYDH25kdZO6ZY8bT3lpJIQL2sLTcMcuMU PkBfOABzH+TDb7Wny6iqdbk8DDvh3lrB3QPb0sz2s2Zh5HzMSlVub/EAbhAsS1HDBKu5 xP4TFCSlKy+TSehVCEI09H4UXu89FF90cwyZANOa9mbtrMh4SzJ0rU3Vj8wy+Lm/C6hl z3rQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rrJaCzpK; 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 b8-20020a056402278800b0044ee78106ccsi17598873ede.174.2022.09.26.06.26.40; Mon, 26 Sep 2022 06:27:07 -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=rrJaCzpK; 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 S235800AbiIZKcM (ORCPT + 99 others); Mon, 26 Sep 2022 06:32:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235888AbiIZK3a (ORCPT ); Mon, 26 Sep 2022 06:29:30 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E2042BB; Mon, 26 Sep 2022 03:19: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 ams.source.kernel.org (Postfix) with ESMTPS id 9A0DBB80924; Mon, 26 Sep 2022 10:19:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DFF58C433C1; Mon, 26 Sep 2022 10:19:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1664187568; bh=cdHcAB4/dis4RO+D6MmA8ltr6MyAr4cUR1crfy3Nswo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rrJaCzpKMFFJcXSAA8QrNNViMQLWqo7o3JC5xLD+4xSzbWHYqA2w5rxaj5PusWQif kFxI1ePH8AKpn+TzNVpeCfM4kgvAyRc0cEIW/LeIoTbEGPr6UJRK8zvgD20yxqN6aj N2Um/SiNwZxYLl2PILWWGLHKfOyZBTyUrb0CJ30c= 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 4.19 18/58] ALSA: hda/sigmatel: Fix unused variable warning for beep power change Date: Mon, 26 Sep 2022 12:11:37 +0200 Message-Id: <20220926100742.105349650@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220926100741.430882406@linuxfoundation.org> References: <20220926100741.430882406@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 @@ -4467,7 +4467,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