Clean up includes

Clean up includes so that osdep.h is included first and headers
which it implies are not included manually.

This commit was created with scripts/clean-includes, with the change
to target/s390x/gen-features.c manually reverted, and blank lines
around deletions collapsed.

Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20180201111846.21846-3-armbru@redhat.com>
This commit is contained in:
Markus Armbruster 2018-02-01 12:18:29 +01:00
parent d8e39b7062
commit 8f0a3716e4
30 changed files with 9 additions and 51 deletions

View file

@ -32,7 +32,6 @@
#ifndef BLOCK_PARALLELS_H #ifndef BLOCK_PARALLELS_H
#define BLOCK_PARALLELS_H #define BLOCK_PARALLELS_H
#include "qemu/coroutine.h" #include "qemu/coroutine.h"
#include "qemu/typedefs.h"
#define HEADS_NUMBER 16 #define HEADS_NUMBER 16
#define SEC_IN_CYL 32 #define SEC_IN_CYL 32

View file

@ -19,7 +19,6 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "qapi/error.h" #include "qapi/error.h"
#include "qemu/error-report.h" #include "qemu/error-report.h"
#include "qemu/typedefs.h"
#include "qemu/cutils.h" #include "qemu/cutils.h"
#include "qom/object.h" #include "qom/object.h"
#include "hw/qdev-core.h" #include "hw/qdev-core.h"

View file

@ -7,9 +7,8 @@
* the LICENSE file in the top-level directory. * the LICENSE file in the top-level directory.
*/ */
#include <string.h>
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "qapi/error.h" #include "qapi/error.h"
#include "hw/hw.h" #include "hw/hw.h"
#include "hw/i2c/i2c.h" #include "hw/i2c/i2c.h"

View file

@ -40,11 +40,6 @@
#include "qapi/clone-visitor.h" #include "qapi/clone-visitor.h"
#include "chardev/char-fe.h" #include "chardev/char-fe.h"
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#define DEBUG_TPM 0 #define DEBUG_TPM 0
#define DPRINTF(fmt, ...) do { \ #define DPRINTF(fmt, ...) do { \

View file

@ -12,8 +12,6 @@
#ifndef TPM_TPM_INT_H #ifndef TPM_TPM_INT_H
#define TPM_TPM_INT_H #define TPM_TPM_INT_H
#include "qemu/osdep.h"
#define TPM_STANDARD_CMDLINE_OPTS \ #define TPM_STANDARD_CMDLINE_OPTS \
{ \ { \
.name = "type", \ .name = "type", \

View file

@ -8,9 +8,7 @@
#ifndef _TPM_IOCTL_H_ #ifndef _TPM_IOCTL_H_
#define _TPM_IOCTL_H_ #define _TPM_IOCTL_H_
#include <stdint.h>
#include <sys/uio.h> #include <sys/uio.h>
#include <sys/types.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
/* /*

View file

@ -28,7 +28,6 @@
#ifndef _XTENSA_MEMORY_H #ifndef _XTENSA_MEMORY_H
#define _XTENSA_MEMORY_H #define _XTENSA_MEMORY_H
#include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "cpu.h" #include "cpu.h"
#include "exec/memory.h" #include "exec/memory.h"

View file

@ -7,8 +7,6 @@
#ifndef EXEC_TB_LOOKUP_H #ifndef EXEC_TB_LOOKUP_H
#define EXEC_TB_LOOKUP_H #define EXEC_TB_LOOKUP_H
#include "qemu/osdep.h"
#ifdef NEED_CPU_H #ifdef NEED_CPU_H
#include "cpu.h" #include "cpu.h"
#else #else

View file

@ -25,7 +25,6 @@
#ifndef XLNX_PMU_IO_INTC_H #ifndef XLNX_PMU_IO_INTC_H
#define XLNX_PMU_IO_INTC_H #define XLNX_PMU_IO_INTC_H
#include "qemu/osdep.h"
#include "hw/sysbus.h" #include "hw/sysbus.h"
#include "hw/register.h" #include "hw/register.h"

View file

@ -25,7 +25,6 @@
#ifndef XLNX_ZYNQMP_IPI_H #ifndef XLNX_ZYNQMP_IPI_H
#define XLNX_ZYNQMP_IPI_H #define XLNX_ZYNQMP_IPI_H
#include "qemu/osdep.h"
#include "hw/sysbus.h" #include "hw/sysbus.h"
#include "hw/register.h" #include "hw/register.h"

View file

@ -1,7 +1,6 @@
#ifndef FW_CFG_H #ifndef FW_CFG_H
#define FW_CFG_H #define FW_CFG_H
#include "qemu/typedefs.h"
#include "exec/hwaddr.h" #include "exec/hwaddr.h"
#include "hw/nvram/fw_cfg_keys.h" #include "hw/nvram/fw_cfg_keys.h"
#include "hw/sysbus.h" #include "hw/sysbus.h"

View file

@ -24,7 +24,6 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h"
#include "hw/pci/pci_bridge.h" #include "hw/pci/pci_bridge.h"

View file

@ -25,8 +25,6 @@
#ifndef XTENSA_LIBISA_H #ifndef XTENSA_LIBISA_H
#define XTENSA_LIBISA_H #define XTENSA_LIBISA_H
#include <stdint.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif

View file

@ -11,7 +11,6 @@
#ifndef QAPI_CLONE_VISITOR_H #ifndef QAPI_CLONE_VISITOR_H
#define QAPI_CLONE_VISITOR_H #define QAPI_CLONE_VISITOR_H
#include "qemu/typedefs.h"
#include "qapi/visitor.h" #include "qapi/visitor.h"
#include "qapi-visit.h" #include "qapi-visit.h"

View file

@ -12,8 +12,6 @@
#ifndef _HVF_H #ifndef _HVF_H
#define _HVF_H #define _HVF_H
#include "config-host.h"
#include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "qemu/bitops.h" #include "qemu/bitops.h"
#include "exec/memory.h" #include "exec/memory.h"

View file

@ -5,7 +5,6 @@
#include "qom/object.h" #include "qom/object.h"
#include "qapi/qmp/qdict.h" #include "qapi/qmp/qdict.h"
#include "qemu/notify.h" #include "qemu/notify.h"
#include "qemu/typedefs.h"
#include "qapi-types.h" #include "qapi-types.h"
#include "qemu/error-report.h" #include "qemu/error-report.h"
#include "qapi/error.h" #include "qapi/error.h"

View file

@ -26,9 +26,6 @@
#include "trace.h" #include "trace.h"
#include "qemu/iov.h" #include "qemu/iov.h"
#include <time.h>
/* Max amount to allow in rawinput/encoutput buffers */ /* Max amount to allow in rawinput/encoutput buffers */
#define QIO_CHANNEL_WEBSOCK_MAX_BUFFER 8192 #define QIO_CHANNEL_WEBSOCK_MAX_BUFFER 8192

View file

@ -44,7 +44,6 @@
#include <sys/shm.h> #include <sys/shm.h>
#include <sys/sem.h> #include <sys/sem.h>
#include <sys/statfs.h> #include <sys/statfs.h>
#include <time.h>
#include <utime.h> #include <utime.h>
#include <sys/sysinfo.h> #include <sys/sysinfo.h>
#include <sys/signalfd.h> #include <sys/signalfd.h>

View file

@ -26,8 +26,6 @@
#ifndef QEMU_PR_HELPER_H #ifndef QEMU_PR_HELPER_H
#define QEMU_PR_HELPER_H 1 #define QEMU_PR_HELPER_H 1
#include <stdint.h>
#define PR_HELPER_CDB_SIZE 16 #define PR_HELPER_CDB_SIZE 16
#define PR_HELPER_SENSE_SIZE 96 #define PR_HELPER_SENSE_SIZE 96
#define PR_HELPER_DATA_SIZE 8192 #define PR_HELPER_DATA_SIZE 8192

View file

@ -25,7 +25,6 @@
#ifndef VMX_H #ifndef VMX_H
#define VMX_H #define VMX_H
#include <stdint.h>
#include <Hypervisor/hv.h> #include <Hypervisor/hv.h>
#include <Hypervisor/hv_vmx.h> #include <Hypervisor/hv_vmx.h>
#include "vmcs.h" #include "vmcs.h"

View file

@ -29,11 +29,8 @@
#include "hw/i386/apic_internal.h" #include "hw/i386/apic_internal.h"
#include <stdio.h>
#include <stdlib.h>
#include <Hypervisor/hv.h> #include <Hypervisor/hv.h>
#include <Hypervisor/hv_vmx.h> #include <Hypervisor/hv_vmx.h>
#include <stdint.h>
void hvf_set_segment(struct CPUState *cpu, struct vmx_segment *vmx_seg, void hvf_set_segment(struct CPUState *cpu, struct vmx_segment *vmx_seg,
SegmentCache *qseg, bool is_tr) SegmentCache *qseg, bool is_tr)

View file

@ -18,6 +18,7 @@
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
02110-1301, USA. */ 02110-1301, USA. */
#include "qemu/osdep.h"
#include "xtensa-isa.h" #include "xtensa-isa.h"
#include "xtensa-isa-internal.h" #include "xtensa-isa-internal.h"

View file

@ -21,6 +21,7 @@
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#include "qemu/osdep.h"
#include "xtensa-isa.h" #include "xtensa-isa.h"
#include "xtensa-isa-internal.h" #include "xtensa-isa-internal.h"

View file

@ -21,6 +21,7 @@
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#include "qemu/osdep.h"
#include "xtensa-isa.h" #include "xtensa-isa.h"
#include "xtensa-isa-internal.h" #include "xtensa-isa-internal.h"

View file

@ -18,6 +18,7 @@
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
02110-1301, USA. */ 02110-1301, USA. */
#include "qemu/osdep.h"
#include "xtensa-isa.h" #include "xtensa-isa.h"
#include "xtensa-isa-internal.h" #include "xtensa-isa-internal.h"

View file

@ -21,6 +21,7 @@
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#include "qemu/osdep.h"
#include "xtensa-isa.h" #include "xtensa-isa.h"
#include "xtensa-isa-internal.h" #include "xtensa-isa-internal.h"

View file

@ -22,9 +22,7 @@
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include <stdio.h> #include "qemu/osdep.h"
#include <stdlib.h>
#include <string.h>
#include "xtensa-isa.h" #include "xtensa-isa.h"
#include "xtensa-isa-internal.h" #include "xtensa-isa-internal.h"

View file

@ -17,21 +17,13 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>. * License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/ */
#include <stdio.h> #include "qemu/osdep.h"
#include <getopt.h> #include <getopt.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <unistd.h>
#include <sys/reboot.h> #include <sys/reboot.h>
#include <sys/syscall.h> #include <sys/syscall.h>
#include <linux/random.h> #include <linux/random.h>
#include <sys/time.h>
#include <pthread.h> #include <pthread.h>
#include <fcntl.h>
#include <sys/mount.h> #include <sys/mount.h>
#include <sys/stat.h>
#include <sys/mman.h>
const char *argv0; const char *argv0;

View file

@ -8,9 +8,9 @@
* *
*/ */
#include "qemu/osdep.h"
#include <glib/gprintf.h> #include <glib/gprintf.h>
#include "qemu/osdep.h"
#include "qemu/main-loop.h" #include "qemu/main-loop.h"
#include "hw/ptimer.h" #include "hw/ptimer.h"

View file

@ -10,8 +10,6 @@
#ifndef TRACE__CONTROL_INTERNAL_H #ifndef TRACE__CONTROL_INTERNAL_H
#define TRACE__CONTROL_INTERNAL_H #define TRACE__CONTROL_INTERNAL_H
#include <stddef.h> /* size_t */
#include "qom/cpu.h" #include "qom/cpu.h"