From nobody Mon Apr 6 18:22:33 2026 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 BA11C39446D for ; Wed, 18 Mar 2026 10:52:05 +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=1773831125; cv=none; b=FdzvlEOhP71cqEFUzOA6GPyCKKzgW+wgl39X7JHjFlCD/pP/z0Riny95/NG1UWU47nWcYuoC9ATGX3v2279Yi+8Lm/2Vo8loKrUZmUjd5bGC3mGjk9h05arN9XtZ4Bddatrd4OJ8Fno1rXK59hYORSbRRs9X5qBUjWio4PIdI6Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773831125; c=relaxed/simple; bh=iptIaLas7xf6/XH2LgPMPSGtAgL0UoGrpfNEQXZ9Dfo=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=Qv9xgdD7ZWUTX4BfUmCLeGDTjDJoeat7uIqNRN+JIzB0sUS+1IweyLltJYTzKxl3w4XorzgNVoHybjHPBfFslM9flHcqf2+XgbNWhmXNNTeB9nqHHnO1Ni5fYzpOxh6jXsPqvCIPMsow+rNtWc/8OzI3DTL8tcFhBFWYRHYzfmc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=MFt74+iR; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="MFt74+iR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A7A44C19421; Wed, 18 Mar 2026 10:52:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1773831125; bh=iptIaLas7xf6/XH2LgPMPSGtAgL0UoGrpfNEQXZ9Dfo=; h=From:To:Cc:Subject:Date:From; b=MFt74+iR3H4uEditqvmVAUyrBMzj/+dVOQTwfCRXT8HygLf4KKAGHCw8ZNebrv4dd y0mx12rm4dJZqiYMwFpk6+4rDs8ICyR+RWRYa7Mmh2mCnwEUOZgR7gFtSL9NdKuHIK LqUlP91jP1GbOMLCpV65J7rdJ0Pz9TupweD9JPIpVujRt/flUlXmFplRZqdH7EK9Kd fyJr+KQ23eLczyo2Mpey/FdpsxbacZ0Ne9FV++PmkeBrjrvOZe/zR32MzRE/zIs4/p +TQElnbdih0AW+Wnl8DsZg9ZF4f4qN0nQG4NY/3tJXhnoSykJZE0iqbSZwt4EFrfAL TGXXSXsOiNwpg== From: Arnd Bergmann To: Dan Williams , Dionna Amalie Glaze , Cedric Xing , Eric Biggers Cc: Arnd Bergmann , Andrew Morton , Zi Li , "Masami Hiramatsu (Google)" , Lance Yang , Zhou Yuhang , Colin Ian King , linux-kernel@vger.kernel.org Subject: [PATCH] tsm-mr: fix sample dependencies Date: Wed, 18 Mar 2026 11:51:55 +0100 Message-Id: <20260318105200.1985712-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.5 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Arnd Bergmann The tsm sample fails to link when crypto support is in a loadable module: ld.lld-22: error: undefined symbol: crypto_alloc_shash ld.lld-22: error: undefined symbol: crypto_shash_tfm_digest ld.lld-22: error: undefined symbol: crypto_destroy_tfm ld.lld-22: error: undefined symbol: crypto_shash_init ld.lld-22: error: undefined symbol: crypto_shash_finup >>> referenced by tsm_mr_sample.c >>> samples/tsm-mr/tsm_mr_sample.o:(sample_report_extend_mr) = in archive vmlinux.a This used to be handled indirectly by CONFIG_TSM_MEASUREMENTS forcing the crypto code to be built-in, but that was changed because TSM itself does not require it. Move the select into the Kconfig option that controls the sample instead. Fixes: f6953f1f9ec4 ("tsm-mr: Add tsm-mr sample code") Fixes: 44a3873df811 ("coco/guest: Remove unneeded selection of CRYPTO") Signed-off-by: Arnd Bergmann --- samples/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/samples/Kconfig b/samples/Kconfig index 5bc7c9e5a59e..730cc9f4197e 100644 --- a/samples/Kconfig +++ b/samples/Kconfig @@ -186,6 +186,8 @@ config SAMPLE_TIMER =20 config SAMPLE_TSM_MR tristate "TSM measurement sample" + select CRYPTO + select CRYPTO_HASH select TSM_MEASUREMENTS select VIRT_DRIVERS help --=20 2.39.5