Message ID | 20201027221024.15147-1-lukma@denx.de |
---|---|
State | New |
Headers | show |
Series | [1/3] msg: Remove redundant #include <sys/msg.h> header | expand |
On Okt 27 2020, Lukasz Majewski wrote: > The #include <sys/msg.h> is redundant as we do not use message specific > types for issuing syscalls to handle msg and shm. Only msgctl requires > this header. Ok. Andreas.
diff --git a/sysdeps/unix/sysv/linux/msgget.c b/sysdeps/unix/sysv/linux/msgget.c index 7968b738a4..f5ed417a1f 100644 --- a/sysdeps/unix/sysv/linux/msgget.c +++ b/sysdeps/unix/sysv/linux/msgget.c @@ -16,7 +16,6 @@ License along with the GNU C Library; if not, see <https://www.gnu.org/licenses/>. */ -#include <sys/msg.h> #include <ipc_priv.h> #include <sysdep.h> #include <errno.h> diff --git a/sysdeps/unix/sysv/linux/msgrcv.c b/sysdeps/unix/sysv/linux/msgrcv.c index 95edc7a787..f3567033e2 100644 --- a/sysdeps/unix/sysv/linux/msgrcv.c +++ b/sysdeps/unix/sysv/linux/msgrcv.c @@ -16,7 +16,6 @@ License along with the GNU C Library; if not, see <https://www.gnu.org/licenses/>. */ -#include <sys/msg.h> #include <ipc_priv.h> #include <sysdep-cancel.h> diff --git a/sysdeps/unix/sysv/linux/msgsnd.c b/sysdeps/unix/sysv/linux/msgsnd.c index 554516f2ca..6369782706 100644 --- a/sysdeps/unix/sysv/linux/msgsnd.c +++ b/sysdeps/unix/sysv/linux/msgsnd.c @@ -16,7 +16,6 @@ License along with the GNU C Library; if not, see <https://www.gnu.org/licenses/>. */ -#include <sys/msg.h> #include <ipc_priv.h> #include <sysdep-cancel.h> diff --git a/sysdeps/unix/sysv/linux/shmat.c b/sysdeps/unix/sysv/linux/shmat.c index 3bc791c05f..89df350d84 100644 --- a/sysdeps/unix/sysv/linux/shmat.c +++ b/sysdeps/unix/sysv/linux/shmat.c @@ -16,7 +16,6 @@ License along with the GNU C Library; if not, see <https://www.gnu.org/licenses/>. */ -#include <sys/msg.h> #include <ipc_priv.h> #include <sysdep.h> #include <errno.h> diff --git a/sysdeps/unix/sysv/linux/shmdt.c b/sysdeps/unix/sysv/linux/shmdt.c index c506064a48..48e223e037 100644 --- a/sysdeps/unix/sysv/linux/shmdt.c +++ b/sysdeps/unix/sysv/linux/shmdt.c @@ -16,7 +16,6 @@ License along with the GNU C Library; if not, see <https://www.gnu.org/licenses/>. */ -#include <sys/msg.h> #include <ipc_priv.h> #include <sysdep.h> #include <errno.h> diff --git a/sysdeps/unix/sysv/linux/shmget.c b/sysdeps/unix/sysv/linux/shmget.c index 6f7ce8c057..71de81c365 100644 --- a/sysdeps/unix/sysv/linux/shmget.c +++ b/sysdeps/unix/sysv/linux/shmget.c @@ -16,7 +16,6 @@ License along with the GNU C Library; if not, see <https://www.gnu.org/licenses/>. */ -#include <sys/msg.h> #include <ipc_priv.h> #include <sysdep.h> #include <errno.h>