Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1255838rdb; Wed, 20 Sep 2023 04:23:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHv4mgokftDCUfIxqaFXplVaIcxf3YfeCl01sd7MmOrgSKUFrvuiTRnq99U3xlpYo0n1oiT X-Received: by 2002:a17:90a:4944:b0:274:9200:3973 with SMTP id c62-20020a17090a494400b0027492003973mr2257269pjh.36.1695208993273; Wed, 20 Sep 2023 04:23:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695208993; cv=none; d=google.com; s=arc-20160816; b=RDVzJ8bGskAKbd1POj5WCfc6YRH4vWZ4vp9XVgENZIPAhXdKBiDYpszeMY66toWrta im/4xq7YtNU7WcSqCSGEfsKx2MtG1+pkAzWJ38qWhaXUARV0ZqDl1hPCjNoRQY37pR8r lAXEtZyjr5ZqwmQjgEYbE2FwKZ9dZngmTiUtEQbyojWLOjUaKseJUCxSKC23IxN/aH+L 8BTEuNFjgSMGpC8SJVtIG6y6lbu78pPMAKf3Vb1Hxcg3Ay3gjdE06wdXzTRMDU3YBSkc 6SqxXiVRg/4yBdXEye5hSEXciGFZnrZpBR10vR5w/WBVyIyYVOuZwThfs3rLzNZPYrQZ OMNg== ARC-Message-Signature: i=1; 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=vEm9S6Wha8oGRe3mleV8+Gy4YEDfjz8SVmCnJA061Dw=; fh=hRHnlxVgxqzbvFACNW/7vZgtFmt5oNiTtduip9JrZ7U=; b=Fwj4XTRucLSDqfkYbz8IpdmxP0domk8xS/a3apF+6ojSiwm5wg28GZRH27bCDwofTe 4KWDXeYPS1vSDtVkVLl87M0cIG4E42uxqZd+64iaz5j+wCt/NfXg3shaR6UBRE8WFKPH G/faw90uos3qppWngtbgm1XJABxIbr3CnwnRg+bK0xqzkcgD36Yx6z+wP9GNl7Rg0m/4 3bwLR7OydBRb6S8RWQitCUihp0+SphVDHd+KQUVTtO3bn+mQscAsYaZ/QYR93IdnSHJY 4GQEyEnC2/dawgARKIipn20hSu+DQ6gpool+L8quWJX5POGFnUt/H5V/9ZpSiJVZXa0F LzFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=hHpaLLuG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id q15-20020a17090311cf00b001b02e044c87si11993063plh.320.2023.09.20.04.23.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 04:23:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=hHpaLLuG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 85B018266316; Wed, 20 Sep 2023 02:05:07 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233861AbjITJEd (ORCPT + 99 others); Wed, 20 Sep 2023 05:04:33 -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 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 20 Sep 2023 02:05:07 -0700 (PDT) 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