From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2DBC7CE79AB for ; Wed, 20 Sep 2023 09:04:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233902AbjITJEg (ORCPT ); Wed, 20 Sep 2023 05:04:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233556AbjITJEZ (ORCPT ); Wed, 20 Sep 2023 05:04:25 -0400 Received: from mx0b-001ae601.pphosted.com (mx0a-001ae601.pphosted.com [67.231.149.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A50A7CF for ; Wed, 20 Sep 2023 02:04:19 -0700 (PDT) Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 38K3GoSr018911; Wed, 20 Sep 2023 04:03:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=PODMain02222019; bh=v Em9S6Wha8oGRe3mleV8+Gy4YEDfjz8SVmCnJA061Dw=; b=hHpaLLuGQLHxyjeS5 ZKQ2VhWfa7IdccTgbX8Cr05H+0NVvQ0NW8+J4ZQAuPS/k+v0FkVobzDuPGKBck+d T7yV74yxRea1DbmM0C/EgoRlnpVE5HE7otj7gOhWV8LDFmEHC5eTg93RscG6rJV5 zZXCe3kwq1SNw2PHEf6pswy4tV27BVrLepEPJVnRRIMfE1xh3334fAy31hUzrhc5 xG7eDrnAAnvgK+CvWprne+zAMec/pFRdeZHhCGvIgLlsrkJBpgEtF5ktqwPMTmCb xJ+s0jA0d1hu3JgSKOfjKehFzM8Uvs+QrcdWQwr+kYJNrKSgEhtag7jOUPuk4VWW Y6mvg== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 3t59ry572h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 20 Sep 2023 04:03:47 -0500 (CDT) Received: from ediex02.ad.cirrus.com (198.61.84.81) by ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.37; Wed, 20 Sep 2023 10:03:45 +0100 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by anon-ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server id 15.2.1118.37 via Frontend Transport; Wed, 20 Sep 2023 10:03:45 +0100 Received: from EDIN4L06LR3.ad.cirrus.com (unknown [198.90.238.129]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 0FD0511AA; Wed, 20 Sep 2023 09:03:45 +0000 (UTC) From: Richard Fitzgerald To: CC: , , , Richard Fitzgerald , kernel test robot Subject: [PATCH] ALSA: hda: cirrus_scodec: Select GPIOLIB for KUnit test Date: Wed, 20 Sep 2023 10:03:38 +0100 Message-ID: <20230920090338.29345-1-rf@opensource.cirrus.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: _F5HLFKgPHp6ijuj-437vxI4GfFRzN4h X-Proofpoint-ORIG-GUID: _F5HLFKgPHp6ijuj-437vxI4GfFRzN4h X-Proofpoint-Spam-Reason: safe Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The KUnit test for cirrus_scodec uses GPIO library functions so select GPIOLIB in Kconfig. This fixes the ld failures on builds that didn't already select GPIOLIB. ld: vmlinux.o: in function `cirrus_scodec_test_gpio_get': sound/pci/hda/cirrus_scodec_test.c:40: undefined reference to `gpiochip_get_data' ld: vmlinux.o: in function `cirrus_scodec_test_gpio_probe': sound/pci/hda/cirrus_scodec_test.c:94: undefined reference to `gpiochip_generic_request' ld: sound/pci/hda/cirrus_scodec_test.c:94: undefined reference to `gpiochip_generic_free' ld: sound/pci/hda/cirrus_scodec_test.c:95: undefined reference to `devm_gpiochip_add_data_with_key' Signed-off-by: Richard Fitzgerald Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202309201646.NnjfKPWk-lkp@intel.com/ Fixes: 2144833e7b41 ("ALSA: hda: cirrus_scodec: Add KUnit test") --- sound/pci/hda/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/pci/hda/Kconfig b/sound/pci/hda/Kconfig index 706cdc589e6f..21a90b3c4cc7 100644 --- a/sound/pci/hda/Kconfig +++ b/sound/pci/hda/Kconfig @@ -97,6 +97,7 @@ config SND_HDA_CIRRUS_SCODEC config SND_HDA_CIRRUS_SCODEC_KUNIT_TEST tristate "KUnit test for Cirrus side-codec library" if !KUNIT_ALL_TESTS select SND_HDA_CIRRUS_SCODEC + select GPIOLIB depends on KUNIT default KUNIT_ALL_TESTS help -- 2.30.2