msg: Remove redundant #include <sys/msg.h> header
authorLukasz Majewski <lukma@denx.de>
Thu, 22 Oct 2020 11:09:00 +0000 (13:09 +0200)
committerLukasz Majewski <lukma@denx.de>
Wed, 4 Nov 2020 10:34:58 +0000 (11:34 +0100)
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.

Build tests:
./src/scripts/build-many-glibcs.py glibcs

sysdeps/unix/sysv/linux/msgget.c
sysdeps/unix/sysv/linux/msgrcv.c
sysdeps/unix/sysv/linux/msgsnd.c
sysdeps/unix/sysv/linux/shmat.c
sysdeps/unix/sysv/linux/shmdt.c
sysdeps/unix/sysv/linux/shmget.c

index 7968b73..f5ed417 100644 (file)
@@ -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>
index 95edc7a..f356703 100644 (file)
@@ -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>
 
index 554516f..6369782 100644 (file)
@@ -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>
 
index 3bc791c..89df350 100644 (file)
@@ -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>
index c506064..48e223e 100644 (file)
@@ -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>
index 6f7ce8c..71de81c 100644 (file)
@@ -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>