From nobody Tue Feb 10 17:52:55 2026 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (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 86349327BEE; Tue, 6 Jan 2026 11:45:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767699905; cv=none; b=YrQFtpLIKJ10WAhfxUlsuENCawMEEEwQ+zV2amX0XoECt3JjoTgdEUrgcNHX6RNl09TxrWhh0zXuTvypl7350N7l1bJ/UTK3gopfCEMiVV9stfXR1PXaUsaVmJkwoiq9trtg2oV59N1Vba+8uT/na1oqimTfMJOW6/g1lUFYMzY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767699905; c=relaxed/simple; bh=uuQlUJTqdVKbCEjW6Ip9+Luwl134KZh+iqFAkBXukCQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=uVaRWtct3GojJgIo+ZWlMtRmgmy5kfgvsU7AxwNdBRYke9c/4XPeqUdDNijD+YfwZNjuXS0+BXK8JHUZMcx44PL53kMWJQMGuovmCr4J7lZCM+ULBDU5BvwPjooDamvpR1iPCKJRCB7y0WvHy7p0w/5ric6QEwYhxhBcIHy8n6Y= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=hB17b3Ct; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="hB17b3Ct" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1767699898; bh=uuQlUJTqdVKbCEjW6Ip9+Luwl134KZh+iqFAkBXukCQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=hB17b3Ctw+NtMresDIYwb+YwFrEhXkyyNZG0/5iiF/AEUjKJsRUDNO9+2MfDCw+FL A8HCK/aEvTTeqgzFRJlbSbNDW9SlxABwgE47y0BtJ5U5hPLooC8HZrUSrRsL5JNKCm thD08NCgJs5DUO3oCzgTXyEldv2NRmfMnDxWo/VM= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Tue, 06 Jan 2026 12:44:59 +0100 Subject: [PATCH 3/3] selftests/nolibc: also test libc-test through regular selftest framework Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260106-nolibc-selftests-v1-3-f82101c2c505@weissschuh.net> References: <20260106-nolibc-selftests-v1-0-f82101c2c505@weissschuh.net> In-Reply-To: <20260106-nolibc-selftests-v1-0-f82101c2c505@weissschuh.net> To: Willy Tarreau , Shuah Khan Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1767699897; l=1335; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=uuQlUJTqdVKbCEjW6Ip9+Luwl134KZh+iqFAkBXukCQ=; b=gx4k8ThN4r+9q/v9LeZEjEXMPzqi7HI+zddZWA2sg0MS7hp0ouF1YJo6DrM9EcvPQ0wi3IIdZ KuRWeq7PiPzA+AV6LFwJG6CkjEQgF8vZacHrXuVol6AU+LLrTju8c+0 X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= Hook up libc-test to the regular selftest build to make sure nolibc-test.c stays compatible with a normal libc. As the pattern rule from lib.mk does not handle compiling a target from a differently named source file, add an explicit rule definition. Signed-off-by: Thomas Wei=C3=9Fschuh --- tools/testing/selftests/nolibc/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selfte= sts/nolibc/Makefile index 43f0b608c796..0370489d938b 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 =20 -TEST_GEN_PROGS :=3D nolibc-test +TEST_GEN_PROGS :=3D nolibc-test libc-test =20 include ../lib.mk include $(top_srcdir)/scripts/Makefile.compiler @@ -15,6 +15,10 @@ $(OUTPUT)/nolibc-test: CFLAGS =3D -nostdlib -nostdinc -s= tatic \ $(OUTPUT)/nolibc-test: LDLIBS =3D $(if $(LLVM),,-lgcc) $(OUTPUT)/nolibc-test: nolibc-test.c nolibc-test-linkage.c | headers =20 +$(OUTPUT)/libc-test: nolibc-test.c nolibc-test-linkage.c + $(call msg,CC,,$@) + $(Q)$(LINK.c) $^ -o $@ + help: @echo "For the custom nolibc testsuite use '$(MAKE) -f Makefile.nolibc'; = available targets:" @$(MAKE) -f Makefile.nolibc help --=20 2.52.0