From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.mindbit.ro (xs1.mindbit.ro [80.86.107.70]) (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 518B52253EE for ; Mon, 24 Aug 2026 15:14:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.86.107.70 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787584497; cv=none; b=mw2zoFYdq6jJy+Br+90BvMIO+r3nD61TsId5k6NSn62vijOkQKAOY/8jkOv8dBTSV8FAx0UToyfRG1zOckGihs6eiC5HLeGNsrK52IA/0L+vx0uQprzEaJt4n5Tl1/TE8qwVDFXIJnLi6U3ruuyFlKr3fNsAR/pjGabJ9SmbyZY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787584497; c=relaxed/simple; bh=bARo+q8sYnmS/+pCfjYNJ5u7jJCThIcv0ADMlSJk+Mw=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=tDYSfvNTugaRc3Kz9f3ddfa8Lb5SU1Kh2w3coq3QwbFRVJlZmwISAAJkjfbS6vtStTQDbeBXX7GjYeZABQ33olMZPXU0TjImL70srUuomRWS3ZaQa63anJqitb2/Fj9gdjvA6VhAFSEuBuEPFbTkITn0OA9taPPWCHhCiqA/oF4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=rendec.net; spf=pass smtp.mailfrom=rendec.net; dkim=pass (2048-bit key) header.d=rendec.net header.i=@rendec.net header.b=vXrc1cR4; arc=none smtp.client-ip=80.86.107.70 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=rendec.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rendec.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=rendec.net header.i=@rendec.net header.b="vXrc1cR4" Received: from bat.kanata.rendec.net (unknown [72.143.213.78]) by mail.mindbit.ro (Postfix) with ESMTPSA id 79748CC6A4; Mon, 24 Aug 2026 18:14:49 +0300 (EEST) DKIM-Filter: OpenDKIM Filter v2.11.0 mail.mindbit.ro 79748CC6A4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rendec.net; s=default; t=1787584493; bh=m83r2kmspOZy0+89dkmF2To3jnOWxg/jRR5bqMaYkqo=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=vXrc1cR4ywNz0EiNCxpG8QJi1f9VQqlji4nSnBvstWO5YNXIEpdk54hY2KB8yY9rd /suZgZJePBIoBRsCAYHgZ7TcvGzmSM5G+qOOJzxptM6d/l2H8RB10/OFvvM2DpcCv2 tacSpMB2l9ebgnYsuBckreVjLkPbzu+ZgJ1AJWG9UdrF2qNjIQnwN7QC9RbhY0lGNv LJVLixGDZpdV4ixxZQESY8NoIQn5mCvcblRDyhfoNqs84mPphpWRS7oms3sVKQZGcp t9k3FuC1jN3y1+TRm04dY+RUVVMAw2WLdj2/pAHmxIEr+ApRrQ4JERZ9WSZq1bdd02 QMkR3617xPuTw== Message-ID: Subject: Re: [PATCH] irq: Make refcount_interrupt kunit test selectable From: Radu Rendec To: Kuan-Wei Chiu , tglx@kernel.org, boqun@kernel.org, peterz@infradead.org, lyude@redhat.com Cc: jserv@ccns.ncku.edu.tw, marscheng@google.com, eleanor15x@gmail.com, linux-kernel@vger.kernel.org Date: Mon, 24 Aug 2026 11:14:45 -0400 In-Reply-To: <20260823171721.3059733-1-visitorckw@gmail.com> References: <20260823171721.3059733-1-visitorckw@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.58.3 (3.58.3-1.fc43) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Sun, 2026-08-23 at 17:17 +0000, Kuan-Wei Chiu wrote: > Currently, refcount_interrupt_test is built unconditionally when > CONFIG_KUNIT is enabled, causing it to run unexpectedly during boot. >=20 > Fix this by introducing CONFIG_REFCOUNT_INTERRUPT_KUNIT_TEST so the > test can be configured independently, following standard kunit > practices. >=20 > Fixes: 07a88e2bcd5b ("irq: Add KUnit test for refcounted interrupt enable= /disable") > Signed-off-by: Kuan-Wei Chiu > --- > =C2=A0kernel/irq/Kconfig=C2=A0 | 12 ++++++++++++ > =C2=A0kernel/irq/Makefile |=C2=A0 2 +- > =C2=A02 files changed, 13 insertions(+), 1 deletion(-) >=20 > diff --git a/kernel/irq/Kconfig b/kernel/irq/Kconfig > index 05cba4e16dad..6923f37eaab4 100644 > --- a/kernel/irq/Kconfig > +++ b/kernel/irq/Kconfig > @@ -150,6 +150,18 @@ config IRQ_KUNIT_TEST > =C2=A0 > =C2=A0 =C2=A0 If unsure, say N. > =C2=A0 > +config REFCOUNT_INTERRUPT_KUNIT_TEST > + tristate "Test refcounted interrupt enable/disable" if !KUNIT_ALL_TESTS > + depends on KUNIT > + default KUNIT_ALL_TESTS > + help > + =C2=A0 This builds the kunit tests for the refcounted interrupt > + =C2=A0 infrastructure. It verifies the correctness of single, nested, > + =C2=A0 and multiple interrupt enable/disable state changes and ensures > + =C2=A0 that the underlying reference counting mechanisms work as expect= ed. > + > + =C2=A0 If unsure, say N. > + > =C2=A0endmenu > =C2=A0 > =C2=A0config GENERIC_IRQ_MULTI_HANDLER > diff --git a/kernel/irq/Makefile b/kernel/irq/Makefile > index 44c4d6fc502a..0e5df962a149 100644 > --- a/kernel/irq/Makefile > +++ b/kernel/irq/Makefile > @@ -16,4 +16,4 @@ obj-$(CONFIG_SMP) +=3D affinity.o > =C2=A0obj-$(CONFIG_GENERIC_IRQ_DEBUGFS) +=3D debugfs.o > =C2=A0obj-$(CONFIG_GENERIC_IRQ_MATRIX_ALLOCATOR) +=3D matrix.o > =C2=A0obj-$(CONFIG_IRQ_KUNIT_TEST) +=3D irq_test.o > -obj-$(CONFIG_KUNIT) +=3D refcount_interrupt_test.o > +obj-$(CONFIG_REFCOUNT_INTERRUPT_KUNIT_TEST) +=3D refcount_interrupt_test= .o Reviewed-by: Radu Rendec