qemu-commits
[Top][All Lists]
Advanced

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

[Qemu-commits] [qemu/qemu] 74c0e4: hw/block/nand.c: Include osdep.h firs


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 74c0e4: hw/block/nand.c: Include osdep.h first
Date: Tue, 16 Feb 2016 08:00:05 -0800

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

  Changed paths:
    M hw/block/nand.c

  Log Message:
  -----------
  hw/block/nand.c: Include osdep.h first

Include osdep.h as the first header in nand.c; this has to be
done manually because coccinelle gets confused by the way that
this C file includes itself.

We fix some odd spacing in #includes while we are in the area.

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


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

  Changed paths:
    M target-cris/mmu.c

  Log Message:
  -----------
  target-cris: Remove unnecessary ifdef from mmu.c

mmu.c is only built for CONFIG_SOFTMMU targets, so there is
no need to redundantly surround the whole file contents with
an #ifndef CONFIG_USER_ONLY. The ifdef also confuses the
Coccinelle tool.

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


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

  Changed paths:
    M target-cris/mmu.c

  Log Message:
  -----------
  cris: 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: 7a4e543de6637cda4dcc4a060b9225a863f7c721
      
https://github.com/qemu/qemu/commit/7a4e543de6637cda4dcc4a060b9225a863f7c721
  Author: Peter Maydell <address@hidden>
  Date:   2016-02-16 (Tue, 16 Feb 2016)

  Changed paths:
    M libdecnumber/decContext.c
    M libdecnumber/decNumber.c
    M libdecnumber/dpd/decimal128.c
    M libdecnumber/dpd/decimal32.c
    M libdecnumber/dpd/decimal64.c

  Log Message:
  -----------
  libdecnumber: 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: 07b096b41873bd64d01c7d59e43066793ef0e95c
      
https://github.com/qemu/qemu/commit/07b096b41873bd64d01c7d59e43066793ef0e95c
  Author: Peter Maydell <address@hidden>
  Date:   2016-02-16 (Tue, 16 Feb 2016)

  Changed paths:
    M tests/i440fx-test.c

  Log Message:
  -----------
  tests/i440fx-test: Don't define ARRAY_SIZE locally

Don't define ARRAY_SIZE locally; instead include osdep.h for it.

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


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

  Changed paths:
    M tests/ac97-test.c
    M tests/bios-tables-test.c
    M tests/boot-order-test.c
    M tests/check-qdict.c
    M tests/check-qfloat.c
    M tests/check-qint.c
    M tests/check-qjson.c
    M tests/check-qlist.c
    M tests/check-qom-interface.c
    M tests/check-qom-proplist.c
    M tests/check-qstring.c
    M tests/crypto-tls-x509-helpers.c
    M tests/device-introspect-test.c
    M tests/display-vga-test.c
    M tests/drive_del-test.c
    M tests/ds1338-test.c
    M tests/e1000-test.c
    M tests/eepro100-test.c
    M tests/endianness-test.c
    M tests/es1370-test.c
    M tests/fdc-test.c
    M tests/fw_cfg-test.c
    M tests/hd-geo-test.c
    M tests/i440fx-test.c
    M tests/i82801b11-test.c
    M tests/intel-hda-test.c
    M tests/io-channel-helpers.c
    M tests/ioh3420-test.c
    M tests/ipmi-bt-test.c
    M tests/ipmi-kcs-test.c
    M tests/ipoctal232-test.c
    M tests/ivshmem-test.c
    M tests/libqos/fw_cfg.c
    M tests/libqos/i2c-imx.c
    M tests/libqos/i2c-omap.c
    M tests/libqos/i2c.c
    M tests/libqos/libqos-pc.c
    M tests/libqos/libqos.c
    M tests/libqos/malloc-generic.c
    M tests/libqos/malloc-pc.c
    M tests/libqos/malloc.c
    M tests/libqos/pci-pc.c
    M tests/libqos/pci.c
    M tests/libqos/usb.c
    M tests/libqos/virtio-mmio.c
    M tests/libqos/virtio-pci.c
    M tests/libqos/virtio.c
    M tests/libqtest.c
    M tests/m48t59-test.c
    M tests/ne2000-test.c
    M tests/nvme-test.c
    M tests/pc-cpu-test.c
    M tests/pcnet-test.c
    M tests/pkix_asn1_tab.c
    M tests/pvpanic-test.c
    M tests/q35-test.c
    M tests/qemu-iotests/socket_scm_helper.c
    M tests/qom-test.c
    M tests/rcutorture.c
    M tests/rtc-test.c
    M tests/rtl8139-test.c
    M tests/spapr-phb-test.c
    M tests/tco-test.c
    M tests/test-aio.c
    M tests/test-base64.c
    M tests/test-bitops.c
    M tests/test-blockjob-txn.c
    M tests/test-coroutine.c
    M tests/test-crypto-cipher.c
    M tests/test-crypto-hash.c
    M tests/test-crypto-secret.c
    M tests/test-crypto-tlscredsx509.c
    M tests/test-crypto-tlssession.c
    M tests/test-cutils.c
    M tests/test-hbitmap.c
    M tests/test-int128.c
    M tests/test-io-channel-buffer.c
    M tests/test-io-channel-command.c
    M tests/test-io-channel-file.c
    M tests/test-io-channel-socket.c
    M tests/test-io-channel-tls.c
    M tests/test-io-task.c
    M tests/test-iov.c
    M tests/test-mul64.c
    M tests/test-netfilter.c
    M tests/test-opts-visitor.c
    M tests/test-qdev-global-props.c
    M tests/test-qemu-opts.c
    M tests/test-qga.c
    M tests/test-qmp-commands.c
    M tests/test-qmp-event.c
    M tests/test-qmp-input-strict.c
    M tests/test-qmp-input-visitor.c
    M tests/test-qmp-output-visitor.c
    M tests/test-rcu-list.c
    M tests/test-rfifolock.c
    M tests/test-string-input-visitor.c
    M tests/test-string-output-visitor.c
    M tests/test-thread-pool.c
    M tests/test-throttle.c
    M tests/test-timed-average.c
    M tests/test-visitor-serialization.c
    M tests/test-vmstate.c
    M tests/test-write-threshold.c
    M tests/test-x86-cpuid.c
    M tests/test-xbzrle.c
    M tests/tmp105-test.c
    M tests/tpci200-test.c
    M tests/vhost-user-bridge.c
    M tests/vhost-user-test.c
    M tests/virtio-balloon-test.c
    M tests/virtio-blk-test.c
    M tests/virtio-console-test.c
    M tests/virtio-net-test.c
    M tests/virtio-rng-test.c
    M tests/virtio-scsi-test.c
    M tests/virtio-serial-test.c
    M tests/vmxnet3-test.c
    M tests/wdt_ib700-test.c

  Log Message:
  -----------
  tests: 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>
Tested-by: Eric Blake <address@hidden>


  Commit: 9167ebd98f97dee8afa3ee206f1f48244b8707d2
      
https://github.com/qemu/qemu/commit/9167ebd98f97dee8afa3ee206f1f48244b8707d2
  Author: Eric Blake <address@hidden>
  Date:   2016-02-16 (Tue, 16 Feb 2016)

  Changed paths:
    M scripts/qapi-commands.py
    M scripts/qapi-event.py
    M scripts/qapi-introspect.py
    M scripts/qapi-types.py
    M scripts/qapi-visit.py

  Log Message:
  -----------
  qapi: Clean up includes in generated files

As a followup to commit cbf2115, clean up the includes in files
generated by QAPI so that osdep.h is included first in .c files,
and headers which it implies are not included manually.  This
patch is done manually, since Coccinelle (and therefore
scripts/clean-includes) doesn't see into the generator scripts.

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


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

  Changed paths:
    M scripts/feature_to_c.sh

  Log Message:
  -----------
  scripts/feature_to_c.sh: Include qemu/osdep.h rather than config.h

In the .c files generated by this script, include qemu/osdep.h
as the first included header, not config.h.

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


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

  Changed paths:
    M scripts/tracetool/backend/simple.py
    M scripts/tracetool/format/events_c.py
    M scripts/tracetool/format/tcg_helper_c.py

  Log Message:
  -----------
  scripts/tracetool: Include qemu/osdep.h in generated .c files

Include qemu/osdep.h as the first include in generated .c files,
so they don't implicitly rely on some other included header
to pull it in.

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


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

  Changed paths:
    M hw/arm/bcm2835_peripherals.c
    M hw/arm/bcm2836.c
    M hw/arm/raspi.c
    M hw/intc/bcm2835_ic.c
    M hw/intc/bcm2836_control.c
    M hw/misc/bcm2835_mbox.c
    M hw/misc/bcm2835_property.c
    M stubs/blockdev-close-all-bdrv-states.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>
Reviewed-by: Eric Blake <address@hidden>


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

  Changed paths:
    M include/qemu/osdep.h
    M util/oslib-posix.c

  Log Message:
  -----------
  oslib-posix.c: Move workaround for OSX daemon() deprecation to osdep.h

The right place for "work around issues with system headers" code
is osdep.h. Move the workaround for OSX's stdlib.h emitting a
deprecation warning for daemon() to that header.

This also fixes a problem where running clean-includes on
oslib-posix.c would erroneously remove the #include <stdlib.h>
from it, breaking the workaround.

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


Compare: https://github.com/qemu/qemu/compare/888ea96aae29...d5db2ec17746

reply via email to

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