Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2940400imw; Wed, 6 Jul 2022 14:31:34 -0700 (PDT) X-Google-Smtp-Source: AGRyM1thsIwbWRvnAiyH5sjEsT1LmUzFju91u1FNpqltfKkWbwlgb2ptVTPqjybb2xCnSfjQVuKX X-Received: by 2002:a17:903:1ca:b0:16b:edb8:e34e with SMTP id e10-20020a17090301ca00b0016bedb8e34emr14037247plh.158.1657143094633; Wed, 06 Jul 2022 14:31:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1657143094; cv=pass; d=google.com; s=arc-20160816; b=JbrOEUVe+2hV62JqMy/SJe5EDDX0W1uhwDgvnmY0fw6yTA6CRLEhgZUIbxcENdQQh8 Y3k0TQXrZZkgL8Lja2ZJxPQECAatNEOM2UaEWmRNE5HvxgD2zzXRiiplFNDGZ+Uk+U6A YWUy0lqRczyR7gota67I6oMY7UAvoUlDaTODt+lmM/QJHYPoTjIkkmvzKFMRLic4p02t JptWTYSuuMAcdV+POmA9LAnZqz/EBzoL9MTbxKrHPYeUK2Vv9EGoBqnTSTdlFEz52n5Q m9Mh4+0K8g87JX3+fBLnJwCVkgGlnd9vNGH3RmKtitKKkBrqf2PLoSEPODeS4O3vh/OW n6wQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=zg9FzvsIxxtolhQY+9z3FN7fhfbdxEsDqXPdq33gD/w=; b=mYzKp3Vc4ME+9hYX8bQ+zyIlJTEWc+63/o5wZtK942AsF4QYyxUilRv5URBpukmNhp vO35TrgW4Vc4MhjDfIdYoD5/xzPWutb28y1RCp0FPZfa0qdG7CwlOcVCj6Mv21PjtHJs fkmpLJyPdRKkxtY9hHFicudUR9NHEWh+SbYED0CygXleOfWrbbZ52LCHZ4MOBkWpWlaX uxJIqxJJ8v3qiilrcpysiu4xZEJrNztpDT0i5Qm6hpMgDTdj/dfT7L4WzjAs/ROjG6eg 9cBkKAXuuD0QFEzbkwYyczsN5zk2sl1wGOlFydFg9wyROlO/zGninTtRX1PbSw6yOiH0 3dVQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=vYQy0CRO; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pb4-20020a17090b3c0400b001efbc3e2d70si2156349pjb.68.2022.07.06.14.31.20; Wed, 06 Jul 2022 14:31:34 -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=@amd.com header.s=selector1 header.b=vYQy0CRO; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233928AbiGFUzf (ORCPT + 99 others); Wed, 6 Jul 2022 16:55:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230268AbiGFUze (ORCPT ); Wed, 6 Jul 2022 16:55:34 -0400 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on2080.outbound.protection.outlook.com [40.107.102.80]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E872A1EC4E for ; Wed, 6 Jul 2022 13:55:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ABgfj2eZYEoACNFAwSNBqQUwPQYQp8+Qc0NT2FXnUh39wjzlhlzF/a9sd/4wjFCJpEDrHdnSa0XUxoYQV3StO6raerKCJuqpKr6oFsx5PF1gCf0a1BWodGIlLwTxuXca5LA+Ba4llcVRec4sPZK4Z1M0Ylrfj4lYwW9FpfaXxRvzenQQ29Tzd41R1eU/cuwD5IS733/8E6OS059EMXW4u4KfWzBdOl23okm0Xy4PCHWdPz+iN9L0ZrX+2qyJWn7Ue4cFOAV4arznxKyv5Z1p5ISsGyOEuWBVOtwRXbZ/4s4R5wYq9kDaP3NQxOSA/fRzx6Y6qW6acOCVlOH4yLaufw== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=zg9FzvsIxxtolhQY+9z3FN7fhfbdxEsDqXPdq33gD/w=; b=CLy9uE/o3NYQlZICxsW0g24TKGXuT7/C2rzJ97/DWQ7eq4VhNhk0JPyghYwpYd0Lo9RTK0nWEGAdF3faS+2IioDCgNkqgrtnH6Uh5PcQsgYctI7EiqUhk4yMF6zRvCEAMguWA0eI5dNqEj6+uLYy3ezohIpY0mMm/EOvIP+5VyhOyA+wUTpRtKYJjtHFC+aGPHDG5cvT7F5av2/m+5UP5C2dFUoZc2mdevGafPW4uPWrlLyPWtnwxz/dud/BG6bsp6+dcKm76EmZq5y7j2zreBZhyfIMRr+LnZqRwdcRI+hMuN7D0Q5dnEceiNbpYAybxXYtJHGFHfuSSMMBcUcASA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=kernel.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zg9FzvsIxxtolhQY+9z3FN7fhfbdxEsDqXPdq33gD/w=; b=vYQy0CRO4kR/ka0gIuYZJKorL6kcw/xaFXRa3Yb27ciV90StZkiSXTLzD7lOrT/Gy4aVGoOzlsed/gkaeQ0Wza3XlApirsnUSLunPH1RG1fPoxE9h+/d6XFZ7mPCvmAc44HLRHGaHq+0ZEm51DBSblxB+bi7hEI+AdzsC9l9dQQ= Received: from MW4PR03CA0017.namprd03.prod.outlook.com (2603:10b6:303:8f::22) by BN6PR12MB1411.namprd12.prod.outlook.com (2603:10b6:404:1f::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.17; Wed, 6 Jul 2022 20:55:30 +0000 Received: from CO1NAM11FT005.eop-nam11.prod.protection.outlook.com (2603:10b6:303:8f:cafe::8a) by MW4PR03CA0017.outlook.office365.com (2603:10b6:303:8f::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.22 via Frontend Transport; Wed, 6 Jul 2022 20:55:29 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by CO1NAM11FT005.mail.protection.outlook.com (10.13.174.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5417.15 via Frontend Transport; Wed, 6 Jul 2022 20:55:29 +0000 Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Wed, 6 Jul 2022 15:55:28 -0500 Received: from vijendar-X570-GAMING-X.amd.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2375.28 via Frontend Transport; Wed, 6 Jul 2022 15:55:23 -0500 From: Vijendar Mukunda To: , CC: , , , , Vijendar Mukunda , kernel test robot , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Ajit Kumar Pandey , "Pierre-Louis Bossart" , Daniel Baluta , Julian Braha , Lucas Tanure , open list Subject: [PATCH] ASoC: amd: fix ACPI dependency compile errors and warnings Date: Thu, 7 Jul 2022 02:25:14 +0530 Message-ID: <20220706205515.2485601-1-Vijendar.Mukunda@amd.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1c0d3ac8-dddb-4371-fb21-08da5f91dc2a X-MS-TrafficTypeDiagnostic: BN6PR12MB1411:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Za+/XcVOk8MupTHmoELG5ejcOQCC2ohqA9Pw0ezp1ahpvh01cmXYbmd/JDkTC4h6VW+0Ty8NEmnX/2widlRMr1ELjSlcvWnDt4Nw3vRwMHGO0mwSiWR6SpL3hv9JmUaLNotxAniy1w05YSoWkShjMM2UqPqNHNiEQgVdST7twcGFxbdzMZJcGMZ+uJ8FvIYvK/ZWIsJrVkWHCFBio0Xdm1SRSNJY5acx4XSKhvsP/hnpWLNlqUZpAzkGTDY4I98JZn+EbT1m0IXAzggfqXOiJQZRfccbEqJXQG5O78BqMrOkyfwBLIpNirb+rDcxE7dZk/p/BmcYUQptq2v3/uUgIYmiv1Shcx3RVsvCL9Q4Th8WB+abS7H3vMJjf87mOShxf3XAMVtUXVRX61gTvXlC6ONJB1Mq5SRuv3GSaU0/VkYZ2JfK4KIjwOqaCCBqMKJ6S1bh+01AfJKspVNfjqV/ZR7rYmnCBYQEPfFZkAFHGOH25boFprFCfb+t0JvHpgaJr3TtLNYN/w6iapNf3mMExsvglkqiVs1z6tXMX5vro4wVT4SvFfGQcBxI9ygcHNatB8HtQlqnYX/O1Whx7EKxUyd7V4VSB2c1NzXLIMlQE+C2heL5tFbbIgbuGU9m0eeiwzVofzJTcgvLGgq1+wvmxL+W9MaKWxW3gZ+zxAfPXhgfb/egnGqmT5ppseaCf1CRmhMJvEH/MSkXZ8Ka3nlg4S5c9BeVg/wwcRfYFrkr7rM6NuH/8aVDNl6CLjeaDchV5f032/WnriJxTnwH1d1Jnf375sa5ZD3GsLLOwQ7r4QIfTB07xUIVyPBdIgwxFdWu0L2ZXHWsuHId7lgxC+Fs6FeguPJcOOmtkaD9bFqc4zNUpwmUx8aeWdZz+/zmV4K2 X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230016)(4636009)(136003)(346002)(396003)(376002)(39860400002)(36840700001)(46966006)(40470700004)(47076005)(110136005)(40460700003)(336012)(426003)(82310400005)(54906003)(36756003)(186003)(26005)(83380400001)(316002)(1076003)(86362001)(2616005)(5660300002)(70206006)(70586007)(34020700004)(81166007)(2906002)(36860700001)(40480700001)(7416002)(7696005)(478600001)(8936002)(8676002)(4326008)(6666004)(41300700001)(356005)(82740400003)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2022 20:55:29.3172 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1c0d3ac8-dddb-4371-fb21-08da5f91dc2a 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=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT005.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1411 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Fixed ACPI dependency complie errors and warnings as listed below. All warnings (new ones prefixed by >>): sound/soc/soc-acpi.c:34:1: error: redefinition of 'snd_soc_acpi_find_machine' 34 | snd_soc_acpi_find_machine(struct snd_soc_acpi_mach *machines) | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from sound/soc/soc-acpi.c:9: include/sound/soc-acpi.h:38:1: note: previous definition of 'snd_soc_acpi_find_machine' with type 'struct snd_soc_acpi_mach *(struct snd_soc_acpi_mach *)' 38 | snd_soc_acpi_find_machine(struct snd_soc_acpi_mach *machines) | ^~~~~~~~~~~~~~~~~~~~~~~~~ sound/soc/soc-acpi.c: In function 'snd_soc_acpi_find_package': sound/soc/soc-acpi.c:58:36: error: implicit declaration of function 'acpi_fetch_acpi_dev'; did you mean 'device_match_acpi_dev'? [-Werror=implicit-function-declaration] 58 | struct acpi_device *adev = acpi_fetch_acpi_dev(handle); | ^~~~~~~~~~~~~~~~~~~ | device_match_acpi_dev >> sound/soc/soc-acpi.c:58:36: warning: initialization of 'struct acpi_device *' from 'int' makes pointer from integer without a cast [-Wint-conversion] sound/soc/soc-acpi.c:64:25: error: invalid use of undefined type 'struct acpi_device' 64 | if (adev && adev->status.present && adev->status.functional) { | ^~ sound/soc/soc-acpi.c:64:49: error: invalid use of undefined type 'struct acpi_device' 64 | if (adev && adev->status.present && adev->status.functional) { | ^~ sound/soc/soc-acpi.c:80:26: error: implicit declaration of function 'acpi_extract_package' [-Werror=implicit-function-declaration] 80 | status = acpi_extract_package(myobj, | ^~~~~~~~~~~~~~~~~~~~ sound/soc/soc-acpi.c: At top level: sound/soc/soc-acpi.c:95:6: error: redefinition of 'snd_soc_acpi_find_package_from_hid' 95 | bool snd_soc_acpi_find_package_from_hid(const u8 hid[ACPI_ID_LEN], | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from sound/soc/soc-acpi.c:9: include/sound/soc-acpi.h:44:1: note: previous definition of 'snd_soc_acpi_find_package_from_hid' with type 'bool(const u8 *, struct snd_soc_acpi_package_context *)' {aka '_Bool(const unsigned char *, struct snd_soc_acpi_package_context *)'} 44 | snd_soc_acpi_find_package_from_hid(const u8 hid[ACPI_ID_LEN], | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sound/soc/soc-acpi.c:109:27: error: redefinition of 'snd_soc_acpi_codec_list' 109 | struct snd_soc_acpi_mach *snd_soc_acpi_codec_list(void *arg) | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from sound/soc/soc-acpi.c:9: include/sound/soc-acpi.h:51:41: note: previous definition of 'snd_soc_acpi_codec_list' with type 'struct snd_soc_acpi_mach *(void *)' 51 | static inline struct snd_soc_acpi_mach *snd_soc_acpi_codec_list(void *arg) | ^~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Vijendar Mukunda Reported-by: kernel test robot --- sound/soc/amd/Kconfig | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sound/soc/amd/Kconfig b/sound/soc/amd/Kconfig index c373f0823462..9629328c419e 100644 --- a/sound/soc/amd/Kconfig +++ b/sound/soc/amd/Kconfig @@ -25,10 +25,9 @@ config SND_SOC_AMD_CZ_RT5645_MACH config SND_SOC_AMD_ST_ES8336_MACH tristate "AMD ST support for ES8336" - select SND_SOC_ACPI + select SND_SOC_ACPI if ACPI select SND_SOC_ES8316 - depends on SND_SOC_AMD_ACP - depends on ACPI || COMPILE_TEST + depends on SND_SOC_AMD_ACP && ACPI depends on I2C || COMPILE_TEST help This option enables machine driver for Jadeite platform -- 2.25.1