From nobody Sun Feb 8 05:35:14 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 8A5371E885A for ; Mon, 22 Dec 2025 07:55:13 +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=1766390116; cv=none; b=i1aI+Zqe8G3kdiBKQzFxR6goLujRvwlDDHG1xChWbsd8aGwj77ckjVrcr03B0iMifGZlSiHiMvq0hrffCZPp0qZoYAVsXBDjAG/BRIRXT5qHIeNyEF4YHQtJ2U1QRsRkSLhjxvcamwtiyhYI+aoaU0/trAugeTY+MyA93o9OA/8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766390116; c=relaxed/simple; bh=erAx7lX0dEj/2gTvMDbvpQiCjKbXPrlG4/dA44pCaQY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=VXhKk2FDoh8jN8ZwHP/ez2C0SGRTvGZtjGyendK9UVwIqkGFOWcayom6N8x+2OIxmg7jfJ75oFW4h+E3G0zJGYy7+CFplEYGlu7yIhD0GxJVSCZARV/tZzhqIORBMYtCUL+vI5HwfUdmxDMUbscT+8RE5pCql3fESZa57HVi2A8= 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=BTFBPbfD; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=g7YSbbCN; 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="BTFBPbfD"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="g7YSbbCN" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1766390111; 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=M7rVwPnB5WT+oNDzvPAWA9j9IJtqchO7kOHsMD5NsTU=; b=BTFBPbfD45sgA/VZxACAGhYeQXDeeJlkHMnhbBjTyra/v9SEMDk+v0fCoYcmqb5ZNdGaVF fpCDeTPn0FASTjwmsIVP5r2EzRV7OvYgEplGMYFJXzQt9wYC0YOw3AgqvwWf2mjNs/vEE2 9ctxgNeKqtahWz8GT+ct+fAatmJHMEhBQaEc9k5jNKbyZ+jGp605xrp2uQIxwFJJ1elZCP jm+bpRmkLWnLfzygnR4hMadeWbGhpOLAH4wQFl4LzWWblkTnIuEwGtCmdF5u7dn0/0eGXP D5VUQ/urU8URJXkUru9avGrYRfMFhjww39G0B9JMtPO0SnyNCMrdsXnQOebk+g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1766390111; 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=M7rVwPnB5WT+oNDzvPAWA9j9IJtqchO7kOHsMD5NsTU=; b=g7YSbbCNZtKvPtfUxEKCI+LHIa9EBLqouSPjX2Uu7jR/6SDYcIo8NRdq2CiUxuXj+7igkU qMuN8Tfw+CXhyEAw== Date: Mon, 22 Dec 2025 08:55:10 +0100 Subject: [PATCH] ipc/shm: uapi: remove dependency on libc 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: <20251222-uapi-shm-v1-1-270bb7f75d97@linutronix.de> X-B4-Tracking: v=1; b=H4sIAF35SGkC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDI1NDIyMj3dLEgkzd4oxc3RRLs5Q0g7Q0c2MzMyWg8oKi1LTMCrBR0bG1tQD uwVvwWgAAAA== X-Change-ID: 20251222-uapi-shm-d96df0ff7366 To: Andrew Morton Cc: Arnd Bergmann , linux-kernel@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1766390111; l=1086; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=erAx7lX0dEj/2gTvMDbvpQiCjKbXPrlG4/dA44pCaQY=; b=31i1PR5HpqE6LkV5Q1RXBXbM18Yr8G7X0LkB9JN/fyvtDFAPzlYX8E61jvXWrsi3T96IAy6jX 4Y4gKD6D10yA/Ew21YN3C/dUBLc+DG9xgespl98mYM4meDfDnbKYa4e X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= Using libc types and headers from the UAPI headers is problematic as it introduces a dependency on a full C toolchain. shm.h does not even use any symbols from the libc header as the usage of getpagesize() was removed a decade ago in commit 060028bac94b ("ipc/shm.c: increase the defaults for SHMALL, SHMMAX") Drop the unnecessary inclusion. Signed-off-by: Thomas Wei=C3=9Fschuh --- include/uapi/linux/shm.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/uapi/linux/shm.h b/include/uapi/linux/shm.h index 8d1f17a4e08e..7269f9f402e3 100644 --- a/include/uapi/linux/shm.h +++ b/include/uapi/linux/shm.h @@ -5,9 +5,6 @@ #include #include #include -#ifndef __KERNEL__ -#include -#endif =20 /* * SHMMNI, SHMMAX and SHMALL are default upper limits which can be --- base-commit: 8f0b4cce4481fb22653697cced8d0d04027cb1e8 change-id: 20251222-uapi-shm-d96df0ff7366 Best regards, --=20 Thomas Wei=C3=9Fschuh