Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2064078rdb; Sun, 4 Feb 2024 13:21:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IE5UeckZGsTz5uTTDsmi4mW2gm71PYLKprkM1i9iJ0MhAmIzm6jsGUSQ3YIiwETdGkc3MEa X-Received: by 2002:a17:902:82c7:b0:1d7:17e6:44df with SMTP id u7-20020a17090282c700b001d717e644dfmr5992734plz.14.1707081708259; Sun, 04 Feb 2024 13:21:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707081708; cv=pass; d=google.com; s=arc-20160816; b=Fa1p5Kv3baPL38+S5KaWBbnbtjAL0sc3PvKfnfy3QiGyyzxtC70fEr3UVnS5o+ypoz EVJ3pH+RpHnUekUYwZn/od9FoowRJVA1GGhnrMNyaxESBP1/KvkqjP8Nify9U8zwVN4H 6l41pJQW5HT+S544cWILTE73cxYcPwq+IrNyrgB4sGjWkJFSOoWVXOSFY83vcehti5SW WASZ51ZDWudBfqa3IEk8MPNnUIloxIThy67dMpe1r7nGmnLgyaDqPf/0/09ASHniNUnq HEqFMyLk2eGmKGVE74Zs/rNx1pfV/h1IrP7/Xm1rhElVnLhJtmBEzOAjHU6wvfWft593 pmMw== 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=TD9KHpEodBk47exyKjIh+q4pEt+LBOL8kkUFUeHrBRU=; b=oY6Ys9LhXrFM23EyrRXCthFURaki6U61dl5Zgv19YB2fqU/DRJt0q/m9u8XtFiC9yq dX+RLvZTAawZR4ztChdyXhsm3slrfDMCivk4ZTCI723JlgmWAARad5ffvLbbsIJLeOeN 3Vd+a/tDtsZpcR+bO9g8rdXDtRB2H5hU9ocRX94Qwfn3MKUUkALeGI77DZn5SNHJRLlv QCIu15y4Xxl58ZrwR+/ysz7tr/vzj1+TJK6ccddybILVPOZxZcwo1tcm5JJ3oJseFqKp 0InnAnmgjW6r2HEeeOEE2GFalsW9UNrretY7UBYhOSFYejyNe22LQ1MxCTfsudinhhgT Iiaw==; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51908-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCVYtkSQL9KgxqeIyIePeoJn+VSPbWe4xlIoWvNJbSZUnD7kZv7i0tsaGNNmP6SuFJYDGEca5qajt5ZmWeShuZeelw+AXOT4Lhwol0pstQ== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id b13-20020a170903228d00b001d9aa1e68b2si1067712plh.148.2024.02.04.13.21.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Feb 2024 13:21:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51908-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51908-linux.lists.archive=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id D822F282C1C for ; Sun, 4 Feb 2024 21:21:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0AAF128E26; Sun, 4 Feb 2024 21:21:42 +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 Content-Transfer-Encoding: 8bit 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. -- 2.39.2