Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1273366ybt; Tue, 7 Jul 2020 11:32:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwIC7M1Ozw6v5VanoC28aq1/dWi7bz5yglj0EAPCkFTaIQ1sz9jXhJqZJY1Ah3I+CBXJ677 X-Received: by 2002:a17:906:148a:: with SMTP id x10mr51481923ejc.497.1594146750303; Tue, 07 Jul 2020 11:32:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594146750; cv=none; d=google.com; s=arc-20160816; b=aq3StG0aW8HorPsTP/037Cc9QqfSTvdi12oiAxlZDvxECEwm2923YcJZwH3XAq4p7q dZ7IT3H53PiAzQc1yVUSqNYD/N/pJvOiFIs0M+bIArVrq2NPFpXGmEMJHeReF7QoIpk/ /f/oZrtfQP2tr23MNnG6R+zc7CABjDst2di8nDNpbGaTPKINfsM8AU86zEtBpfLDVwGO 0zCNlKFzTp9nbvqZOSqw//wWcmHKkmysxnu+YPt4LXcKlZbM0WVr7KFQse7u2AEpo/A7 1R88mWGfMzzqaAIL03Eo4zEk20auW1tk7i23tFqBkkWr3fJ3dSyWcv59Ooi2+oXVRyfF oe3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=HdjdBEuc09gbzMxr+upySCFBU+l5DWJracRk3eLkb5k=; b=IFlvpqziF47A88hXfwJ26zLF0aZBFSpJb4l8ZEbJPrvOamocryJwjvnYbVKiooIDro nhSymlhzeYHqtByytdA72H/OtQGU9SpYAEDaWAzGDj0VktyBXWwj0eV5iOX348ZkrMqD pw6JOb+GYXUco1HhQL3EGQ6un48y5rs3MU0qH2CJcUeB9qholgfNCRr1zWwDooZPTHXj 3i5AtGfIMEwvnQRMSaWAAVQ57mK5ignV5FF5Dh7CX9L28E9z4iyDgoyEdGRq4U24PaWA E/UmrY22NNd+3lLql98mQjFVvH7/0aezn9f+NVTw97IL8a6zeVTwEgrR/2HoleJQBIfO Aexg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=bS2w02uS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u26si14674071edy.187.2020.07.07.11.32.07; Tue, 07 Jul 2020 11:32:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=bS2w02uS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728644AbgGGS2T (ORCPT + 99 others); Tue, 7 Jul 2020 14:28:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728073AbgGGS2S (ORCPT ); Tue, 7 Jul 2020 14:28:18 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 738D1C061755 for ; Tue, 7 Jul 2020 11:28:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description; bh=HdjdBEuc09gbzMxr+upySCFBU+l5DWJracRk3eLkb5k=; b=bS2w02uSm9hW3I8+AMkkcpCEbn XN8pQCM13CWfkQ5uQ4ppHLpxPdZxCOI0PdbNq4Cc9uqWreqM3RSOwm/765ebRg7mHq0DgcUrBxWXj ZkwSeHfiVnrmqwB4gdgmDvdG+A941vlG2CSLf5OYI+2O6BEbvTX8mUCfFKpD+sV0MnoSEtEoLmcUu 3zBMEV/xD3Lda8CQ427aiFG1pFyXh5q4ucuFJCquMmqi9uQx/yEnDB2A1ujfwyVLlvml+/kiFKkEF dkzfYpdcARrhYT1Rw+HRlkT2shnPNGRgf7eKmU+mVe2Xvoq6fGs7Koa+5l0CiOuiCM+7BSBOc2+fC ZOcMbgJg==; Received: from [2601:1c0:6280:3f0:897c:6038:c71d:ecac] by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jssKE-0005ig-5g; Tue, 07 Jul 2020 18:28:15 +0000 Subject: Re: [PATCH] ASoC: amd: fixed kernel warnings To: Vijendar Mukunda , alsa-devel@alsa-project.org Cc: perex@perex.cz, Alexander.Deucher@amd.com, Liam Girdwood , Mark Brown , Takashi Iwai , Pierre-Louis Bossart , open list References: <1594147044-25582-1-git-send-email-Vijendar.Mukunda@amd.com> From: Randy Dunlap Message-ID: <9f2cde61-590d-6a68-295b-62f026f729b3@infradead.org> Date: Tue, 7 Jul 2020 11:28:10 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <1594147044-25582-1-git-send-email-Vijendar.Mukunda@amd.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/7/20 11:37 AM, Vijendar Mukunda wrote: > This patch will fix unused variables kernel warnings when > CONFIG_ACPI is disabled. > > Reported-by: Randy Dunlap > Signed-off-by: Vijendar Mukunda Acked-by: Randy Dunlap # build-tested Thanks. > --- > sound/soc/amd/renoir/rn-pci-acp3x.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/sound/soc/amd/renoir/rn-pci-acp3x.c b/sound/soc/amd/renoir/rn-pci-acp3x.c > index 165c93f..b943e59 100644 > --- a/sound/soc/amd/renoir/rn-pci-acp3x.c > +++ b/sound/soc/amd/renoir/rn-pci-acp3x.c > @@ -168,8 +168,10 @@ static int snd_rn_acp_probe(struct pci_dev *pci, > { > struct acp_dev_data *adata; > struct platform_device_info pdevinfo[ACP_DEVS]; > +#if defined(CONFIG_ACPI) > acpi_handle handle; > acpi_integer dmic_status; > +#endif > unsigned int irqflags; > int ret, index; > u32 addr; > -- ~Randy