Skip to contentSkip to conversation

ipc-shm-uapi-remove-dependency-on-libc.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 1 participant 1 message Jan 21

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: ipc/shm: uapi: remove dependency on libc
has been removed from the -mm tree. Its filename was
ipc-shm-uapi-remove-dependency-on-libc.patch

This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Thomas Weißschuh <[email protected]>
Subject: ipc/shm: uapi: remove dependency on libc
Date: Mon, 22 Dec 2025 08:55:10 +0100

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.

---

 include/uapi/linux/shm.h |    3 ---
 1 file changed, 3 deletions(-)
include/uapi/linux/shm.h renamed from include/uapi/linux/shm.h~ipc-shm-uapi-remove-dependency-on-libc +0 -3
@@ -5,9 +5,6 @@
 #include <linux/ipc.h>
 #include <linux/errno.h>
 #include <asm-generic/hugetlb_encode.h>
-#ifndef __KERNEL__
-#include <unistd.h>
-#endif
 
 /*
  * SHMMNI, SHMMAX and SHMALL are default upper limits which can be

_

Patches currently in -mm which might be from [email protected] are