From nobody Sun Feb 8 09:16:37 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 7A67714A4F9 for ; Fri, 7 Mar 2025 12:43:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741351412; cv=none; b=uHc6rNBUkgkBRJ1+59kiyePsy7qOrj8fExjKSSUIxZE6GRtwprS1o09arYt25OwpLj/oAEB46innkGgh5a+3xG5GA8sYCLomYE0UNFEWzcToHFz+UO1p/t4xaCP9XYtSKnc+sYQn11cRO49+SyKkDNPtaPdaO3uGH+QGMm6f3Hg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741351412; c=relaxed/simple; bh=7VmanMlSY+AL4R5Gl2+izLNwqisKICSmKSHCP61d7X4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=l061qzJKE6QfEFVkNB5hBKWxSJpIJ2sNuiVS52xWSfjc/mNTcU/OL/+TWiiaWSGKKASS/OUPJbGztl+xu0n6LslzrHyovObfi5CSY+YZ4BnXI+MPihN+aYmVuJjsSC9mY3eKxGR4QBCtUD8bVIGRULLSMBj4VNADEu46sb9tBfM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=0GVy30Oe; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=EZw4mupL; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="0GVy30Oe"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="EZw4mupL" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1741351408; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=hiWhhFFiguC06XDLj0xZWCAnw46+uSzsqCLVXGy3bqM=; b=0GVy30OeGXpmtADuBX35FXO0zSDxLiaJZjaKxvGp0OIeeH7Nk6kvJrVFBuOjdTTNt4Pn6+ hKODrW2wUH427dTmnDDCTUbK9ZjfU7TnkcTF5troe574orvLiZD1AAu1dUQTWhiuDRHf38 oOh6buwzKFDkp1mm1HK57nJC9IsWO+1TxfO7PppDFLAk2db9r9KE5Ya272mjqYxr4Vd0ux YsADF1tKUioZgMzn9/TV2f74df0whDuIeOWWjE3WMHotqbdnBHFtUabHbkhHuzjO4zIPRJ ShXX4anigtReAMKuc47smAGxkgVXWuCp0zlT3i7n8IFzHEEF530wqqxKGL8lFQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1741351408; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=hiWhhFFiguC06XDLj0xZWCAnw46+uSzsqCLVXGy3bqM=; b=EZw4mupLSQoxdrmdJyKguJYM0IdXY4LGBr4sw13RIDOKd3FHeLpIiWGA6wv9jg90jsIPtN QdCiUpD+BBXsKqDA== Date: Fri, 07 Mar 2025 13:43:23 +0100 Subject: [PATCH v2] tools/nolibc: don't use asm/ UAPI headers 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: <20250307-nolibc-asm-headers-v2-1-e2a734f25d22@linutronix.de> X-B4-Tracking: v=1; b=H4sIAOrpymcC/32NQQ6CMBBFr0Jm7ZgyDUJceQ/CotKpTIKtaZFgS O9u5QAu30v++zskjsIJrtUOkVdJEnwBOlUwTsY/GMUWBlLUKK0a9GGW+4gmPXFiYzkm1C11dHG mc9pBGb4iO9mOaD8UniQtIX6Oj7X+2b+5tcYaHalGW3bE3N5m8e8lBi/b2TIMOecvg1mQ6rgAA AA= X-Change-ID: 20250305-nolibc-asm-headers-372826fa8f3f To: Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Cc: linux-kernel@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1741351407; l=2634; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=7VmanMlSY+AL4R5Gl2+izLNwqisKICSmKSHCP61d7X4=; b=v3GgKbG6q81UqOVdqDDElEK2JG3g5bwXd+gDyipgRc9MKaXCdglIP9IJ1iw4ZLklnZxSS8NvU zh+lkoAv6x9A1vE1HanxFwFLAAhE6f9sVtYZDSimT26+y961L3QC2h9 X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= The asm/ and asm-generic/ namespaces are implementation details of the UAPI headers and not meant for direct usage. Use the equivalent headers from the linux/ namespace instead. While at it also drop the duplicate include of linux/signal.h from sys.h. Signed-off-by: Thomas Wei=C3=9Fschuh --- Changes in v2: - Avoid duplicate '#include ' - Link to v1: https://lore.kernel.org/r/20250305-nolibc-asm-headers-v1-1-f2= 053def2ee7@linutronix.de --- tools/include/nolibc/arch-s390.h | 4 ++-- tools/include/nolibc/errno.h | 2 +- tools/include/nolibc/sys.h | 9 ++++----- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/tools/include/nolibc/arch-s390.h b/tools/include/nolibc/arch-s= 390.h index acfee7e9d5e2bb65718cb947110d2c5e1cdeba9b..df4c3cc713accd45551e07e1f02= d3638e49e300e 100644 --- a/tools/include/nolibc/arch-s390.h +++ b/tools/include/nolibc/arch-s390.h @@ -5,8 +5,8 @@ =20 #ifndef _NOLIBC_ARCH_S390_H #define _NOLIBC_ARCH_S390_H -#include -#include +#include +#include =20 #include "compiler.h" #include "crt.h" diff --git a/tools/include/nolibc/errno.h b/tools/include/nolibc/errno.h index a44486ff047745bc9bcf9748c3e5074213430f80..1d8d8033e8ff766ee4b3cf7efdb= 741d4208db04e 100644 --- a/tools/include/nolibc/errno.h +++ b/tools/include/nolibc/errno.h @@ -7,7 +7,7 @@ #ifndef _NOLIBC_ERRNO_H #define _NOLIBC_ERRNO_H =20 -#include +#include =20 #ifndef NOLIBC_IGNORE_ERRNO #define SET_ERRNO(v) do { errno =3D (v); } while (0) diff --git a/tools/include/nolibc/sys.h b/tools/include/nolibc/sys.h index 5d8adc7785759d2ef9316d70979740b16756dab1..08c1c074bec89a27e53e5d461a3= ebbf71ec323d1 100644 --- a/tools/include/nolibc/sys.h +++ b/tools/include/nolibc/sys.h @@ -10,10 +10,10 @@ #include "std.h" =20 /* system includes */ -#include -#include /* for SIGCHLD */ -#include -#include +#include +#include /* for SIGCHLD */ +#include +#include #include #include #include @@ -23,7 +23,6 @@ #include #include #include -#include =20 #include "arch.h" #include "errno.h" --- base-commit: a782d45c867ca92edc50e54715a71124bec1dd11 change-id: 20250305-nolibc-asm-headers-372826fa8f3f Best regards, --=20 Thomas Wei=C3=9Fschuh