lkml.org 
[lkml]   [2020]   [Jul]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] ASoC: amd: fixed kernel warnings
From
Date
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 <rdunlap@infradead.org>
> Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>

Acked-by: Randy Dunlap <rdunlap@infradead.org> # 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

\
 
 \ /
  Last update: 2020-07-07 20:30    [W:0.050 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site