mirror of
https://github.com/qemu/qemu.git
synced 2026-02-04 02:24:38 +00:00
bsd-user: Clean up includes
This commit was created with scripts/clean-includes: ./scripts/clean-includes '--git' 'bsd-user' 'bsd-user' All .c should include qemu/osdep.h first. The script performs three related cleanups: * Ensure .c files include qemu/osdep.h first. * Including it in a .h is redundant, since the .c already includes it. Drop such inclusions. * Likewise, including headers qemu/osdep.h includes is redundant. Drop these, too. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Warner Losh <imp@bsdimp.com> Message-id: 20260116125830.926296-3-peter.maydell@linaro.org
This commit is contained in:
@@ -49,11 +49,8 @@
|
||||
#ifndef BSD_USER_BSD_MEM_H
|
||||
#define BSD_USER_BSD_MEM_H
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/ipc.h>
|
||||
#include <sys/mman.h>
|
||||
#include <sys/shm.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
#include "qemu-bsd.h"
|
||||
#include "exec/mmap-lock.h"
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
#include "qemu/osdep.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/cpuset.h>
|
||||
#include <sys/resource.h>
|
||||
#include <sys/wait.h>
|
||||
|
||||
@@ -23,10 +23,8 @@
|
||||
#include <sys/param.h>
|
||||
#include <sys/procctl.h>
|
||||
#include <sys/signal.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/procdesc.h>
|
||||
#include <sys/wait.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "target_arch_cpu.h"
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
#ifndef QEMU_BSD_H
|
||||
#define QEMU_BSD_H
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/resource.h>
|
||||
#include <sys/ipc.h>
|
||||
#include <sys/msg.h>
|
||||
|
||||
Reference in New Issue
Block a user