]> git.proxmox.com Git - mirror_qemu.git/commitdiff
bsd-user: Clean up includes
authorMarkus Armbruster <armbru@redhat.com>
Thu, 2 Feb 2023 13:38:15 +0000 (14:38 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Wed, 8 Feb 2023 06:16:23 +0000 (07:16 +0100)
This commit was created with scripts/clean-includes.

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: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20230202133830.2152150-6-armbru@redhat.com>

bsd-user/arm/signal.c
bsd-user/arm/target_arch_cpu.c
bsd-user/bsd-proc.h
bsd-user/freebsd/os-sys.c
bsd-user/i386/signal.c
bsd-user/i386/target_arch_cpu.c
bsd-user/main.c
bsd-user/qemu.h
bsd-user/strace.c
bsd-user/x86_64/signal.c
bsd-user/x86_64/target_arch_cpu.c

index 2b1dd745d134cffef5f762b1b2d2015426be188a..97344075430b64a37987e43475bcca11f9c3ec51 100644 (file)
@@ -17,6 +17,7 @@
  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
+#include "qemu/osdep.h"
 #include "qemu.h"
 
 /*
index 02bf9149d54b038df463441f8936598f482d0c8d..fe38ae22107eb90299256ab1dfbf241b8fc97c67 100644 (file)
@@ -16,6 +16,8 @@
  *  You should have received a copy of the GNU General Public License
  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
+
+#include "qemu/osdep.h"
 #include "target_arch.h"
 
 void target_cpu_set_tls(CPUARMState *env, target_ulong newtls)
index 68b66e571d32717fe8e0112ee618c95b4aff6470..a1061bffb8f706fecd5d82fb81c57c549e2467b2 100644 (file)
 #ifndef BSD_PROC_H_
 #define BSD_PROC_H_
 
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <sys/time.h>
 #include <sys/resource.h>
-#include <unistd.h>
 
 /* exit(2) */
 static inline abi_long do_bsd_exit(void *cpu_env, abi_long arg1)
index 309e27b9d6349da1067699c5e1f9d27530882590..1676ec10f83b6b322bb2344331cee0a113a984b7 100644 (file)
@@ -17,6 +17,7 @@
  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
+#include "qemu/osdep.h"
 #include "qemu.h"
 #include "target_arch_sysarch.h"
 
index 5dd975ce56a7a42331ad8adbc16f0638175657c1..a3131047b8d044443abdc580160a41f6724a339a 100644 (file)
@@ -17,6 +17,7 @@
  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
+#include "qemu/osdep.h"
 #include "qemu.h"
 
 /*
index d349e4529977174a717308135a467ebba7cde405..2a3af2ddef56535579a84039d7d7fed025e13666 100644 (file)
@@ -17,9 +17,8 @@
  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <sys/types.h>
-
 #include "qemu/osdep.h"
+
 #include "cpu.h"
 #include "qemu.h"
 #include "qemu/timer.h"
index 6f09180d65418dcca97b3cc5069f3b130bf4ae63..41290e16f98efce681dbd9b8c849dadea50495d1 100644 (file)
  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <sys/types.h>
-#include <sys/time.h>
+#include "qemu/osdep.h"
 #include <sys/resource.h>
 #include <sys/sysctl.h>
 
-#include "qemu/osdep.h"
 #include "qemu/help-texts.h"
 #include "qemu/units.h"
 #include "qemu/accel.h"
index be6105385e8c4f71d46e8375b3057e5bd40abb76..0ceecfb6dfa82f63c661280e682008e12ebbe71a 100644 (file)
@@ -17,7 +17,6 @@
 #ifndef QEMU_H
 #define QEMU_H
 
-#include "qemu/osdep.h"
 #include "cpu.h"
 #include "qemu/units.h"
 #include "exec/cpu_ldst.h"
index a77d10dd6b610b619d1684590b62af0c4202c82e..96499751eb081a11af353014f9cca3a1573a9215 100644 (file)
@@ -20,7 +20,6 @@
 #include <sys/select.h>
 #include <sys/syscall.h>
 #include <sys/ioccom.h>
-#include <ctype.h>
 
 #include "qemu.h"
 
index c3875bc4c6a7ee8a19fd2675eb00bee1bede9dd0..46cb865180e00d0cb13a89e56792e5adf8630d7e 100644 (file)
@@ -16,6 +16,7 @@
  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
+#include "qemu/osdep.h"
 #include "qemu.h"
 
 /*
index be7bd10720044567f8915ee27e99fe33937eaaaf..1d32f18907be4ac8d101be55e1a996aae4d53b08 100644 (file)
@@ -17,9 +17,8 @@
  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <sys/types.h>
-
 #include "qemu/osdep.h"
+
 #include "cpu.h"
 #include "qemu.h"
 #include "qemu/timer.h"