From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796445530; b=RK/7xASRoCto8n1B+8UM/6DCgXJCZ2RTkz8VzmDv8uX+9/X7y5CfalcJEwjSI5AOMlI0 hNQla39qTOreK3vLRQkyHOPOm5ibS3RgSg9up9rGXj7NC3HsVgmutsOh1TxK3TXDBgVV0 Qp4j6ljYOs2qq1zIgpCtoPeL0TPR+qRZBjjdDwPBcN47o4AiOUt6LLRGqakxn+z0uNMjt KNQnvECp9a9TX+pQwVICFCILCY5hh89GfvZd8JOyQyIUmJcggJB8eSUgtprk86Z9vdaLl zm0aZ8XvtyrWyOj/4Qbk+Vzpp7Rl3FnooRcEDCTUj8HEFXB0py3laYvNnI9IPy+CSdg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796445530; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=HSmLvky2j1i7cOxUy/AsSE6f7ukb93ATzuPn9PSgOYY=; b=Fbb9qyBdC27imLPoN5YilH+RlKiwBCVgUq3gMoPzL75bhrED7hv4X+VXxzHUtrNICF/E 0RvMbawwZ2RB6dPKNDb3QiiTVeBPgmAvOciSPlKH8inopvNp3xnWTP3EWECYH5qAXz//Y X7DdEhUMwciuScJuXRIhSW2TNpFA+ew1Rc+VrE2ZNGXUJ/iXHqr2nSKXpqAQp1SuJMQ0M 4cKvDAMu9jxMNKP3IrTlqTcHBBVqVIFY4w6iL1wlA4bhsQHnqwWaRxeORqO8UJ3oa3iLs w0HuosVjgPfvDDI5ygfoz2fnh5PFhgpshEM7EBnjFWtW07dAXtNVldRM62gqrI8Fy3g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=BrwbOoAO; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2D8DB606A322; Sat, 5 Dec 2026 04:38:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=BrwbOoAO Received: by smtp.kernel.org (Postfix) with ESMTPSA id CAE691F00A12; Sat, 5 Dec 2026 04:38:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796445529; bh=HSmLvky2j1i7cOxUy/AsSE6f7ukb93ATzuPn9PSgOYY=; h=From:Subject:Reply-To:To:In-Reply-To:References:Date; b=BrwbOoAOCQrLRG0/w0QJ1tT9r7MqwZOO5Ee5Y+B+Umg9wMATpfJnoOzQs/QuJAoqR tkgnhBYDRRPG4/3ZxwlMrNwY/o65YOcX8p+pLuqQoBwIY2lJpT62JvGZwRmmCiwdQF iOcdEJv2mkcKx60iEpIX2X4eH8xPulF6kX0uSJmvotjw6KQwTkCXVyojdsA2fsd6q8 J0mQshXgEXkH9DIOnrGBJVCvrlWXcFMPHwhuHkoEL6KuovXjf2KIlc24/cDL265Jtr 0jPVFFE+iGQ1wvYkeMjgV5KIy/fjV+7ug2WQOCbu3HWcabASPMpXjbZwmU9PGkea0M g3Jebwc7bkgRQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v18 19/19] cxl: Add KUnit checks for HDM decoder unpacking Reply-To: sashiko-reviews@lists.linux.dev To: "Srirangan Madhavan" , linux-cxl@vger.kernel.org, linux-pci@vger.kernel.org In-Reply-To: <20261205041453.3946529-20-smadhavan@nvidia.com> References: <20261205041453.3946529-1-smadhavan@nvidia.com> <20261205041453.3946529-20-smadhavan@nvidia.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 04:38:49 +0000 X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 2 potential issues to consider: - [Low] cxl: KUnit test violates CXL placement, module, and suite naming rules - [Low] cxl: unconditional non-KUnit export and unused cxl_core allowlist entry -- commit 898a6ebae0ecbe24f0a8fe116f43eeee40e4d537 Author: Srirangan Madhavan cxl: Add KUnit checks for HDM decoder unpacking This commit adds a KUnit test suite for cxl_hdm_unpack_decoder() and extends its module export list so the new test module can call it. > diff --git a/drivers/cxl/core/hdm_regs.c b/drivers/cxl/core/hdm_regs.c > index 358e2ba7495de..0c43956c3c86c 100644 > --- a/drivers/cxl/core/hdm_regs.c > +++ b/drivers/cxl/core/hdm_regs.c > @@ -188,7 +188,7 @@ int cxl_hdm_unpack_decoder(struct cxl_decoder_config = *config, int id, > =20 > return 0; > } > -EXPORT_SYMBOL_FOR_MODULES(cxl_hdm_unpack_decoder, "cxl_core"); > +EXPORT_SYMBOL_FOR_MODULES(cxl_hdm_unpack_decoder, "cxl_core,cxl_hdm_unpa= ck_kunit"); [Severity: Low] Does cxl_hdm_unpack_decoder() still need an unconditional export or cxl_core in its allowlist? Outside drivers/cxl/core/hdm_regs.c, only this KUnit test calls cxl_hdm_unpack_decoder(); cxl_core calls cxl_hdm_read_decoder() instead. This keeps a test-only helper exported in vmlinux even when KUnit is disabled. Using VISIBLE_IF_KUNIT and EXPORT_SYMBOL_IF_KUNIT() would restrict the expo= rt to KUnit builds. [ ... ] > diff --git a/drivers/cxl/tests/hdm_unpack_kunit.c b/drivers/cxl/tests/hdm= _unpack_kunit.c > new file mode 100644 > index 0000000000000..c1131e1457574 > --- /dev/null > +++ b/drivers/cxl/tests/hdm_unpack_kunit.c > @@ -0,0 +1,91 @@ > +// SPDX-License-Identifier: GPL-2.0-only > +/* Copyright (c) 2026 NVIDIA Corporation & Affiliates */ > +#include > +#include > +#include > + > +#include "cxl.h" > +#include "../core/core.h" [ ... ] > +static struct kunit_suite cxl_hdm_test_suite =3D { > + .name =3D "cxl-hdm-unpack", > + .test_cases =3D cxl_hdm_test_cases, > +}; [Severity: Low] Should this suite live in drivers/cxl/core/tests/ and use underscores in its name? Because cxl_hdm_test_suite sets .name to "cxl-hdm-unpack" with hyphens instead of underscores, running KUnit with a cxl_* filter glob silently ski= ps it while running the sibling CXL suites (cxl_hdm_encoding and cxl_core_mbox= ). Documentation/driver-api/cxl/testing.rst also expects tests beside the code under test with path-derived underscore names, matching drivers/cxl/core/tests/mbox_kunit.c. Moving this file to drivers/cxl/core/tests/hdm_unpack_kunit.c with module cxl_core_hdm_unpack_kunit and suite cxl_core_hdm_unpack would follow that convention and avoid including "../core/core.h". --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261205041453.3946= 529-1-smadhavan@nvidia.com?part=3D19