]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ipc/shm: uapi: remove dependency on libc
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Mon, 22 Dec 2025 07:55:10 +0000 (08:55 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 27 Jan 2026 03:07:10 +0000 (19:07 -0800)
commit1965bbb8f3c72e5f1972b5eeb6f19a36664a676d
tree4cbd28d92aa87610d93bd288e79bcb91fb5f1154
parentd30aca3eeffc18452e5cc5c4e59f1a4da2bd2f12
ipc/shm: uapi: remove dependency on libc

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.

Link: https://lkml.kernel.org/r/20251222-uapi-shm-v1-1-270bb7f75d97@linutronix.de
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/uapi/linux/shm.h