Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1268010ybt; Tue, 7 Jul 2020 11:24:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5Xy6FLLwNaOrhuX55aFH1CnoQOHy1nmUfzdM35SJJJb2qF9KJsTqs8+ugquY3v97k4pvp X-Received: by 2002:a50:f01d:: with SMTP id r29mr63133956edl.158.1594146261034; Tue, 07 Jul 2020 11:24:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1594146261; cv=pass; d=google.com; s=arc-20160816; b=K8zQTrnNGtevAHkNZN0Q4aSkJcbq5dG3DoKIyPuo1QV2OQbrhSxZxAyAX0Hs5XJnxa 6vtbT/sBOlb97BmcvSBMGea8iDdXReVnNdqJiVthKeLJUBrvkGTcGq1EA9wbIn9dF06f 3bwOvbVubdJ0uUveSPlQq4ckBLjxyEoA/wO9BFvjGrgMpr2/ESF993qCPaPvYrySYtgQ +KntgIx+sCBBzfjQB38rkDOaOKUxALC9ViFpGu6US+aNCsRKD7ApiUFULge1D+jsYpCC 8Mai5lRonn2maXY2upO7gRSk1qI1pPIsfRZKENsAp9bJQJv7Xok2H74ROvIV/Upk5soi 23ng== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=2F94W99POqoQSBmxK42um2mHvH+G1yyWqOlK2h/KgV8=; b=u8JrQcX4TonnDifr4hHFBGLFLkWX0BtzWhuaVniBptGQOxfarK4czn8miSBsWmvXSR i61LL7QSGhRnF8DH+6yeyzXLP7JJhmPp3kRFfVbrVy2p5LjAabYCgjYbl+vB4AUl2AqL K41Ppar4+Weewg3Bj5KCQybe26BXo5ON98xyq5MlHo+EUdxAqE0ZTMMRyT6comf8sX8Z RUZggHksRrw2S6cAev31yzlrOhGJYapALYKT2HKRNR77EVvW73letGf94DMiono7tR0v jBkOAypzce9ltYc21KmNJbpLyHDYY2H3wG926CWxwNEQQOot7qAHTeBinEyKLohoionq 7ftA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=BzY6t4LZ; arc=pass (i=1); 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 g26si14658132ejo.47.2020.07.07.11.23.57; Tue, 07 Jul 2020 11:24:21 -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=pass header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=BzY6t4LZ; arc=pass (i=1); 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 S1728626AbgGGSXa (ORCPT + 99 others); Tue, 7 Jul 2020 14:23:30 -0400 Received: from mail-mw2nam12on2050.outbound.protection.outlook.com ([40.107.244.50]:5345 "EHLO NAM12-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728232AbgGGSX0 (ORCPT ); Tue, 7 Jul 2020 14:23:26 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=es03veLVFg48Z9+iDAaDW2BOPqfipCtGj49inSKgjemh7XzBfDwinmy2pE6KdfNWZ7rzsNEOj/+FUHde5am+uFJE0kj0puHCuFq1k7WTNyT/XZ0vi2pZGleRtL3oYiUzthgLGBYg1brAp2ol/n9W8yfieqW/qKqIzl9QycqmzdP2Ba7LNbyuaN/v+1dUvO14aAaIFRBFmDVFLxjrkGBQJmSv2MtuMRLt1DeJzL1uIjBgY3BZ/CJhSTNe7rU0h+eECBL4b8X9g12cBsUW0notedU1Hq2ngQMJwj/lCqtcs+NZgL6lsZS/zQcLxzVCO+5IjMASfBGZLSRCGlBsetzLNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2F94W99POqoQSBmxK42um2mHvH+G1yyWqOlK2h/KgV8=; b=PEwsf+288xE45OJ6fyEXqoMZSEK1DyAvz76gXjweHMh/qwxmkoxAL6+IIxfUUhrwhS5G8EYRBpb9oNK2TyIPCLGRukxhA9emQIPkuL95NOji+DZGfET1WLiQXHPheF+xWMD24tVpDCJE5Q2RmIZjf5sIZcG8yt3SYyAaLY5w83wiq3T2t15NE9B0y7N0fHRG+7Eu3nqcD3tNTgUxJzG8I0zW3ev84n8TW17Vj/NKXBA40YmNqIPpbAhXZBG9eomiJTaSrk21TuMZ+Lt8OSMDbbZ5aLd91O+HX8tojdA3OwKaf4Bw62Xq9RZXjfudAAnIIBlDH1l05DLv782KotS2/Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none (sender ip is 165.204.84.17) smtp.rcpttodomain=alsa-project.org smtp.mailfrom=amd.com; dmarc=permerror action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector2-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2F94W99POqoQSBmxK42um2mHvH+G1yyWqOlK2h/KgV8=; b=BzY6t4LZA7///dCq2kH8nii9tZ96X8m5F/pGmlwetvoo0AH6eTHRfWvoP2337WYRhKuFVWWxYmvDOG8eoLBWubrxf45ATO4dD0CKniN0HlPgA3NZRlzAj10YSSBYWOaD8ON+3guEWLeHGLenqbuePUqNTuB1UqDqwCfBh52VbQs= Received: from DM5PR22CA0022.namprd22.prod.outlook.com (2603:10b6:3:101::32) by MWHPR12MB1614.namprd12.prod.outlook.com (2603:10b6:301:f::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.28; Tue, 7 Jul 2020 18:23:23 +0000 Received: from DM6NAM11FT066.eop-nam11.prod.protection.outlook.com (2603:10b6:3:101:cafe::b2) by DM5PR22CA0022.outlook.office365.com (2603:10b6:3:101::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.23 via Frontend Transport; Tue, 7 Jul 2020 18:23:22 +0000 X-MS-Exchange-Authentication-Results: spf=none (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; alsa-project.org; dkim=none (message not signed) header.d=none;alsa-project.org; dmarc=permerror action=none header.from=amd.com; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Received: from SATLEXMB01.amd.com (165.204.84.17) by DM6NAM11FT066.mail.protection.outlook.com (10.13.173.179) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.3153.24 via Frontend Transport; Tue, 7 Jul 2020 18:23:21 +0000 Received: from SATLEXMB06.amd.com (10.181.40.147) by SATLEXMB01.amd.com (10.181.40.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 7 Jul 2020 13:23:19 -0500 Received: from SATLEXMB01.amd.com (10.181.40.142) by SATLEXMB06.amd.com (10.181.40.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 7 Jul 2020 13:23:19 -0500 Received: from LinuxHost.amd.com (10.180.168.240) by SATLEXMB01.amd.com (10.181.40.142) with Microsoft SMTP Server id 15.1.1713.5 via Frontend Transport; Tue, 7 Jul 2020 13:23:16 -0500 From: Vijendar Mukunda To: CC: , , , Vijendar Mukunda , Liam Girdwood , Mark Brown , Takashi Iwai , Pierre-Louis Bossart , open list Subject: [PATCH] ASoC: amd: fixed kernel warnings Date: Wed, 8 Jul 2020 00:07:11 +0530 Message-ID: <1594147044-25582-1-git-send-email-Vijendar.Mukunda@amd.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SATLEXMB01.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFTY:;SFS:(4636009)(346002)(136003)(396003)(376002)(39860400002)(46966005)(5660300002)(186003)(356005)(6666004)(82310400002)(478600001)(82740400003)(81166007)(47076004)(26005)(2906002)(4326008)(6916009)(83380400001)(426003)(8676002)(8936002)(36756003)(86362001)(4744005)(70206006)(2616005)(336012)(316002)(7696005)(54906003)(70586007);DIR:OUT;SFP:1101; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3640dbaf-ee1a-4685-3b4f-08d822a2d49a X-MS-TrafficTypeDiagnostic: MWHPR12MB1614: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:346; X-Forefront-PRVS: 0457F11EAF X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: S6F3wRXBzutg6xYg1OSf834ekw51tKIpFRYwgQxNjZB3eEyciPrNhaFFAM7hjlWpq2p4b6mtwV59+JsqYZbrYU5C1tIC1Q5ZDP6Zr2dS1EzpOJMkmj2ccbf8JpRWDVW8RSHWse7VjWnZtxvLIaWFMtqD0DsY3+zOHYc40Zpd84+oSZSF9GxwfBQIxGc6usSEjOJLKCJ3LGokZ3IsTt7RusPGn9mFkFxmTvyg+NcUCfEUVHiwiv4ADw5XX4ktiQedcEQsEfIYzDa5xsh9p8AjbNcnPcFuklM+Vogdx5b2+E5/bPPmyLtBLvoTkOaVPAqARTYEqnt1iaBPTg1wmMvMUDE0Rvmq6Qg+pH0s1bIOOwTor3YBNJFa1XCnUzLaZ3ZWHF5gO+dNhmUboxz94hCzRA== X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2020 18:23:21.9019 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3640dbaf-ee1a-4685-3b4f-08d822a2d49a X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB01.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT066.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1614 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch will fix unused variables kernel warnings when CONFIG_ACPI is disabled. Reported-by: Randy Dunlap Signed-off-by: Vijendar Mukunda --- 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; -- 2.7.4