Skip to contentSkip to conversation

Miscellaneous patches for 2018-12-20

GIT PULL Applied Markus Armbruster 2 participants 4 messages Dec 20, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

The following changes since commit b72566a4ffaddbc0c0c1f6f5ee91b42ab13ff429:

Merge remote-tracking branch 'remotes/vivier2/tags/trivial-patches-pull-request' into staging (2018-12-19 15:31:02 +0000)

are available in the Git repository at:

git://repo.or.cz/qemu/armbru.git tags/pull-misc-2018-12-20

for you to fetch changes up to 3a6b016d6487f3492bc1b80b2c3bc25c67aab8e2:

build: Remake config-host.mak when VERSION changes (2018-12-20 10:31:08 +0100)

----------------------------------------------------------------
Miscellaneous patches for 2018-12-20

----------------------------------------------------------------
Markus Armbruster (2):
Clean up includes
build: Remake config-host.mak when VERSION changes

 Makefile                                  | 2 +-
 contrib/elf2dmp/pdb.h                     | 2 --
 contrib/elf2dmp/pe.h                      | 1 -
 contrib/elf2dmp/qemu_elf.h                | 1 -
 contrib/vhost-user-blk/vhost-user-blk.c   | 1 -
 contrib/vhost-user-scsi/vhost-user-scsi.c | 1 -
 hw/rdma/rdma_utils.c                      | 1 +
 hw/rdma/rdma_utils.h                      | 1 -
 hw/rdma/vmw/pvrdma_dev_ring.h             | 1 -
 hw/vfio/ap.c                              | 2 +-
 include/qemu/vfio-helpers.h               | 1 -
 include/sysemu/whpx.h                     | 1 -
 target/i386/sev.c                         | 3 ++-
 target/i386/whp-dispatch.h                | 1 -
 target/riscv/fpu_helper.c                 | 1 -
 tests/fp/platform.h                       | 1 -
 tests/tpm-util.h                          | 1 -
 tests/vhost-user-bridge.c                 | 2 +-
 util/qemu-thread-common.h                 | 1 -
 19 files changed, 6 insertions(+), 19 deletions(-)
Signature · 1 line
2.17.2
#1 lore raw

[Qemu-devel] [PULL 2/2] build: Remake config-host.mak when VERSION changes

configure gets the version number from VERSION, and writes it to config-host.mak. The make dependency for that is missing. Because of that, a rebuild after a VERSION change may not pick up the change. Fix that.

Message-Id: <[email protected]>

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
index c8b9efdad4..038780c6d0 100644
@@ -67,7 +67,7 @@ CONFIG_ALL=y
 -include config-all-devices.mak
 -include config-all-disas.mak
 
-config-host.mak: $(SRC_PATH)/configure $(SRC_PATH)/pc-bios
+config-host.mak: $(SRC_PATH)/configure $(SRC_PATH)/pc-bios $(SRC_PATH)/VERSION
 	@echo $@ is out-of-date, running configure
 	@# TODO: The next lines include code which supports a smooth
 	@# transition from old configurations without config.status.
Signature · 1 line
2.17.2
#2 lore raw

[Qemu-devel] [PULL 1/2] Clean up includes

In reply to Markus Armbruster

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 changes to the following files manually reverted:

    contrib/libvhost-user/libvhost-user-glib.h
    contrib/libvhost-user/libvhost-user.c
    contrib/libvhost-user/libvhost-user.h
    linux-user/mips64/cpu_loop.c
    linux-user/mips64/signal.c
    linux-user/sparc64/cpu_loop.c
    linux-user/sparc64/signal.c
    linux-user/x86_64/cpu_loop.c
    linux-user/x86_64/signal.c
    target/s390x/gen-features.c
    tests/migration/s390x/a-b-bios.c
    tests/test-rcu-simpleq.c
    tests/test-rcu-tailq.c

Message-Id: <[email protected]>

---
 contrib/elf2dmp/pdb.h                     | 2 --
 contrib/elf2dmp/pe.h                      | 1 -
 contrib/elf2dmp/qemu_elf.h                | 1 -
 contrib/vhost-user-blk/vhost-user-blk.c   | 1 -
 contrib/vhost-user-scsi/vhost-user-scsi.c | 1 -
 hw/rdma/rdma_utils.c                      | 1 +
 hw/rdma/rdma_utils.h                      | 1 -
 hw/rdma/vmw/pvrdma_dev_ring.h             | 1 -
 hw/vfio/ap.c                              | 2 +-
 include/qemu/vfio-helpers.h               | 1 -
 include/sysemu/whpx.h                     | 1 -
 target/i386/sev.c                         | 3 ++-
 target/i386/whp-dispatch.h                | 1 -
 target/riscv/fpu_helper.c                 | 1 -
 tests/fp/platform.h                       | 1 -
 tests/tpm-util.h                          | 1 -
 tests/vhost-user-bridge.c                 | 2 +-
 util/qemu-thread-common.h                 | 1 -
 18 files changed, 5 insertions(+), 18 deletions(-)
contrib/elf2dmp/pdb.h +0 -2
index 4351a2dd61..a3a3cac2c1 100644
@@ -8,8 +8,6 @@
 #ifndef PDB_H
 #define PDB_H
 
-#include <stdint.h>
-#include <stdlib.h>
 
 typedef struct GUID {
     unsigned int Data1;
contrib/elf2dmp/pe.h +0 -1
index 374e06a9c5..dafb26afbb 100644
@@ -8,7 +8,6 @@
 #ifndef PE_H
 #define PE_H
 
-#include <stdint.h>
 
 typedef struct IMAGE_DOS_HEADER {
     uint16_t  e_magic;      /* 0x00: MZ Header signature */
contrib/elf2dmp/qemu_elf.h +0 -1
index d85d6558fa..86e6e688fb 100644
@@ -8,7 +8,6 @@
 #ifndef QEMU_ELF_H
 #define QEMU_ELF_H
 
-#include <stdint.h>
 #include <elf.h>
 
 typedef struct QEMUCPUSegment {
contrib/vhost-user-blk/vhost-user-blk.c +0 -1
index 571f114a56..858221ad95 100644
@@ -20,7 +20,6 @@
 #include "contrib/libvhost-user/libvhost-user-glib.h"
 #include "contrib/libvhost-user/libvhost-user.h"
 
-#include <glib.h>
 
 struct virtio_blk_inhdr {
     unsigned char status;
contrib/vhost-user-scsi/vhost-user-scsi.c +0 -1
index 02c29019d1..496dd6e693 100644
@@ -16,7 +16,6 @@
 #include "contrib/libvhost-user/libvhost-user-glib.h"
 #include "standard-headers/linux/virtio_scsi.h"
 
-#include <glib.h>
 
 #define VUS_ISCSI_INITIATOR "iqn.2016-11.com.nutanix:vhost-user-scsi"
 
hw/rdma/rdma_utils.c +1 -0
index dc23f158f3..4fbea8cde2 100644
@@ -13,6 +13,7 @@
  *
  */
 
+#include "qemu/osdep.h"
 #include "rdma_utils.h"
 
 #ifdef PVRDMA_DEBUG
hw/rdma/rdma_utils.h +0 -1
index 04c7c2ef5b..c4f96c4f2a 100644
@@ -17,7 +17,6 @@
 #ifndef RDMA_UTILS_H
 #define RDMA_UTILS_H
 
-#include "qemu/osdep.h"
 #include "hw/pci/pci.h"
 #include "sysemu/dma.h"
 
hw/rdma/vmw/pvrdma_dev_ring.h +0 -1
index 411d244603..5f2a0cf9b9 100644
@@ -16,7 +16,6 @@
 #ifndef PVRDMA_DEV_RING_H
 #define PVRDMA_DEV_RING_H
 
-#include "qemu/typedefs.h"
 
 #define MAX_RING_NAME_SZ 32
 
hw/vfio/ap.c +1 -1
index 0a25f5e096..6166ccd47a 100644
@@ -10,9 +10,9 @@
  * directory.
  */
 
+#include "qemu/osdep.h"
 #include <linux/vfio.h>
 #include <sys/ioctl.h>
-#include "qemu/osdep.h"
 #include "qapi/error.h"
 #include "hw/sysbus.h"
 #include "hw/vfio/vfio.h"
include/qemu/vfio-helpers.h +0 -1
index ce7e7b057f..1f057c2b9e 100644
@@ -12,7 +12,6 @@
 
 #ifndef QEMU_VFIO_HELPERS_H
 #define QEMU_VFIO_HELPERS_H
-#include "qemu/typedefs.h"
 
 typedef struct QEMUVFIOState QEMUVFIOState;
 
include/sysemu/whpx.h +0 -1
index 89592ae4fa..d200ee01d0 100644
@@ -13,7 +13,6 @@
 #ifndef QEMU_WHPX_H
 #define QEMU_WHPX_H
 
-#include "config-host.h"
 #include "qemu-common.h"
 
 int whpx_init_vcpu(CPUState *cpu);
target/i386/sev.c +2 -1
index 2395171acf..20b2d325d8 100644
@@ -11,12 +11,13 @@
  *
  */
 
+#include "qemu/osdep.h"
+
 #include <linux/kvm.h>
 #include <linux/psp-sev.h>
 
 #include <sys/ioctl.h>
 
-#include "qemu/osdep.h"
 #include "qapi/error.h"
 #include "qom/object_interfaces.h"
 #include "qemu/base64.h"
target/i386/whp-dispatch.h +0 -1
index d8d3485976..4ae3cc8fa5 100644
@@ -1,5 +1,4 @@
 #include "windows.h"
-#include <stdbool.h>
 
 #include <WinHvPlatform.h>
 #include <WinHvEmulation.h>
target/riscv/fpu_helper.c +0 -1
index fdb87d8d82..01b45ca0ae 100644
@@ -17,7 +17,6 @@
  */
 
 #include "qemu/osdep.h"
-#include <stdlib.h>
 #include "cpu.h"
 #include "qemu/host-utils.h"
 #include "exec/exec-all.h"
tests/fp/platform.h +0 -1
index c20ba70baa..f8c423dde3 100644
@@ -29,7 +29,6 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
-#include "config-host.h"
 
 #ifndef HOST_WORDS_BIGENDIAN
 #define LITTLEENDIAN 1
tests/tpm-util.h +0 -1
index 9e98bc5124..5755698ad2 100644
@@ -13,7 +13,6 @@
 #ifndef TESTS_TPM_UTIL_H
 #define TESTS_TPM_UTIL_H
 
-#include "qemu/osdep.h"
 #include "io/channel-socket.h"
 
 typedef void (tx_func)(QTestState *s,
tests/vhost-user-bridge.c +1 -1
index 0cf8d0baca..0033b61f2e 100644
@@ -29,8 +29,8 @@
 
 #define _FILE_OFFSET_BITS 64
 
-#include "qemu/atomic.h"
 #include "qemu/osdep.h"
+#include "qemu/atomic.h"
 #include "qemu/iov.h"
 #include "standard-headers/linux/virtio_net.h"
 #include "contrib/libvhost-user/libvhost-user.h"
util/qemu-thread-common.h +0 -1
index a0ea7c0d92..2af6b12085 100644
@@ -13,7 +13,6 @@
 #ifndef QEMU_THREAD_COMMON_H
 #define QEMU_THREAD_COMMON_H
 
-#include "qemu/typedefs.h"
 #include "qemu/thread.h"
 #include "trace.h"
 
Signature · 1 line
2.17.2
#3 lore raw
In reply to Markus Armbruster
Quoted 13 lines · Markus Armbruster

The following changes since commit b72566a4ffaddbc0c0c1f6f5ee91b42ab13ff429:

Merge remote-tracking branch 'remotes/vivier2/tags/trivial-patches-pull-request' into staging (2018-12-19 15:31:02 +0000)

are available in the Git repository at:

git://repo.or.cz/qemu/armbru.git tags/pull-misc-2018-12-20

for you to fetch changes up to 3a6b016d6487f3492bc1b80b2c3bc25c67aab8e2:

build: Remake config-host.mak when VERSION changes (2018-12-20 10:31:08 +0100)

Quoted 7 lines

----------------------------------------------------------------
Miscellaneous patches for 2018-12-20

----------------------------------------------------------------
Markus Armbruster (2):
Clean up includes
build: Remake config-host.mak when VERSION changes

Applied, thanks.
-- PMM