From patchwork Sun Feb 4 21:21:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 196588 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp536533dyb; Sun, 4 Feb 2024 13:21:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IG6txM1+zOZxqkYcmjlxW1tTsAmwYde1Qz+geztYd1z1+I8s/bZFCwNmWyTairARBrsuukL X-Received: by 2002:a0c:e493:0:b0:68c:9307:3021 with SMTP id n19-20020a0ce493000000b0068c93073021mr6203997qvl.47.1707081716569; Sun, 04 Feb 2024 13:21:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707081716; cv=pass; d=google.com; s=arc-20160816; b=ujh6cVgUEJM4YOvmJgOudCShxQbyt4UUImYaEQCtm3LNN34VWSFMG/h/ZfgB4hXlQs f1oynzOTl9LA2NoocH3+Jy0z2V7YPlwFQ5uEkuSR0Tk7Sh73OQf0P5K+oMFQaU7c4ODh iV8qKd9sM5ink6rZr2eMNbBtabnpZbspfnK9pIG+T/MPcnMK+GT8dGpfjtNF3m1QErnE 3BTvKs1ZsZvA4B4WxfjpcZWY+h5GiDamjOI08ItM3BUvddH5J1ts7lneZOIzRQ2Mppfa e5g71nyPUfVZIX12HQRBbvdWGyffDUcay5CRRe3xhQnqlkUgv+ueeqlB4/4ljn/MA3Hk C4vg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=XkVcSrJqEkiK9cVD4iOQjZhaPtrkhXM92Ax8k9/NTtE=; fh=BMe49BfpebIabsvLthgFLJyVOX/qkfKfFwXqUkSFhlY=; b=EVIKClglZruxVjuNHeSH+vf2guoHlfd6P98bbs5dD1fUyWKFqaw3IZFYPH3vE0Cgrd ei7E6JA8V15NwALxh+d8sCHUNE+IwrOxTY5Y9t++AGk3kcio+qYJIyQIu6ZmTtAZo0XO sB+CjQ10CYRtNlXWkeTSQq0EEnznXbNa5msGx1QVLuDM3P9ODH6ZLADqRo7p9gVNQVIi Vy3tJnfINNPLQPqGaB9J5f/nAycGzmAIV/leWRnajLnuknZ+5RW8ji9w+PD4PBLdwkiE kRnz81fsboyhTSIPvPDbakgyUIHg0VY8Q72/ZBTzlbNwzjLmh2skSwuiyaGjHcqu16O6 lREw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NhbfXbv7; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-51908-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51908-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCX3ijN4Uah+3QWfe+eeX1rTze2sMU5xmQ9WSl257u0c2VZU6qaQPJ/38cjrRzTAmvn/iFip1lC1OHCaNHBISY9FVfoiLg== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id b8-20020a0cc988000000b0068c4b4cb168si6860061qvk.534.2024.02.04.13.21.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Feb 2024 13:21:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51908-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NhbfXbv7; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-51908-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51908-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 5CA271C213F6 for ; Sun, 4 Feb 2024 21:21:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CB7C32C695; Sun, 4 Feb 2024 21:21:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="NhbfXbv7" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 328DC2C1BA; Sun, 4 Feb 2024 21:21:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707081701; cv=none; b=ixvyK+AmiBBZ+Ao5vaYdkCKYG/BdVien/aYBjs2HRG0/mCm11iohbuxNzXhbij18xdIRJIIsMn8GS+QL9sZbD0ibPd+dR1AAHrD1LNKEW0/fbUOrdnckAAmU+4ERirWavvRWywl4Yy3mJbMZ+Y4uOtmpqHNaI7bgWk8asJd81zY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707081701; c=relaxed/simple; bh=46lfg4YvExRXyYOJW3a3RfaHnPfPgRlFNivzHCniyQY=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=sWoUSgCPKzUg7iCmKQ9jXTjgI1K5UgL+68USKMCqG6x64uhxgGnH87OVkPaFQayLmKBnyeVtXCvEcGI7CArMWrovRTO2KFiNyGxUv0EnhVc8LmVouX073SKSJddyWgHvT1spixkl663olCgbn1cRl2UxrJ8qz3zQPrIo+l29QWc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=NhbfXbv7; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4AA86C433F1; Sun, 4 Feb 2024 21:21:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707081700; bh=46lfg4YvExRXyYOJW3a3RfaHnPfPgRlFNivzHCniyQY=; h=From:To:Cc:Subject:Date:From; b=NhbfXbv7OsKRFXgM/C8i8RC/iRkajLh1NfWDxS3lNten1YhaVI3w4gSjrZRf61r0g 9TLWQV6hTJzy10YWjaChJ038FNORS35+P8nlSFOsUgPiqH14VU166lPWjmhshP1dbJ XXA0zT+E4nPGXZYgAdkq9HUOZ4Ku+8SvxGLRwVzGykefwZd8cpS1tVGlrI83OC6Xv8 ookMAUO8Q0ormhwNYtEteJuT7o/rFjxlPxnKEnKa5WgR73ipwTRhGpPjYxuE8eLP96 1QC3IhWQIV88pnAo3apgDB2V2Yid+VyQMbHmBzKnXJ2kC8fZM/GUsBdvYCb83uHZPM XfP5wYxHmy7LA== From: Arnd Bergmann To: Jaroslav Kysela , Takashi Iwai , Ivan Orlov Cc: Arnd Bergmann , linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ALSA: core: fix unit test dependencies Date: Sun, 4 Feb 2024 22:21:29 +0100 Message-Id: <20240204212135.3158722-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790004918023701662 X-GMAIL-MSGID: 1790004918023701662 From: Arnd Bergmann The Kunit tests fail to link when PCM support is disabled: aarch64-linux-ld: sound/core/sound_kunit.o: in function `test_pcm_format_name': sound_kunit.c:(.text+0x4c): undefined reference to `snd_pcm_format_name' aarch64-linux-ld: sound_kunit.c:(.text+0x12c): undefined reference to `snd_pcm_format_name' aarch64-linux-ld: sound/core/sound_kunit.o: in function `_test_fill_silence': sound_kunit.c:(.text+0x284): undefined reference to `snd_pcm_format_set_silence' aarch64-linux-ld: sound/core/sound_kunit.o: in function `test_format_signed': sound_kunit.c:(.text+0x400): undefined reference to `snd_pcm_format_signed' aarch64-linux-ld: sound_kunit.c:(.text+0x470): undefined reference to `snd_pcm_format_unsigned' aarch64-linux-ld: sound/core/sound_kunit.o: in function `test_format_width': sound_kunit.c:(.text+0x64c): undefined reference to `snd_pcm_format_width' aarch64-linux-ld: sound_kunit.c:(.text+0x71c): undefined reference to `snd_pcm_format_width' Add the appropriate dependencies. Fixes: 3e39acf56ede ("ALSA: core: Add sound core KUnit test") Signed-off-by: Arnd Bergmann --- sound/core/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/core/Kconfig b/sound/core/Kconfig index 664c6ee2b5a1..9a44f259ccca 100644 --- a/sound/core/Kconfig +++ b/sound/core/Kconfig @@ -42,6 +42,7 @@ config SND_UMP_LEGACY_RAWMIDI config SND_CORE_TEST tristate "Sound core KUnit test" depends on KUNIT + depends on SND_PCM default KUNIT_ALL_TESTS help This options enables the sound core functions KUnit test.