qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] 1ef26b: cpu: Clean up includes


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 1ef26b: cpu: Clean up includes
Date: Tue, 23 Feb 2016 06:00:07 -0800

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 1ef26b1f3025413fffca05a5634580745ef84e0d
      
https://github.com/qemu/qemu/commit/1ef26b1f3025413fffca05a5634580745ef84e0d
  Author: Peter Maydell <address@hidden>
  Date:   2016-02-23 (Tue, 23 Feb 2016)

  Changed paths:
    M qom/cpu.c
    M target-i386/cpu.c

  Log Message:
  -----------
  cpu: 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.

Signed-off-by: Peter Maydell <address@hidden>


  Commit: 79f56d82f805b170fa2be8c04b682117be56483f
      
https://github.com/qemu/qemu/commit/79f56d82f805b170fa2be8c04b682117be56483f
  Author: Peter Maydell <address@hidden>
  Date:   2016-02-23 (Tue, 23 Feb 2016)

  Changed paths:
    M include/qemu/osdep.h

  Log Message:
  -----------
  osdep.h: Define macros for the benefit of C++ before C++11

For C++ before C++11, <stdint.h> requires definition of the macros
__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS and __STDC_FORMAT_MACROS
in order to enable definition of various macros by the header file.
Define these in osdep.h, so that we get the right header file
definitions whether osdep.h is being used by plain C, C++11 or
older C++.

In particular libvixl's header files depend on this and won't
compile if osdep.h is included before them otherwise.

Signed-off-by: Peter Maydell <address@hidden>
Reviewed-by: Eric Blake <address@hidden>


  Commit: e78490c44ccd90507750a563493bad6d27e3693a
      
https://github.com/qemu/qemu/commit/e78490c44ccd90507750a563493bad6d27e3693a
  Author: Peter Maydell <address@hidden>
  Date:   2016-02-23 (Tue, 23 Feb 2016)

  Changed paths:
    M disas/arm-a64.cc

  Log Message:
  -----------
  disas/arm-a64.cc: Include osdep.h first

Rearrange include directives so that we include osdep.h first.
This has to be done manually because clean-includes doesn't
handle C++.

Signed-off-by: Peter Maydell <address@hidden>
Reviewed-by: Eric Blake <address@hidden>


  Commit: fd3e39a40ca2ee26b09a5de3149af8b056b85233
      
https://github.com/qemu/qemu/commit/fd3e39a40ca2ee26b09a5de3149af8b056b85233
  Author: Peter Maydell <address@hidden>
  Date:   2016-02-23 (Tue, 23 Feb 2016)

  Changed paths:
    M scripts/clean-includes

  Log Message:
  -----------
  scripts/clean-includes: Enhance to handle header files

Enhance clean-includes to handle header files as well as .c source
files. For headers we merely remove all the redundant #include
lines, including any includes of qemu/osdep.h itself.

There is a simple mollyguard on the include file processing to
skip a few key headers like osdep.h itself, to avoid producing
bad patches if the script is run on every file in include/.

Signed-off-by: Peter Maydell <address@hidden>
Reviewed-by: Eric Blake <address@hidden>


  Commit: d57106a4b6a2213a6c8ccb8800fcc8ce8afa1a14
      
https://github.com/qemu/qemu/commit/d57106a4b6a2213a6c8ccb8800fcc8ce8afa1a14
  Author: Peter Maydell <address@hidden>
  Date:   2016-02-23 (Tue, 23 Feb 2016)

  Changed paths:
    M scripts/clean-includes

  Log Message:
  -----------
  scripts/clean-includes: Add --all option

Add a --all option which will run the script on every C
source and header file in the repository (except for those
in a few directories which contain standalone guest code).

Signed-off-by: Peter Maydell <address@hidden>
Reviewed-by: Eric Blake <address@hidden>


  Commit: b1e34d1c3a9059e87719634bfc4db53174d63e14
      
https://github.com/qemu/qemu/commit/b1e34d1c3a9059e87719634bfc4db53174d63e14
  Author: Peter Maydell <address@hidden>
  Date:   2016-02-23 (Tue, 23 Feb 2016)

  Changed paths:
    M include/qemu/osdep.h

  Log Message:
  -----------
  osdep.h: Include config-target.h if NEED_CPU_H is defined

NEED_CPU_H is the define we use to distinguish per-target object
compilation from common object compilation. For the former, we must
also include config-target.h so that the .c files see the necessary
CONFIG_ constants.

Signed-off-by: Peter Maydell <address@hidden>
Reviewed-by: Eric Blake <address@hidden>


  Commit: 30456d5ba3736b8f0c73560e559cdd2f76a4885e
      
https://github.com/qemu/qemu/commit/30456d5ba3736b8f0c73560e559cdd2f76a4885e
  Author: Peter Maydell <address@hidden>
  Date:   2016-02-23 (Tue, 23 Feb 2016)

  Changed paths:
    M audio/audio.h
    M bsd-user/qemu.h
    M contrib/ivshmem-client/ivshmem-client.h
    M contrib/ivshmem-server/ivshmem-server.h
    M fsdev/file-op-9p.h
    M hw/9pfs/9p-synth.h
    M hw/9pfs/9p.h
    M hw/audio/gusemu.h
    M hw/display/vga_int.h
    M hw/net/fsl_etsec/registers.h
    M hw/usb/desc.h
    M io/channel-util.c
    M linux-user/arm/nwfpe/fpa11.h
    M linux-user/qemu.h
    M nbd/nbd-internal.h
    M net/tap-linux.h
    M net/util.h
    M qemu-nbd.c
    M qga/vss-win32.h
    M qga/vss-win32/requester.h
    M qga/vss-win32/vss-common.h
    M replay/replay-internal.h
    M slirp/slirp.h
    M target-alpha/cpu.h
    M target-arm/cpu.h
    M target-arm/kvm-consts.h
    M target-cris/cpu.h
    M target-i386/cpu-qom.h
    M target-i386/cpu.h
    M target-i386/mpx_helper.c
    M target-lm32/cpu.h
    M target-m68k/cpu.h
    M target-microblaze/cpu.h
    M target-mips/cpu.h
    M target-moxie/cpu.h
    M target-openrisc/cpu.h
    M target-ppc/cpu.h
    M target-s390x/cpu.h
    M target-sh4/cpu.h
    M target-sparc/cpu.h
    M target-tilegx/cpu.h
    M target-tricore/cpu.h
    M target-unicore32/cpu.h
    M target-xtensa/cpu.h
    M tcg/tci/tcg-target.h
    M tests/libqos/ahci.h
    M tests/libqos/fw_cfg.h
    M tests/libqos/i2c.h
    M tests/libqos/malloc.h
    M tests/libqos/pci.h
    M tests/libqtest.h
    M trace/control-internal.h
    M trace/ftrace.h
    M trace/simple.h
    M ui/vnc-palette.h
    M ui/vnc.h

  Log Message:
  -----------
  all: 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.

Signed-off-by: Peter Maydell <address@hidden>
Reviewed-by: Eric Blake <address@hidden>


  Commit: 974dc73d778a3b1c09a06a6a41af159537eba595
      
https://github.com/qemu/qemu/commit/974dc73d778a3b1c09a06a6a41af159537eba595
  Author: Peter Maydell <address@hidden>
  Date:   2016-02-23 (Tue, 23 Feb 2016)

  Changed paths:
    M hw/vfio/amd-xgbe.c
    M tests/boot-sector.c
    M tests/pxe-test.c

  Log Message:
  -----------
  all: 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.

Signed-off-by: Peter Maydell <address@hidden>
---
This just catches a couple of stragglers since I posted
the last clean-includes patchset last week.


  Commit: 90ce6e2644db2c47d72f364b4de57342e50bd10a
      
https://github.com/qemu/qemu/commit/90ce6e2644db2c47d72f364b4de57342e50bd10a
  Author: Peter Maydell <address@hidden>
  Date:   2016-02-23 (Tue, 23 Feb 2016)

  Changed paths:
    M include/block/accounting.h
    M include/block/nbd.h
    M include/block/snapshot.h
    M include/block/write-threshold.h
    M include/config.h
    M include/crypto/cipher.h
    M include/crypto/hash.h
    M include/crypto/init.h
    M include/crypto/secret.h
    M include/crypto/tlscreds.h
    M include/elf.h
    M include/exec/cpu-all.h
    M include/exec/cpu-defs.h
    M include/exec/helper-head.h
    M include/exec/memory.h
    M include/exec/user/thunk.h
    M include/fpu/softfloat.h
    M include/hw/acpi/acpi.h
    M include/hw/acpi/aml-build.h
    M include/hw/acpi/bios-linker-loader.h
    M include/hw/acpi/pcihp.h
    M include/hw/block/block.h
    M include/hw/i386/topology.h
    M include/hw/isa/apm.h
    M include/hw/nvram/fw_cfg.h
    M include/hw/pci/pci.h
    M include/hw/pci/shpc.h
    M include/hw/qdev-core.h
    M include/hw/virtio/vhost-backend.h
    M include/hw/xen/xen.h
    M include/hw/xen/xen_common.h
    M include/io/channel.h
    M include/io/task.h
    M include/libdecnumber/dconfig.h
    M include/libdecnumber/decContext.h
    M include/libdecnumber/decNumberLocal.h
    M include/migration/migration.h
    M include/migration/qemu-file.h
    M include/net/checksum.h
    M include/net/eth.h
    M include/qapi/error.h
    M include/qapi/qmp-event.h
    M include/qapi/qmp/dispatch.h
    M include/qapi/qmp/json-lexer.h
    M include/qapi/qmp/json-parser.h
    M include/qapi/qmp/json-streamer.h
    M include/qapi/qmp/qbool.h
    M include/qapi/qmp/qdict.h
    M include/qapi/qmp/qfloat.h
    M include/qapi/qmp/qint.h
    M include/qapi/qmp/qjson.h
    M include/qapi/qmp/qobject.h
    M include/qapi/qmp/qstring.h
    M include/qapi/visitor-impl.h
    M include/qapi/visitor.h
    M include/qemu-common.h
    M include/qemu/atomic.h
    M include/qemu/bitmap.h
    M include/qemu/bitops.h
    M include/qemu/bswap.h
    M include/qemu/compatfd.h
    M include/qemu/compiler.h
    M include/qemu/config-file.h
    M include/qemu/coroutine.h
    M include/qemu/error-report.h
    M include/qemu/fprintf-fn.h
    M include/qemu/hbitmap.h
    M include/qemu/host-utils.h
    M include/qemu/int128.h
    M include/qemu/log.h
    M include/qemu/memfd.h
    M include/qemu/module.h
    M include/qemu/option.h
    M include/qemu/range.h
    M include/qemu/rcu.h
    M include/qemu/sockets.h
    M include/qemu/thread.h
    M include/qemu/throttle.h
    M include/qemu/timed-average.h
    M include/qemu/xattr.h
    M include/qom/cpu.h
    M include/qom/object.h
    M include/sysemu/block-backend.h
    M include/sysemu/blockdev.h
    M include/sysemu/dma.h
    M include/sysemu/hostmem.h
    M include/sysemu/kvm.h
    M include/sysemu/numa.h
    M include/sysemu/os-posix.h
    M include/sysemu/qtest.h
    M include/sysemu/replay.h
    M include/sysemu/rng.h
    M include/sysemu/seccomp.h
    M include/sysemu/tpm_backend.h
    M include/sysemu/xen-mapcache.h
    M include/ui/console.h
    M include/ui/qemu-spice.h

  Log Message:
  -----------
  include: 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.

NB: If this commit breaks compilation for your out-of-tree
patchseries or fork, then you need to make sure you add
#include "qemu/osdep.h" to any new .c files that you have.

Signed-off-by: Peter Maydell <address@hidden>
Reviewed-by: Eric Blake <address@hidden>


Compare: https://github.com/qemu/qemu/compare/ea6e4981bfb3...90ce6e2644db

reply via email to

[Prev in Thread] Current Thread [Next in Thread]