From nobody Thu Apr 9 13:37:42 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 B6E0E3D2FFD; Fri, 27 Feb 2026 06:38:07 +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=1772174289; cv=none; b=Qvm37+l/pIdCLsu5uSjgd8yaKnRV7qY07PdrEDz7YJ/Z7CJbYb7LhyKtz+z5DULqpQPmcHId2YvSp6UaFQXfan6nnW6t7M+ir2KAZ7zW/AuFfCIiOCQa8dU0RwyNUOfdBbGSUcIgUkZa2FG+ZoVxAFoFL35p9TaN3BVxkMErg7I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772174289; c=relaxed/simple; bh=lYXlCSOlof3iJWlivc1wAhYnmrROuKYSuoCzxMjxJa8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=JIHRcYWobCXtm74LvrXoVenQYtx+M54Jwevdm5uaQLpY9IAUlYOzfY1gyM1OADGex9Ek//UkqNmAPCcVLypelOlgJOYlQXv7lUYkSvFUbYk/pPP1v97sTmp5NyIPssoplMK9FDaCdKSE2pKL0+Lam5euqrTk3MVCxbVAHjKoAFQ= 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=rhPeT7TB; 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="rhPeT7TB" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1772174283; bh=lYXlCSOlof3iJWlivc1wAhYnmrROuKYSuoCzxMjxJa8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=rhPeT7TB6hjpvbsxthhRBYTiTPvxyUPiwiGrh7T3T3mMHNhmyUV/iqnGfyj7NNOX2 Q24ARvy0/KoSwz9UW/vmArbTOVV7gpKMQ5WdjvwA/zl1tgoWcxeuigQTyRYhCnOgXo 7AS+EiTOLZ9U4vosJPAkjpRR5/uPFL1OoR2vp+wk= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Fri, 27 Feb 2026 07:38:06 +0100 Subject: [PATCH 8/9] kbuild: uapi: simplify libc dependency logic 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: <20260227-kbuild-uapi-libc-v1-8-c17de0d19776@weissschuh.net> References: <20260227-kbuild-uapi-libc-v1-0-c17de0d19776@weissschuh.net> In-Reply-To: <20260227-kbuild-uapi-libc-v1-0-c17de0d19776@weissschuh.net> To: Nathan Chancellor , Nicolas Schier , Brian Cain Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann , linux-hexagon@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=1772174282; l=1163; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=lYXlCSOlof3iJWlivc1wAhYnmrROuKYSuoCzxMjxJa8=; b=bQzJfg6vPv/Fl1mpp1fejADgZOE9FVlE3s6iaCVo78XjmcBc671rlrMQvCmNVSkVY+L847PNy Iaj4CiAlek+AUtCl83xBDvJWI+u7n3Bol0OXNZILnqAP4SlaPKKzJUa X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= The only left user of the condition inverts it. Invert the condition completely and simplify its user. Signed-off-by: Thomas Wei=C3=9Fschuh --- usr/include/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/include/Makefile b/usr/include/Makefile index d352280b0e4a..845d06b63c2b 100644 --- a/usr/include/Makefile +++ b/usr/include/Makefile @@ -137,14 +137,14 @@ endif =20 always-y :=3D $(patsubst $(obj)/%.h,%.hdrtest, $(shell find $(obj) -name '= *.h' 2>/dev/null)) =20 -target-no-libc =3D $(filter-out $(uses-libc), $*.h) +target-libc =3D $(filter $(uses-libc), $*.h) target-can-compile =3D $(filter-out $(no-header-test), $*.h) =20 # Include the header twice to detect missing include guard. quiet_cmd_hdrtest =3D HDRTEST $< cmd_hdrtest =3D \ $(CC) $(c_flags) -fsyntax-only -Werror -x c /dev/null \ - -nostdinc $(if $(target-no-libc), , -I $(srctree)/usr/dummy-include) \ + -nostdinc $(if $(target-libc), -I $(srctree)/usr/dummy-include) \ $(if $(target-can-compile), -include $< -include $<); \ $(PERL) $(src)/headers_check.pl $(obj) $<; \ touch $@ --=20 2.53.0