History

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.

Thomas Weißschuh committed 10 months ago

Commit 1965bbb1 parent d30aca31 file · +0 −3Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

include/uapi/linux/shm.h+0−3
@@ -5,9 +5,6 @@ · 4 unmodified lines
5#include <linux/ipc.h>5#include <linux/ipc.h>
6#include <linux/errno.h>6#include <linux/errno.h>
7#include <asm-generic/hugetlb_encode.h>7#include <asm-generic/hugetlb_encode.h>
8#ifndef __KERNEL__
9#include <unistd.h>
10#endif
11 8
12/*9/*
13 * SHMMNI, SHMMAX and SHMALL are default upper limits which can be10 * SHMMNI, SHMMAX and SHMALL are default upper limits which can be