bsd-user: Clean up includes

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>
This commit is contained in:
Markus Armbruster 2023-02-02 14:38:15 +01:00
parent d598d9746e
commit 48e438a3aa
11 changed files with 9 additions and 13 deletions

View File

@ -17,6 +17,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>. * along with this program; if not, see <http://www.gnu.org/licenses/>.
*/ */
#include "qemu/osdep.h"
#include "qemu.h" #include "qemu.h"
/* /*

View File

@ -16,6 +16,8 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>. * along with this program; if not, see <http://www.gnu.org/licenses/>.
*/ */
#include "qemu/osdep.h"
#include "target_arch.h" #include "target_arch.h"
void target_cpu_set_tls(CPUARMState *env, target_ulong newtls) void target_cpu_set_tls(CPUARMState *env, target_ulong newtls)

View File

@ -20,11 +20,7 @@
#ifndef BSD_PROC_H_ #ifndef BSD_PROC_H_
#define BSD_PROC_H_ #define BSD_PROC_H_
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/resource.h> #include <sys/resource.h>
#include <unistd.h>
/* exit(2) */ /* exit(2) */
static inline abi_long do_bsd_exit(void *cpu_env, abi_long arg1) static inline abi_long do_bsd_exit(void *cpu_env, abi_long arg1)

View File

@ -17,6 +17,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>. * along with this program; if not, see <http://www.gnu.org/licenses/>.
*/ */
#include "qemu/osdep.h"
#include "qemu.h" #include "qemu.h"
#include "target_arch_sysarch.h" #include "target_arch_sysarch.h"

View File

@ -17,6 +17,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>. * along with this program; if not, see <http://www.gnu.org/licenses/>.
*/ */
#include "qemu/osdep.h"
#include "qemu.h" #include "qemu.h"
/* /*

View File

@ -17,9 +17,8 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>. * along with this program; if not, see <http://www.gnu.org/licenses/>.
*/ */
#include <sys/types.h>
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "cpu.h" #include "cpu.h"
#include "qemu.h" #include "qemu.h"
#include "qemu/timer.h" #include "qemu/timer.h"

View File

@ -18,12 +18,10 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>. * along with this program; if not, see <http://www.gnu.org/licenses/>.
*/ */
#include <sys/types.h> #include "qemu/osdep.h"
#include <sys/time.h>
#include <sys/resource.h> #include <sys/resource.h>
#include <sys/sysctl.h> #include <sys/sysctl.h>
#include "qemu/osdep.h"
#include "qemu/help-texts.h" #include "qemu/help-texts.h"
#include "qemu/units.h" #include "qemu/units.h"
#include "qemu/accel.h" #include "qemu/accel.h"

View File

@ -17,7 +17,6 @@
#ifndef QEMU_H #ifndef QEMU_H
#define QEMU_H #define QEMU_H
#include "qemu/osdep.h"
#include "cpu.h" #include "cpu.h"
#include "qemu/units.h" #include "qemu/units.h"
#include "exec/cpu_ldst.h" #include "exec/cpu_ldst.h"

View File

@ -20,7 +20,6 @@
#include <sys/select.h> #include <sys/select.h>
#include <sys/syscall.h> #include <sys/syscall.h>
#include <sys/ioccom.h> #include <sys/ioccom.h>
#include <ctype.h>
#include "qemu.h" #include "qemu.h"

View File

@ -16,6 +16,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>. * along with this program; if not, see <http://www.gnu.org/licenses/>.
*/ */
#include "qemu/osdep.h"
#include "qemu.h" #include "qemu.h"
/* /*

View File

@ -17,9 +17,8 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>. * along with this program; if not, see <http://www.gnu.org/licenses/>.
*/ */
#include <sys/types.h>
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "cpu.h" #include "cpu.h"
#include "qemu.h" #include "qemu.h"
#include "qemu/timer.h" #include "qemu/timer.h"