Miscellaneous patches for 2019-04-18
Subsystems (7)
Early pull request because I'll be on vacation when 4.1 opens. Hope that's okay.
The following changes since commit eeba63fc7fface36f438bcbc0d3b02e7dcb59983:
Update version for v4.0.0-rc4 release (2019-04-16 21:53:00 +0100)
are available in the Git repository at:
git://repo.or.cz/qemu/armbru.git tags/pull-misc-2019-04-18
for you to fetch changes up to 15136db27efaf0bdcf1131d41ad57832a2acadcc:
Clean up decorations and whitespace around header guards (2019-04-17 19:20:46 +0200)
----------------------------------------------------------------
Miscellaneous patches for 2019-04-18
----------------------------------------------------------------
Markus Armbruster (9):
Clean up includes
Use #include "..." for our own headers, <...> for others
authz: Normalize #include "authz/trace.h" to "trace.h" linux-user/nios2 linux-user/riscv: Clean up header guards target/xtensa: Clean up core-isa.h header guards Clean up header guards that don't match their file name Clean up ill-advised or unusual header guards Normalize header guard symbol definition.
Clean up decorations and whitespace around header guards
authz/base.c | 2 +- authz/list.c | 2 +- authz/listfile.c | 2 +- authz/pamacct.c | 2 +- authz/simple.c | 2 +- block/crypto.h | 6 +++--- contrib/elf2dmp/main.c | 3 +-- contrib/elf2dmp/pdb.c | 3 +-- contrib/elf2dmp/qemu_elf.h | 6 +++--- contrib/rdmacm-mux/main.c | 18 +++++++++--------- contrib/rdmacm-mux/rdmacm-mux.h | 6 +++--- disas/nanomips.h | 4 ++-- fsdev/qemu-fsdev-throttle.h | 7 ++++--- hw/arm/smmuv3-internal.h | 4 ++-- hw/display/ati.c | 1 + hw/display/ati_2d.c | 1 + hw/display/ati_dbg.c | 1 + hw/display/ati_int.h | 1 - hw/display/vga_regs.h | 6 +++--- hw/i386/amd_iommu.h | 4 ++-- hw/ide/ahci_internal.h | 2 +- hw/rdma/rdma_utils.h | 1 - hw/rdma/vmw/pvrdma_qp_ops.h | 4 ++-- hw/sd/sdmmc-internal.h | 5 +++-- hw/timer/m48t59-internal.h | 3 ++- hw/tpm/tpm_ioctl.h | 7 ++++--- hw/xtensa/xtensa_memory.h | 4 ++-- include/authz/base.h | 7 +++---- include/authz/list.h | 7 +++---- include/authz/listfile.h | 8 +++----- include/authz/pamacct.h | 7 +++---- include/authz/simple.h | 7 +++---- include/block/aio-wait.h | 2 +- include/chardev/spice.h | 4 ++-- include/disas/capstone.h | 2 +- include/exec/translator.h | 2 +- include/hw/arm/nrf51_soc.h | 1 - include/hw/arm/smmu-common.h | 2 +- include/hw/audio/soundhw.h | 4 ++-- include/hw/cpu/cluster.h | 1 - include/hw/i386/x86-iommu.h | 4 ++-- include/hw/intc/heathrow_pic.h | 6 +++--- include/hw/intc/xlnx-pmu-iomod-intc.h | 6 +++--- include/hw/misc/armsse-mhu.h | 4 ++-- include/hw/misc/imx2_wdt.h | 2 +- include/hw/misc/nrf51_rng.h | 3 ++- include/hw/pci-host/designware.h | 2 +- include/hw/pci-host/sabre.h | 4 ++-- include/hw/ppc/pnv.h | 7 ++++--- include/hw/ppc/pnv_core.h | 7 ++++--- include/hw/ppc/pnv_lpc.h | 7 ++++--- include/hw/ppc/pnv_occ.h | 7 ++++--- include/hw/ppc/pnv_psi.h | 7 ++++--- include/hw/ppc/pnv_xscom.h | 7 ++++--- include/hw/ppc/spapr_ovec.h | 7 ++++--- include/hw/riscv/sifive_plic.h | 1 - include/hw/scsi/emulation.h | 2 +- include/hw/timer/pl031.h | 4 ++-- include/hw/virtio/vhost-vsock.h | 6 +++--- include/hw/virtio/virtio-crypto.h | 6 +++--- include/hw/watchdog/wdt_aspeed.h | 7 ++++--- include/hw/xen/start_info.h | 6 +++--- include/hw/xen/xen-legacy-backend.h | 6 +++--- include/hw/xtensa/mx_pic.h | 4 ++-- include/hw/xtensa/xtensa-isa.h | 6 +++--- include/migration/qemu-file-types.h | 4 ++-- include/qemu/drm.h | 4 ++-- include/qemu/filemonitor.h | 6 +++--- include/qemu/jhash.h | 6 +++--- include/qemu/pmem.h | 2 +- include/qemu/stats64.h | 2 +- include/qemu/sys_membarrier.h | 2 +- include/qemu/systemd.h | 2 +- include/scsi/constants.h | 4 ++-- include/scsi/utils.h | 2 +- include/sysemu/hvf.h | 5 +++-- include/ui/kbd-state.h | 3 ++- linux-user/nios2/target_cpu.h | 4 ++-- linux-user/nios2/target_signal.h | 6 +++--- linux-user/nios2/target_structs.h | 4 ++-- linux-user/nios2/target_syscall.h | 6 +++--- linux-user/riscv/target_cpu.h | 4 ++-- linux-user/riscv/target_signal.h | 6 +++--- linux-user/riscv/target_structs.h | 4 ++-- linux-user/xtensa/syscall_nr.h | 6 +++--- linux-user/xtensa/target_structs.h | 4 ++-- linux-user/xtensa/termbits.h | 6 +++--- net/colo.h | 6 +++--- qga/vss-win32/vss-handles.h | 4 ++-- scsi/pr-helper.h | 3 ++- target/i386/hax-i386.h | 4 ++-- target/i386/hax-interface.h | 4 ++-- target/i386/hax-posix.h | 6 +++--- target/i386/hvf/hvf-i386.h | 4 ++-- target/i386/hvf/vmcs.h | 4 ++-- target/i386/hvf/x86.h | 2 +- target/i386/hvf/x86_decode.h | 2 +- target/i386/hvf/x86_descr.h | 2 +- target/i386/hvf/x86_emu.h | 5 +++-- target/i386/hvf/x86_flags.h | 7 ++++--- target/i386/hvf/x86_mmu.h | 7 ++++--- target/i386/hvf/x86_task.h | 6 ++++-- target/i386/whp-dispatch.h | 2 +- target/i386/whpx-all.c | 1 - target/nios2/cpu.h | 7 ++++--- target/nios2/mmu.h | 7 ++++--- target/ppc/mmu-book3s-v3.h | 6 +++--- target/riscv/pmp.h | 4 ++-- target/sparc/asi.h | 6 +++--- target/xtensa/core-de212/core-isa.h | 8 +++----- target/xtensa/core-sample_controller/core-isa.h | 8 +++----- target/xtensa/core-test_kc705_be/core-isa.h | 8 +++----- target/xtensa/core-test_mmuhifi_c3/core-isa.h | 8 +++----- target/xtensa/xtensa-isa-internal.h | 2 +- tests/acpi-utils.h | 2 +- tests/fp/platform.h | 1 - tests/libqos/e1000e.h | 4 ++-- tests/libqos/qgraph.h | 4 ---- tests/libqos/qgraph_internal.h | 4 ++-- tests/libqos/sdhci.h | 4 ++-- tests/migration/migration-test.h | 7 ++++--- tests/qos-test.c | 2 +- tests/tpm-emu.h | 2 +- 123 files changed, 272 insertions(+), 272 deletions(-)
Signature · 1 line
2.17.2
[Qemu-devel] [PULL for-4.1 2/9] Use #include "..." for our own headers, <...> for others
Also delete a few redundant #include.
Message-Id: <[email protected]>
--- contrib/rdmacm-mux/main.c | 18 +++++++++--------- contrib/rdmacm-mux/rdmacm-mux.h | 6 +++--- hw/rdma/rdma_utils.h | 1 - target/i386/whp-dispatch.h | 2 +- target/i386/whpx-all.c | 1 - 5 files changed, 13 insertions(+), 15 deletions(-)
contrib/rdmacm-mux/main.c +9 -9
@@ -14,16 +14,16 @@*/ #include "qemu/osdep.h" -#include "sys/poll.h" -#include "sys/ioctl.h" -#include "pthread.h" -#include "syslog.h" +#include <sys/poll.h> +#include <sys/ioctl.h> +#include <pthread.h> +#include <syslog.h> -#include "infiniband/verbs.h" -#include "infiniband/umad.h" -#include "infiniband/umad_types.h" -#include "infiniband/umad_sa.h" -#include "infiniband/umad_cm.h" +#include <infiniband/verbs.h> +#include <infiniband/umad.h> +#include <infiniband/umad_types.h> +#include <infiniband/umad_sa.h> +#include <infiniband/umad_cm.h> #include "rdmacm-mux.h"
contrib/rdmacm-mux/rdmacm-mux.h +3 -3
@@ -17,9 +17,9 @@#define RDMACM_MUX_H #include "linux/if.h" -#include "infiniband/verbs.h" -#include "infiniband/umad.h" -#include "rdma/rdma_user_cm.h" +#include <infiniband/verbs.h> +#include <infiniband/umad.h> +#include <rdma/rdma_user_cm.h> typedef enum RdmaCmMuxMsgType { RDMACM_MUX_MSG_TYPE_REQ = 0,
hw/rdma/rdma_utils.h +0 -1
@@ -20,7 +20,6 @@#include "qemu/error-report.h" #include "hw/pci/pci.h" #include "sysemu/dma.h" -#include "stdio.h" #define rdma_error_report (fmt, ...) \ error_report("%s: " fmt, "rdma", ## __VA_ARGS__)
target/i386/whp-dispatch.h +1 -1
@@ -1,4 +1,4 @@ -#include "windows.h" +#include <windows.h> #include <WinHvPlatform.h> #include <WinHvEmulation.h>
target/i386/whpx-all.c +0 -1
@@ -13,7 +13,6 @@#include "exec/address-spaces.h" #include "exec/ioport.h" #include "qemu-common.h" -#include "strings.h" #include "sysemu/accel.h" #include "sysemu/whpx.h" #include "sysemu/sysemu.h"
Signature · 1 line
2.17.2
[Qemu-devel] [PULL for-4.1 3/9] authz: Normalize #include "authz/trace.h" to "trace.h"
In reply to Markus ArmbrusterInclude the generated trace.h the same way as we do everywhere else.
Message-Id: <[email protected]>
--- authz/base.c | 2 +- authz/list.c | 2 +- authz/listfile.c | 2 +- authz/pamacct.c | 2 +- authz/simple.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-)
authz/base.c +1 -1
@@ -20,7 +20,7 @@#include "qemu/osdep.h" #include "authz/base.h" -#include "authz/trace.h" +#include "trace.h" bool qauthz_is_allowed(QAuthZ *authz, const char *identity,
authz/list.c +1 -1
@@ -20,7 +20,7 @@#include "qemu/osdep.h" #include "authz/list.h" -#include "authz/trace.h" +#include "trace.h" #include "qom/object_interfaces.h" #include "qapi/qapi-visit-authz.h"
authz/listfile.c +1 -1
@@ -20,7 +20,7 @@#include "qemu/osdep.h" #include "authz/listfile.h" -#include "authz/trace.h" +#include "trace.h" #include "qemu/error-report.h" #include "qemu/main-loop.h" #include "qemu/sockets.h"
authz/pamacct.c +1 -1
@@ -20,7 +20,7 @@#include "qemu/osdep.h" #include "authz/pamacct.h" -#include "authz/trace.h" +#include "trace.h" #include "qom/object_interfaces.h" #include <security/pam_appl.h>
authz/simple.c +1 -1
@@ -20,7 +20,7 @@#include "qemu/osdep.h" #include "authz/simple.h" -#include "authz/trace.h" +#include "trace.h" #include "qom/object_interfaces.h" static bool qauthz_simple_is_allowed(QAuthZ *authz,
Signature · 1 line
2.17.2
[Qemu-devel] [PULL for-4.1 4/9] linux-user/nios2 linux-user/riscv: Clean up header guards
In reply to Markus ArmbrusterReuse of the same guard symbol in multiple headers is okay as long as they cannot be included together. scripts/clean-header-guards.pl can't tell, so it warns.
Since we can avoid guard symbol reuse easily, do so: use guard symbol ${target^^}_${fname^^} for linux-user/$target/$fname, just like we did in commit a9c94277f0..3500385697.
Message-Id: <[email protected]>
--- linux-user/nios2/target_cpu.h | 4 ++-- linux-user/nios2/target_signal.h | 6 +++--- linux-user/nios2/target_structs.h | 4 ++-- linux-user/nios2/target_syscall.h | 6 +++--- linux-user/riscv/target_cpu.h | 4 ++-- linux-user/riscv/target_signal.h | 6 +++--- linux-user/riscv/target_structs.h | 4 ++-- 7 files changed, 17 insertions(+), 17 deletions(-)
linux-user/nios2/target_cpu.h +2 -2
@@ -17,8 +17,8 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ -#ifndef TARGET_CPU_H -#define TARGET_CPU_H +#ifndef NIOS2_TARGET_CPU_H +#define NIOS2_TARGET_CPU_H static inline void cpu_clone_regs (CPUNios2State *env,target_ulong newsp) {
linux-user/nios2/target_signal.h +3 -3
@@ -1,5 +1,5 @@ -#ifndef TARGET_SIGNAL_H -#define TARGET_SIGNAL_H +#ifndef NIOS2_TARGET_SIGNAL_H +#define NIOS2_TARGET_SIGNAL_H /* this struct defines a stack used during syscall handling */
@@ -18,4 +18,4 @@ typedef struct target_sigaltstack {#include "../generic/signal.h" -#endif /* TARGET_SIGNAL_H */ +#endif /* NIOS2_TARGET_SIGNAL_H */
linux-user/nios2/target_structs.h +2 -2
@@ -16,8 +16,8 @@* You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/>. */ -#ifndef TARGET_STRUCTS_H -#define TARGET_STRUCTS_H +#ifndef NIOS2_TARGET_STRUCTS_H +#define NIOS2_TARGET_STRUCTS_H struct target_ipc_perm { abi_int __key; /* Key. */
linux-user/nios2/target_syscall.h +3 -3
@@ -1,5 +1,5 @@ -#ifndef TARGET_SYSCALL_H -#define TARGET_SYSCALL_H +#ifndef NIOS2_TARGET_SYSCALL_H +#define NIOS2_TARGET_SYSCALL_H #define UNAME_MACHINE "nios2"#define UNAME_MINIMUM_RELEASE "3.19.0"
@@ -34,4 +34,4 @@ struct target_pt_regs {#define TARGET_MLOCKALL_MCL_CURRENT 1#define TARGET_MLOCKALL_MCL_FUTURE 2 -#endif /* TARGET_SYSCALL_H */ +#endif /* NIOS2_TARGET_SYSCALL_H */
linux-user/riscv/target_cpu.h +2 -2
@@ -1,5 +1,5 @@ -#ifndef TARGET_CPU_H -#define TARGET_CPU_H +#ifndef RISCV_TARGET_CPU_H +#define RISCV_TARGET_CPU_H static inline void cpu_clone_regs (CPURISCVState *env,target_ulong newsp) {
linux-user/riscv/target_signal.h +3 -3
@@ -1,5 +1,5 @@ -#ifndef TARGET_SIGNAL_H -#define TARGET_SIGNAL_H +#ifndef RISCV_TARGET_SIGNAL_H +#define RISCV_TARGET_SIGNAL_H typedef struct target_sigaltstack { abi_ulong ss_sp;
@@ -15,4 +15,4 @@ typedef struct target_sigaltstack {#include "../generic/signal.h" -#endif /* TARGET_SIGNAL_H */ +#endif /* RISCV_TARGET_SIGNAL_H */
linux-user/riscv/target_structs.h +2 -2
@@ -4,8 +4,8 @@* This is a copy of ../aarch64/target_structs.h atm. * */ -#ifndef TARGET_STRUCTS_H -#define TARGET_STRUCTS_H +#ifndef RISCV_TARGET_STRUCTS_H +#define RISCV_TARGET_STRUCTS_H struct target_ipc_perm { abi_int __key; /* Key. */
Signature · 1 line
2.17.2
[Qemu-devel] [PULL for-4.1 1/9] Clean up includes
In reply to Markus ArmbrusterClean 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
slirp/src/*
target/s390x/gen-features.c
tests/migration/s390x/a-b-bios.c
tests/test-rcu-simpleq.c
tests/test-rcu-tailq.c
tests/uefi-test-tools/UefiTestToolsPkg/BiosTablesTest/BiosTablesTest.cWe're in the process of spinning out slirp/. tests/uefi-test-tools/ is guest software. The remaining reverts are the same as in commit b7d89466dde.
Message-Id: <[email protected]>
--- contrib/elf2dmp/main.c | 3 +-- contrib/elf2dmp/pdb.c | 3 +-- hw/display/ati.c | 1 + hw/display/ati_2d.c | 1 + hw/display/ati_dbg.c | 1 + hw/display/ati_int.h | 1 - include/hw/cpu/cluster.h | 1 - tests/fp/platform.h | 1 - tests/libqos/qgraph.h | 4 ---- tests/qos-test.c | 2 +- 10 files changed, 6 insertions(+), 12 deletions(-)
contrib/elf2dmp/main.c +1 -2
@@ -5,9 +5,8 @@* */ -#include <inttypes.h> -#include "qemu/osdep.h" +#include "err.h" #include "addrspace.h" #include "pe.h"
contrib/elf2dmp/pdb.c +1 -2
@@ -18,9 +18,8 @@* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ -#include <inttypes.h> -#include "qemu/osdep.h" +#include "pdb.h" #include "err.h"
hw/display/ati.c +1 -0
@@ -16,6 +16,7 @@* No 3D at all yet (maybe after 2D works, but feel free to improve it) */ +#include "qemu/osdep.h" #include "ati_int.h" #include "ati_regs.h" #include "vga_regs.h"
hw/display/ati_2d.c +1 -0
@@ -7,6 +7,7 @@* This work is licensed under the GNU GPL license version 2 or later. */ +#include "qemu/osdep.h" #include "ati_int.h" #include "ati_regs.h" #include "qemu/log.h"
hw/display/ati_dbg.c +1 -0
@@ -1,3 +1,4 @@ +#include "qemu/osdep.h" #include "ati_int.h" #ifdef DEBUG_ATI
hw/display/ati_int.h +0 -1
@@ -9,7 +9,6 @@#ifndef ATI_INT_H #define ATI_INT_H -#include "qemu/osdep.h" #include "hw/pci/pci.h" #include "vga_int.h"
include/hw/cpu/cluster.h +0 -1
@@ -20,7 +20,6 @@#ifndef HW_CPU_CLUSTER_H #define HW_CPU_CLUSTER_H -#include "qemu/osdep.h" #include "hw/qdev.h" /*
tests/fp/platform.h +0 -1
@@ -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/libqos/qgraph.h +0 -4
@@ -19,11 +19,7 @@#ifndef QGRAPH_H #define QGRAPH_H -#include <stdio.h> -#include <stdlib.h> -#include <stdbool.h> #include <gmodule.h> -#include <glib.h> #include "qemu/module.h" #include "malloc.h"
tests/qos-test.c +1 -1
@@ -16,8 +16,8 @@* License along with this library; if not, see <http://www.gnu.org/licenses/> */ -#include <getopt.h> #include "qemu/osdep.h" +#include <getopt.h> #include "libqtest.h" #include "qapi/qmp/qdict.h" #include "qapi/qmp/qbool.h"
Signature · 1 line
2.17.2
[Qemu-devel] [PULL for-4.1 5/9] target/xtensa: Clean up core-isa.h header guards
In reply to Markus Armbrusterscripts/clean-header-guards.pl warns these headers use reserved identifier _XTENSA_CORE_CONFIGURATION_H as header guard symbol. It additionally warns the guard doesn't match the file name.
Reuse of the same guard symbol in multiple headers is okay as long as they cannot be included together.
Since we can avoid guard symbol reuse easily, do so: use the guard symbol scripts/clean-header-guards.pl picks, less the TARGET_ prefix.
Message-Id: <[email protected]>
--- target/xtensa/core-de212/core-isa.h | 8 +++----- target/xtensa/core-sample_controller/core-isa.h | 8 +++----- target/xtensa/core-test_kc705_be/core-isa.h | 8 +++----- target/xtensa/core-test_mmuhifi_c3/core-isa.h | 8 +++----- 4 files changed, 12 insertions(+), 20 deletions(-)
target/xtensa/core-de212/core-isa.h +3 -5
@@ -28,9 +28,8 @@TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef _XTENSA_CORE_CONFIGURATION_H -#define _XTENSA_CORE_CONFIGURATION_H - +#ifndef XTENSA_CORE_DE212_CORE_ISA_H +#define XTENSA_CORE_DE212_CORE_ISA_H /**************************************************************************** Parameters Useful for Any Code, USER or PRIVILEGED
@@ -618,5 +617,4 @@#endif /* !XTENSA_HAL_NON_PRIVILEGED_ONLY */ -#endif /* _XTENSA_CORE_CONFIGURATION_H */ - +#endif /* XTENSA_CORE_DE212_CORE_ISA_H */
target/xtensa/core-sample_controller/core-isa.h +3 -5
@@ -28,9 +28,8 @@TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef _XTENSA_CORE_CONFIGURATION_H -#define _XTENSA_CORE_CONFIGURATION_H - +#ifndef XTENSA_CORE_SAMPLE_CONTROLLER_CORE_ISA_H +#define XTENSA_CORE_SAMPLE_CONTROLLER_CORE_ISA_H /**************************************************************************** Parameters Useful for Any Code, USER or PRIVILEGED
@@ -640,5 +639,4 @@#endif /* !XTENSA_HAL_NON_PRIVILEGED_ONLY */ -#endif /* _XTENSA_CORE_CONFIGURATION_H */ - +#endif /* XTENSA_CORE_SAMPLE_CONTROLLER_CORE_ISA_H */
target/xtensa/core-test_kc705_be/core-isa.h +3 -5
@@ -28,9 +28,8 @@TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef _XTENSA_CORE_CONFIGURATION_H -#define _XTENSA_CORE_CONFIGURATION_H - +#ifndef XTENSA_CORE_TEST_KC705_BE_CORE_ISA_H +#define XTENSA_CORE_TEST_KC705_BE_CORE_ISA_H /**************************************************************************** Parameters Useful for Any Code, USER or PRIVILEGED
@@ -571,5 +570,4 @@#endif /* !XTENSA_HAL_NON_PRIVILEGED_ONLY */ -#endif /* _XTENSA_CORE_CONFIGURATION_H */ - +#endif /* XTENSA_CORE_TEST_KC705_BE_CORE_ISA_H */
target/xtensa/core-test_mmuhifi_c3/core-isa.h +3 -5
@@ -7,9 +7,8 @@* Copyright (c) 1999-2009 Tensilica Inc. */ -#ifndef _XTENSA_CORE_CONFIGURATION_H -#define _XTENSA_CORE_CONFIGURATION_H - +#ifndef XTENSA_CORE_TEST_MMUHIFI_C3_CORE_ISA_H +#define XTENSA_CORE_TEST_MMUHIFI_C3_CORE_ISA_H /**************************************************************************** Parameters Useful for Any Code, USER or PRIVILEGED
@@ -380,5 +379,4 @@#endif /* !XTENSA_HAL_NON_PRIVILEGED_ONLY */ -#endif /* _XTENSA_CORE_CONFIGURATION_H */ - +#endif /* XTENSA_CORE_TEST_MMUHIFI_C3_CORE_ISA_H */
Signature · 1 line
2.17.2
[Qemu-devel] [PULL for-4.1 9/9] Clean up decorations and whitespace around header guards
In reply to Markus ArmbrusterCleaned up with scripts/clean-header-guards.pl.
Message-Id: <[email protected]>
--- hw/ide/ahci_internal.h | 2 +- include/block/aio-wait.h | 2 +- include/exec/translator.h | 2 +- include/hw/arm/nrf51_soc.h | 1 - include/hw/arm/smmu-common.h | 2 +- include/hw/misc/imx2_wdt.h | 2 +- include/hw/misc/nrf51_rng.h | 3 ++- include/hw/pci-host/designware.h | 2 +- include/hw/riscv/sifive_plic.h | 1 - include/qemu/pmem.h | 2 +- target/xtensa/xtensa-isa-internal.h | 2 +- tests/acpi-utils.h | 2 +- tests/tpm-emu.h | 2 +- 13 files changed, 12 insertions(+), 13 deletions(-)
hw/ide/ahci_internal.h +1 -1
@@ -394,4 +394,4 @@ void ahci_reset(AHCIState *s);#define SYSBUS_AHCI (obj) OBJECT_CHECK(SysbusAHCIState, (obj), TYPE_SYSBUS_AHCI) -#endif /* HW_IDE_AHCI_H */ +#endif /* HW_IDE_AHCI_INTERNAL_H */
include/block/aio-wait.h +1 -1
@@ -124,4 +124,4 @@ void aio_wait_kick(void);*/ void aio_wait_bh_oneshot (AioContext *ctx,QEMUBHFunc *cb,void *opaque); -#endif /* QEMU_AIO_WAIT */ +#endif /* QEMU_AIO_WAIT_H */
include/exec/translator.h +1 -1
@@ -141,4 +141,4 @@ void translator_loop(const TranslatorOps *ops, DisasContextBase *db,void translator_loop_temp_check (DisasContextBase *db); -#endif /* EXEC__TRANSLATOR_H */ +#endif /* EXEC__TRANSLATOR_H */
include/hw/arm/nrf51_soc.h +0 -1
@@ -53,4 +53,3 @@ typedef struct NRF51State { } NRF51State;#endif -
include/hw/arm/smmu-common.h +1 -1
@@ -167,4 +167,4 @@ void smmu_inv_notifiers_all(SMMUState *s);/* Unmap the range of all the notifiers registered to @mr */ void smmu_inv_notifiers_mr (IOMMUMemoryRegion *mr); -#endif /* HW_ARM_SMMU_COMMON */ +#endif /* HW_ARM_SMMU_COMMON_H */
include/hw/misc/imx2_wdt.h +1 -1
@@ -30,4 +30,4 @@ typedef struct IMX2WdtState { MemoryRegion mmio; } IMX2WdtState; -#endif /* IMX7_SNVS_H */ +#endif /* IMX2_WDT_H */
include/hw/misc/nrf51_rng.h +2 -1
@@ -30,6 +30,7 @@* the COPYING file in the top-level directory. * */ +#ifndef NRF51_RNG_H #define NRF51_RNG_H
@@ -80,4 +81,4 @@ typedef struct { } NRF51RNGState; -#endif /* NRF51_RNG_H_ */ +#endif /* NRF51_RNG_H */
include/hw/pci-host/designware.h +1 -1
@@ -99,4 +99,4 @@ typedef struct DesignwarePCIEHost { MemoryRegion mmio; } DesignwarePCIEHost; -#endif /* DESIGNWARE_H */ +#endif /* DESIGNWARE_H */
include/hw/riscv/sifive_plic.h +0 -1
@@ -80,4 +80,3 @@ DeviceState *sifive_plic_create(hwaddr addr, char *hart_config, uint32_t aperture_size);#endif -
include/qemu/pmem.h +1 -1
@@ -33,4 +33,4 @@ pmem_persist(const void *addr, size_t len)#endif /* CONFIG_LIBPMEM */ -#endif /* !QEMU_PMEM_H */ +#endif /* QEMU_PMEM_H */
target/xtensa/xtensa-isa-internal.h +1 -1
@@ -228,4 +228,4 @@ int xtensa_isa_name_compare(const void *, const void *);extern xtensa_isa_status xtisa_errno;extern char xtisa_error_msg[]; -#endif /* !XTENSA_ISA_INTERNAL_H */ +#endif /* XTENSA_ISA_INTERNAL_H */
tests/acpi-utils.h +1 -1
@@ -52,4 +52,4 @@ void acpi_fetch_table(QTestState *qts, uint8_t **aml, uint32_t *aml_len, const uint8_t *addr_ptr, const char *sig, bool verify_checksum); -#endif /* TEST_ACPI_UTILS_H */ +#endif /* TEST_ACPI_UTILS_H */
tests/tpm-emu.h +1 -1
@@ -36,4 +36,4 @@ typedef struct TestState {void tpm_emu_test_wait_cond (TestState *s);void *tpm_emu_ctrl_thread (void *data); -#endif /* TEST_TPM_EMU_H */ +#endif /* TESTS_TPM_EMU_H */
Signature · 1 line
2.17.2
[Qemu-devel] [PULL for-4.1 8/9] Normalize header guard symbol definition.
In reply to Markus ArmbrusterWe commonly define the header guard symbol without an explicit value. Normalize the exceptions.
Done with scripts/clean-header-guards.pl.
Message-Id: <[email protected]>
--- hw/timer/m48t59-internal.h | 3 ++- include/disas/capstone.h | 2 +- include/hw/scsi/emulation.h | 2 +- include/qemu/stats64.h | 2 +- include/qemu/sys_membarrier.h | 2 +- include/qemu/systemd.h | 2 +- include/scsi/utils.h | 2 +- include/ui/kbd-state.h | 3 ++- scsi/pr-helper.h | 3 ++- target/i386/hvf/x86.h | 2 +- target/i386/hvf/x86_decode.h | 2 +- target/i386/hvf/x86_descr.h | 2 +- 12 files changed, 15 insertions(+), 12 deletions(-)
hw/timer/m48t59-internal.h +2 -1
@@ -22,8 +22,9 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#ifndef HW_M48T59_INTERNAL_H -#define HW_M48T59_INTERNAL_H 1 +#define HW_M48T59_INTERNAL_H #define M48T59_DEBUG 0
include/disas/capstone.h +1 -1
@@ -1,5 +1,5 @@#ifndef QEMU_CAPSTONE_H -#define QEMU_CAPSTONE_H 1 +#define QEMU_CAPSTONE_H #ifdef CONFIG_CAPSTONE
include/hw/scsi/emulation.h +1 -1
@@ -1,5 +1,5 @@ #ifndef HW_SCSI_EMULATION_H -#define HW_SCSI_EMULATION_H 1 +#define HW_SCSI_EMULATION_H typedef struct SCSIBlockLimits { bool wsnz;
include/qemu/stats64.h +1 -1
@@ -10,7 +10,7 @@*/ #ifndef QEMU_STATS64_H -#define QEMU_STATS64_H 1 +#define QEMU_STATS64_H #include "qemu/atomic.h"
include/qemu/sys_membarrier.h +1 -1
@@ -7,7 +7,7 @@*/ #ifndef QEMU_SYS_MEMBARRIER_H -#define QEMU_SYS_MEMBARRIER_H 1 +#define QEMU_SYS_MEMBARRIER_H #ifdef CONFIG_MEMBARRIER /* Only block reordering at the compiler level in the performance-critical
include/qemu/systemd.h +1 -1
@@ -11,7 +11,7 @@*/ #ifndef QEMU_SYSTEMD_H -#define QEMU_SYSTEMD_H 1 +#define QEMU_SYSTEMD_H #define FIRST_SOCKET_ACTIVATION_FD 3/* defined by systemd ABI */
include/scsi/utils.h +1 -1
@@ -1,5 +1,5 @@#ifndef SCSI_UTILS_H -#define SCSI_UTILS_H 1 +#define SCSI_UTILS_H #ifdef CONFIG_LINUX #include <scsi/sg.h>
include/ui/kbd-state.h +2 -1
@@ -3,8 +3,9 @@* (at your option) any later version. See the COPYING file in the * top-level directory. */ +#ifndef QEMU_UI_KBD_STATE_H -#define QEMU_UI_KBD_STATE_H 1 +#define QEMU_UI_KBD_STATE_H #include "qapi/qapi-types-ui.h"
scsi/pr-helper.h +2 -1
@@ -23,8 +23,9 @@* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. */ +#ifndef QEMU_PR_HELPER_H -#define QEMU_PR_HELPER_H 1 +#define QEMU_PR_HELPER_H #define PR_HELPER_CDB_SIZE 16#define PR_HELPER_SENSE_SIZE 96
target/i386/hvf/x86.h +1 -1
@@ -17,7 +17,7 @@*/ #ifndef HVF_X86_H -#define HVF_X86_H 1 +#define HVF_X86_H typedef struct x86_register { union {
target/i386/hvf/x86_decode.h +1 -1
@@ -16,7 +16,7 @@*/ #ifndef HVF_X86_DECODE_H -#define HVF_X86_DECODE_H 1 +#define HVF_X86_DECODE_H #include "cpu.h" #include "x86.h"
target/i386/hvf/x86_descr.h +1 -1
@@ -17,7 +17,7 @@*/ #ifndef HVF_X86_DESCR_H -#define HVF_X86_DESCR_H 1 +#define HVF_X86_DESCR_H #include "x86.h"
Signature · 1 line
2.17.2
[Qemu-devel] [PULL for-4.1 6/9] Clean up header guards that don't match their file name
In reply to Markus ArmbrusterHeader guard symbols should match their file name to make guard collisions less likely.
Cleaned up with scripts/clean-header-guards.pl, followed by some renaming of new guard symbols picked by the script to better ones.
Message-Id: <[email protected]>
--- contrib/elf2dmp/qemu_elf.h | 6 +++--- disas/nanomips.h | 4 ++-- fsdev/qemu-fsdev-throttle.h | 7 ++++--- hw/arm/smmuv3-internal.h | 4 ++-- hw/display/vga_regs.h | 6 +++--- hw/rdma/vmw/pvrdma_qp_ops.h | 4 ++-- hw/sd/sdmmc-internal.h | 5 +++-- include/authz/listfile.h | 8 +++----- include/authz/pamacct.h | 7 +++---- include/hw/audio/soundhw.h | 4 ++-- include/hw/i386/x86-iommu.h | 4 ++-- include/hw/intc/heathrow_pic.h | 6 +++--- include/hw/intc/xlnx-pmu-iomod-intc.h | 6 +++--- include/hw/misc/armsse-mhu.h | 4 ++-- include/hw/pci-host/sabre.h | 4 ++-- include/hw/watchdog/wdt_aspeed.h | 7 ++++--- include/hw/xen/xen-legacy-backend.h | 6 +++--- include/hw/xtensa/xtensa-isa.h | 6 +++--- include/migration/qemu-file-types.h | 4 ++-- include/qemu/filemonitor.h | 6 +++--- include/scsi/constants.h | 4 ++-- net/colo.h | 6 +++--- target/i386/hax-posix.h | 6 +++--- target/i386/hvf/x86_task.h | 6 ++++-- target/nios2/cpu.h | 7 ++++--- target/nios2/mmu.h | 7 ++++--- target/ppc/mmu-book3s-v3.h | 6 +++--- tests/libqos/qgraph_internal.h | 4 ++-- tests/migration/migration-test.h | 7 ++++--- 29 files changed, 83 insertions(+), 78 deletions(-)
contrib/elf2dmp/qemu_elf.h +3 -3
@@ -5,8 +5,8 @@* */ -#ifndef ELF2DMP_ELF_H -#define ELF2DMP_ELF_H +#ifndef EMPF2DMP_QEMU_ELF_H +#define EMPF2DMP_QEMU_ELF_H #include "elf.h"
@@ -47,4 +47,4 @@ void QEMU_Elf_exit(QEMU_Elf *qe);Elf64_Phdr *elf64_getphdr (void *map);Elf64_Half elf_getphdrnum (void *map); -#endif /* ELF2DMP_ELF_H */ +#endif /* ELF2DMP_QEMU_ELF_H */
disas/nanomips.h +2 -2
@@ -20,8 +20,8 @@* */ -#ifndef NANOMIPS_DISASSEMBLER_H -#define NANOMIPS_DISASSEMBLER_H +#ifndef DISAS_NANOMIPS_H +#define DISAS_NANOMIPS_H #include <string>
fsdev/qemu-fsdev-throttle.h +4 -3
@@ -12,8 +12,8 @@* */ -#ifndef _FSDEV_THROTTLE_H -#define _FSDEV_THROTTLE_H +#ifndef QEMU_FSDEV_THROTTLE_H +#define QEMU_FSDEV_THROTTLE_H #include "block/aio.h" #include "qemu/main-loop.h"
@@ -35,4 +35,5 @@ void coroutine_fn fsdev_co_throttle_request(FsThrottle *, bool , struct iovec *, int);void fsdev_throttle_cleanup (FsThrottle *); -#endif /* _FSDEV_THROTTLE_H */ + +#endif /* QEMU_FSDEV_THROTTLE_H */
hw/arm/smmuv3-internal.h +2 -2
@@ -18,8 +18,8 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ -#ifndef HW_ARM_SMMU_V3_INTERNAL_H -#define HW_ARM_SMMU_V3_INTERNAL_H +#ifndef HW_ARM_SMMUV3_INTERNAL_H +#define HW_ARM_SMMUV3_INTERNAL_H #include "hw/arm/smmu-common.h"
hw/display/vga_regs.h +3 -3
@@ -14,8 +14,8 @@* */ -#ifndef LINUX_VIDEO_VGA_H -#define LINUX_VIDEO_VGA_H +#ifndef HW_VGA_REGS_H +#define HW_VGA_REGS_H /* Some of the code below is taken from SVGAlib. The original, unmodified copyright notice for that code is below. */
@@ -156,4 +156,4 @@/* VGA graphics controller bit masks */ #define VGA_GR06_GRAPHICS_MODE 0x01 -#endif /* LINUX_VIDEO_VGA_H */ +#endif /* HW_VGA_REGS_H */
hw/rdma/vmw/pvrdma_qp_ops.h +2 -2
@@ -13,8 +13,8 @@* */ -#ifndef PVRDMA_QP_H -#define PVRDMA_QP_H +#ifndef PVRDMA_QP_OPS_H +#define PVRDMA_QP_OPS_H #include "pvrdma.h"
hw/sd/sdmmc-internal.h +3 -2
@@ -7,8 +7,9 @@* See the COPYING file in the top-level directory. * SPDX-License-Identifier: GPL-2.0-or-later */ -#ifndef SD_INTERNAL_H -#define SD_INTERNAL_H + +#ifndef SDMMC_INTERNAL_H +#define SDMMC_INTERNAL_H #define SDMMC_CMD_MAX 64
include/authz/listfile.h +3 -5
@@ -18,8 +18,8 @@* */ -#ifndef QAUTHZ_LIST_FILE_H__ -#define QAUTHZ_LIST_FILE_H__ +#ifndef QAUTHZ_LISTFILE_H +#define QAUTHZ_LISTFILE_H #include "authz/list.h" #include "qapi/qapi-types-authz.h"
@@ -106,6 +106,4 @@ QAuthZListFile *qauthz_list_file_new(const char *id,bool refresh, Error **errp); - -#endif /* QAUTHZ_LIST_FILE_H__ */ - +#endif /* QAUTHZ_LISTFILE_H */
include/authz/pamacct.h +3 -4
@@ -18,8 +18,8 @@* */ -#ifndef QAUTHZ_PAM_H__ -#define QAUTHZ_PAM_H__ +#ifndef QAUTHZ_PAMACCT_H +#define QAUTHZ_PAMACCT_H #include "authz/base.h"
@@ -96,5 +96,4 @@ QAuthZPAM *qauthz_pam_new(const char *id,const char *service, Error **errp); - -#endif /* QAUTHZ_PAM_H__ */ +#endif /* QAUTHZ_PAMACCT_H */
include/hw/audio/soundhw.h +2 -2
@@ -1,5 +1,5 @@ -#ifndef HW_AUDIO_H -#define HW_AUDIO_H +#ifndef HW_SOUNDHW_H +#define HW_SOUNDHW_H void isa_register_soundhw (const char *name,const char *descr,int (*init_isa)(ISABus *bus));
include/hw/i386/x86-iommu.h +2 -2
@@ -17,8 +17,8 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ -#ifndef IOMMU_COMMON_H -#define IOMMU_COMMON_H +#ifndef HW_I386_X86_IOMMU_H +#define HW_I386_X86_IOMMU_H #include "hw/sysbus.h" #include "hw/pci/pci.h"
include/hw/intc/heathrow_pic.h +3 -3
@@ -23,8 +23,8 @@* THE SOFTWARE. */ -#ifndef HEATHROW_H -#define HEATHROW_H +#ifndef HW_INTC_HEATHROW_PIC_H +#define HW_INTC_HEATHROW_PIC_H #define TYPE_HEATHROW "heathrow"#define HEATHROW (obj) OBJECT_CHECK(HeathrowState, (obj), TYPE_HEATHROW)
@@ -46,4 +46,4 @@ typedef struct HeathrowState {#define HEATHROW_NUM_IRQS 64 -#endif /* HEATHROW_H */ +#endif /* HW_INTC_HEATHROW_PIC_H */
include/hw/intc/xlnx-pmu-iomod-intc.h +3 -3
@@ -22,8 +22,8 @@* THE SOFTWARE. */ -#ifndef XLNX_PMU_IO_INTC_H -#define XLNX_PMU_IO_INTC_H +#ifndef HW_INTC_XLNX_PMU_IOMOD_INTC_H +#define HW_INTC_XLNX_PMU_IOMOD_INTC_H #include "hw/sysbus.h" #include "hw/register.h"
@@ -54,4 +54,4 @@ typedef struct XlnxPMUIOIntc { RegisterInfo regs_info[XLNXPMUIOINTC_R_MAX]; } XlnxPMUIOIntc; -#endif /* XLNX_PMU_IO_INTC_H */ +#endif /* HW_INTC_XLNX_PMU_IOMOD_INTC_H */
include/hw/misc/armsse-mhu.h +2 -2
@@ -20,8 +20,8 @@* + sysbus IRQ 1: interrupt for CPU 1 */ -#ifndef HW_MISC_SSE_MHU_H -#define HW_MISC_SSE_MHU_H +#ifndef HW_MISC_ARMSSE_MHU_H +#define HW_MISC_ARMSSE_MHU_H #include "hw/sysbus.h"
include/hw/pci-host/sabre.h +2 -2
@@ -1,5 +1,5 @@ -#ifndef PCI_HOST_APB_H -#define PCI_HOST_APB_H +#ifndef HW_PCI_HOST_SABRE_H +#define HW_PCI_HOST_SABRE_H #include "hw/sparc/sun4u_iommu.h"
include/hw/watchdog/wdt_aspeed.h +4 -3
@@ -6,8 +6,9 @@* This code is licensed under the GPL version 2 or later. See the * COPYING file in the top-level directory. */ -#ifndef ASPEED_WDT_H -#define ASPEED_WDT_H + +#ifndef WDT_ASPEED_H +#define WDT_ASPEED_H #include "hw/sysbus.h"
@@ -31,4 +32,4 @@ typedef struct AspeedWDTState { uint32_t ext_pulse_width_mask; } AspeedWDTState; -#endif /* ASPEED_WDT_H */ +#endif /* WDT_ASPEED_H */
include/hw/xen/xen-legacy-backend.h +3 -3
@@ -1,5 +1,5 @@ -#ifndef QEMU_HW_XEN_BACKEND_H -#define QEMU_HW_XEN_BACKEND_H +#ifndef HW_XEN_LEGACY_BACKEND_H +#define HW_XEN_LEGACY_BACKEND_H #include "hw/xen/xen_common.h" #include "hw/xen/xen_pvdev.h"
@@ -101,4 +101,4 @@ int xen_config_dev_vfb(int vdev, const char *type);int xen_config_dev_vkbd (int vdev);int xen_config_dev_console (int vdev); -#endif /* QEMU_HW_XEN_BACKEND_H */ +#endif /* HW_XEN_LEGACY_BACKEND_H */
include/hw/xtensa/xtensa-isa.h +3 -3
@@ -22,8 +22,8 @@* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef XTENSA_LIBISA_H -#define XTENSA_LIBISA_H +#ifndef HW_XTENSA_XTENSA_ISA_H +#define HW_XTENSA_XTENSA_ISA_H #ifdef __cplusplus extern "C" {
@@ -833,4 +833,4 @@ int xtensa_funcUnit_num_copies(xtensa_isa isa, xtensa_funcUnit fun);#ifdef __cplusplus }#endif -#endif /* XTENSA_LIBISA_H */ +#endif /* HW_XTENSA_XTENSA_ISA_H */
include/migration/qemu-file-types.h +2 -2
@@ -22,8 +22,8 @@* THE SOFTWARE. */ -#ifndef QEMU_FILE_H -#define QEMU_FILE_H +#ifndef MIGRATION_QEMU_FILE_TYPES_H +#define MIGRATION_QEMU_FILE_TYPES_H int qemu_file_get_error (QEMUFile *f);
include/qemu/filemonitor.h +3 -3
@@ -18,8 +18,8 @@* */ -#ifndef QEMU_FILE_MONITOR_H -#define QEMU_FILE_MONITOR_H +#ifndef QEMU_FILEMONITOR_H +#define QEMU_FILEMONITOR_H #include "qemu-common.h"
@@ -125,4 +125,4 @@ void qemu_file_monitor_remove_watch(QFileMonitor *mon,const char *dirpath, int64_t id); -#endif /* QEMU_FILE_MONITOR_H */ +#endif /* QEMU_FILEMONITOR_H */
include/scsi/constants.h +2 -2
@@ -20,8 +20,8 @@* the scsi code for linux. */ -#ifndef BLOCK_SCSI_H -#define BLOCK_SCSI_H +#ifndef SCSI_CONSTANTS_H +#define SCSI_CONSTANTS_H /* * SCSI opcodes
net/colo.h +3 -3
@@ -12,8 +12,8 @@* later. See the COPYING file in the top-level directory. */ -#ifndef QEMU_COLO_PROXY_H -#define QEMU_COLO_PROXY_H +#ifndef NET_COLO_H +#define NET_COLO_H #include "qemu/jhash.h" #include "qemu/timer.h"
@@ -103,4 +103,4 @@ void connection_hashtable_reset(GHashTable *connection_track_table);Packet *packet_new (const void *data,int size,int vnet_hdr_len);void packet_destroy (void *opaque,void *user_data); -#endif /* QEMU_COLO_PROXY_H */ +#endif /* NET_COLO_H */
target/i386/hax-posix.h +3 -3
@@ -12,8 +12,8 @@* */ -#ifndef TARGET_I386_HAX_DARWIN_H -#define TARGET_I386_HAX_DARWIN_H +#ifndef TARGET_I386_HAX_POSIX_H +#define TARGET_I386_HAX_POSIX_H #include <sys/ioctl.h>
@@ -58,4 +58,4 @@ static inline void hax_close_fd(hax_fd fd)#define HAX_VCPU_SET_REGS _IOWR(0, 0xc7, struct vcpu_state_t)#define HAX_VCPU_GET_REGS _IOWR(0, 0xc8, struct vcpu_state_t) -#endif /* TARGET_I386_HAX_DARWIN_H */ +#endif /* TARGET_I386_HAX_POSIX_H */
target/i386/hvf/x86_task.h +4 -2
@@ -11,8 +11,10 @@* You should have received a copy of the GNU General Public License along * with this program; if not, see <http://www.gnu.org/licenses/>. */ -#ifndef HVF_TASK -#define HVF_TASK + +#ifndef HVF_X86_TASK_H +#define HVF_X86_TASK_H +void vmx_handle_task_switch (CPUState *cpu,x68_segment_selector tss_sel,int reason,bool gate_valid,uint8_t gate,uint64_t gate_type);#endif
target/nios2/cpu.h +4 -3
@@ -17,8 +17,9 @@* License along with this library; if not, see * <http://www.gnu.org/licenses/lgpl-2.1.html> */ -#ifndef CPU_NIOS2_H -#define CPU_NIOS2_H + +#ifndef NIOS2_CPU_H +#define NIOS2_CPU_H #include "qemu-common.h"
@@ -269,4 +270,4 @@ static inline void cpu_get_tb_cpu_state(CPUNios2State *env, target_ulong *pc, *flags = (env->regs[CR_STATUS] & (CR_STATUS_EH | CR_STATUS_U)); } -#endif /* CPU_NIOS2_H */ +#endif /* NIOS2_CPU_H */
target/nios2/mmu.h +4 -3
@@ -17,8 +17,9 @@* License along with this library; if not, see * <http://www.gnu.org/licenses/lgpl-2.1.html> */ -#ifndef MMU_NIOS2_H -#define MMU_NIOS2_H + +#ifndef NIOS2_MMU_H +#define NIOS2_MMU_H typedef struct Nios2TLBEntry { target_ulong tag;
@@ -47,4 +48,4 @@ void mmu_read_debug(CPUNios2State *env, uint32_t rn);void mmu_write (CPUNios2State *env,uint32_t rn,uint32_t v);void mmu_init (CPUNios2State *env); -#endif /* MMU_NIOS2_H */ +#endif /* NIOS2_MMU_H */
target/ppc/mmu-book3s-v3.h +3 -3
@@ -17,8 +17,8 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ -#ifndef MMU_BOOOK3S_V3_H -#define MMU_BOOOK3S_V3_H +#ifndef PPC_MMU_BOOK3S_V3_H +#define PPC_MMU_BOOK3S_V3_H #include "mmu-hash64.h"
@@ -118,4 +118,4 @@ static inline hwaddr ppc_hash64_hpt_mask(PowerPCCPU *cpu)#endif /* CONFIG_USER_ONLY */ -#endif /* MMU_BOOOK3S_V3_H */ +#endif /* PPC_MMU_BOOK3S_V3_H */
tests/libqos/qgraph_internal.h +2 -2
@@ -16,8 +16,8 @@* License along with this library; if not, see <http://www.gnu.org/licenses/> */ -#ifndef QGRAPH_EXTRA_H -#define QGRAPH_EXTRA_H +#ifndef QGRAPH_INTERNAL_H +#define QGRAPH_INTERNAL_H /* This header is declaring additional helper functions defined in * libqos/qgraph.c
tests/migration/migration-test.h +4 -3
@@ -4,8 +4,9 @@* This work is licensed under the terms of the GNU GPL, version 2 or later. * See the COPYING file in the top-level directory. */ -#ifndef _TEST_MIGRATION_H_ -#define _TEST_MIGRATION_H_ + +#ifndef MIGRATION_TEST_H +#define MIGRATION_TEST_H /* Common */ #define TEST_MEM_PAGE_SIZE 4096
@@ -31,4 +32,4 @@*/ #define ARM_TEST_MAX_KERNEL_SIZE (512 * 1024) -#endif /* _TEST_MIGRATION_H_ */ +#endif /* _MIGRATION_TEST_H */
Signature · 1 line
2.17.2
[Qemu-devel] [PULL for-4.1 7/9] Clean up ill-advised or unusual header guards
In reply to Markus ArmbrusterLeading underscores are ill-advised because such identifiers are reserved. Trailing underscores are merely ugly. Strip both.
Our header guards commonly end in _H. Normalize the exceptions.
Done with scripts/clean-header-guards.pl.
Message-Id: <[email protected]>
--- block/crypto.h | 6 +++--- hw/i386/amd_iommu.h | 4 ++-- hw/tpm/tpm_ioctl.h | 7 ++++--- hw/xtensa/xtensa_memory.h | 4 ++-- include/authz/base.h | 7 +++---- include/authz/list.h | 7 +++---- include/authz/simple.h | 7 +++---- include/chardev/spice.h | 4 ++-- include/hw/ppc/pnv.h | 7 ++++--- include/hw/ppc/pnv_core.h | 7 ++++--- include/hw/ppc/pnv_lpc.h | 7 ++++--- include/hw/ppc/pnv_occ.h | 7 ++++--- include/hw/ppc/pnv_psi.h | 7 ++++--- include/hw/ppc/pnv_xscom.h | 7 ++++--- include/hw/ppc/spapr_ovec.h | 7 ++++--- include/hw/timer/pl031.h | 4 ++-- include/hw/virtio/vhost-vsock.h | 6 +++--- include/hw/virtio/virtio-crypto.h | 6 +++--- include/hw/xen/start_info.h | 6 +++--- include/hw/xtensa/mx_pic.h | 4 ++-- include/qemu/drm.h | 4 ++-- include/qemu/jhash.h | 6 +++--- include/sysemu/hvf.h | 5 +++-- linux-user/xtensa/syscall_nr.h | 6 +++--- linux-user/xtensa/target_structs.h | 4 ++-- linux-user/xtensa/termbits.h | 6 +++--- qga/vss-win32/vss-handles.h | 4 ++-- target/i386/hax-i386.h | 4 ++-- target/i386/hax-interface.h | 4 ++-- target/i386/hvf/hvf-i386.h | 4 ++-- target/i386/hvf/vmcs.h | 4 ++-- target/i386/hvf/x86_emu.h | 5 +++-- target/i386/hvf/x86_flags.h | 7 ++++--- target/i386/hvf/x86_mmu.h | 7 ++++--- target/riscv/pmp.h | 4 ++-- target/sparc/asi.h | 6 +++--- tests/libqos/e1000e.h | 4 ++-- tests/libqos/sdhci.h | 4 ++-- 38 files changed, 109 insertions(+), 100 deletions(-)
block/crypto.h +3 -3
@@ -18,8 +18,8 @@* */ -#ifndef BLOCK_CRYPTO_H__ -#define BLOCK_CRYPTO_H__ +#ifndef BLOCK_CRYPTO_H +#define BLOCK_CRYPTO_H #define BLOCK_CRYPTO_OPT_DEF_KEY_SECRET (prefix, helpstr) \ { \
@@ -94,4 +94,4 @@ block_crypto_create_opts_init(QDict *opts, Error **errp);QCryptoBlockOpenOptions *block_crypto_open_opts_init (QDict *opts,Error **errp); -#endif /* BLOCK_CRYPTO_H__ */ +#endif /* BLOCK_CRYPTO_H */
hw/i386/amd_iommu.h +2 -2
@@ -18,8 +18,8 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ -#ifndef AMD_IOMMU_H_ -#define AMD_IOMMU_H_ +#ifndef AMD_IOMMU_H +#define AMD_IOMMU_H #include "hw/hw.h" #include "hw/pci/pci.h"
hw/tpm/tpm_ioctl.h +4 -3
@@ -5,8 +5,9 @@* * This file is licensed under the terms of the 3-clause BSD license */ -#ifndef _TPM_IOCTL_H_ -#define _TPM_IOCTL_H_ + +#ifndef TPM_IOCTL_H +#define TPM_IOCTL_H #include <sys/uio.h> #include <sys/ioctl.h>
@@ -267,4 +268,4 @@ enum { CMD_SET_BUFFERSIZE, }; -#endif /* _TPM_IOCTL_H */ +#endif /* TPM_IOCTL_H */
hw/xtensa/xtensa_memory.h +2 -2
@@ -25,8 +25,8 @@* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef _XTENSA_MEMORY_H -#define _XTENSA_MEMORY_H +#ifndef XTENSA_MEMORY_H +#define XTENSA_MEMORY_H #include "qemu-common.h" #include "cpu.h"
include/authz/base.h +3 -4
@@ -18,8 +18,8 @@* */ -#ifndef QAUTHZ_BASE_H__ -#define QAUTHZ_BASE_H__ +#ifndef QAUTHZ_BASE_H +#define QAUTHZ_BASE_H #include "qemu-common.h" #include "qapi/error.h"
@@ -108,5 +108,4 @@ bool qauthz_is_allowed_by_id(const char *authzid,const char *identity, Error **errp); -#endif /* QAUTHZ_BASE_H__ */ - +#endif /* QAUTHZ_BASE_H */
include/authz/list.h +3 -4
@@ -18,8 +18,8 @@* */ -#ifndef QAUTHZ_LIST_H__ -#define QAUTHZ_LIST_H__ +#ifndef QAUTHZ_LIST_H +#define QAUTHZ_LIST_H #include "authz/base.h" #include "qapi/qapi-types-authz.h"
@@ -102,5 +102,4 @@ ssize_t qauthz_list_delete_rule(QAuthZList *auth, const char *match); -#endif /* QAUTHZ_LIST_H__ */ - +#endif /* QAUTHZ_LIST_H */
include/authz/simple.h +3 -4
@@ -18,8 +18,8 @@* */ -#ifndef QAUTHZ_SIMPLE_H__ -#define QAUTHZ_SIMPLE_H__ +#ifndef QAUTHZ_SIMPLE_H +#define QAUTHZ_SIMPLE_H #include "authz/base.h"
@@ -80,5 +80,4 @@ QAuthZSimple *qauthz_simple_new(const char *id, Error **errp); -#endif /* QAUTHZ_SIMPLE_H__ */ - +#endif /* QAUTHZ_SIMPLE_H */
include/chardev/spice.h +2 -2
@@ -1,5 +1,5 @@ -#ifndef CHARDEV_SPICE_H_ -#define CHARDEV_SPICE_H_ +#ifndef CHARDEV_SPICE_H +#define CHARDEV_SPICE_H #include <spice.h> #include "chardev/char-fe.h"
include/hw/ppc/pnv.h +4 -3
@@ -16,8 +16,9 @@* You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/>. */ -#ifndef _PPC_PNV_H -#define _PPC_PNV_H + +#ifndef PPC_PNV_H +#define PPC_PNV_H #include "hw/boards.h" #include "hw/sysbus.h"
@@ -255,4 +256,4 @@ void pnv_bmc_powerdown(IPMIBmc *bmc);#define PNV9_PSIHB_ESB_SIZE 0x0000000000010000ull#define PNV9_PSIHB_ESB_BASE (chip) PNV9_CHIP_BASE(chip, 0x00060302031c0000ull) -#endif /* _PPC_PNV_H */ +#endif /* PPC_PNV_H */
include/hw/ppc/pnv_core.h +4 -3
@@ -16,8 +16,9 @@* You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/>. */ -#ifndef _PPC_PNV_CORE_H -#define _PPC_PNV_CORE_H + +#ifndef PPC_PNV_CORE_H +#define PPC_PNV_CORE_H #include "hw/cpu/core.h"
@@ -68,4 +69,4 @@ typedef struct PnvQuad {uint32_t id; MemoryRegion xscom_regs; } PnvQuad; -#endif /* _PPC_PNV_CORE_H */ +#endif /* PPC_PNV_CORE_H */
include/hw/ppc/pnv_lpc.h +4 -3
@@ -16,8 +16,9 @@* You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/>. */ -#ifndef _PPC_PNV_LPC_H -#define _PPC_PNV_LPC_H + +#ifndef PPC_PNV_LPC_H +#define PPC_PNV_LPC_H #include "hw/ppc/pnv_psi.h"
@@ -98,4 +99,4 @@ struct PnvChip;ISABus *pnv_lpc_isa_create (PnvLpcController *lpc,bool use_cpld,Error **errp);int pnv_dt_lpc (struct PnvChip *chip,void *fdt,int root_offset); -#endif /* _PPC_PNV_LPC_H */ +#endif /* PPC_PNV_LPC_H */
include/hw/ppc/pnv_occ.h +4 -3
@@ -16,8 +16,9 @@* You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/>. */ -#ifndef _PPC_PNV_OCC_H -#define _PPC_PNV_OCC_H + +#ifndef PPC_PNV_OCC_H +#define PPC_PNV_OCC_H #include "hw/ppc/pnv_psi.h"
@@ -52,4 +53,4 @@ typedef struct PnvOCCClass { int psi_irq; } PnvOCCClass; -#endif /* _PPC_PNV_OCC_H */ +#endif /* PPC_PNV_OCC_H */
include/hw/ppc/pnv_psi.h +4 -3
@@ -16,8 +16,9 @@* You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/>. */ -#ifndef _PPC_PNV_PSI_H -#define _PPC_PNV_PSI_H + +#ifndef PPC_PNV_PSI_H +#define PPC_PNV_PSI_H #include "hw/sysbus.h" #include "hw/ppc/xics.h"
@@ -118,4 +119,4 @@ void pnv_psi_irq_set(PnvPsi *psi, int irq, bool state);void pnv_psi_pic_print_info (Pnv9Psi *psi,Monitor *mon); -#endif /* _PPC_PNV_PSI_H */ +#endif /* PPC_PNV_PSI_H */
include/hw/ppc/pnv_xscom.h +4 -3
@@ -16,8 +16,9 @@* You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/>. */ -#ifndef _PPC_PNV_XSCOM_H -#define _PPC_PNV_XSCOM_H + +#ifndef PPC_PNV_XSCOM_H +#define PPC_PNV_XSCOM_H #include "qom/object.h"
@@ -98,4 +99,4 @@ extern void pnv_xscom_region_init(MemoryRegion *mr,const char *name, uint64_t size); -#endif /* _PPC_PNV_XSCOM_H */ +#endif /* PPC_PNV_XSCOM_H */
include/hw/ppc/spapr_ovec.h +4 -3
@@ -33,8 +33,9 @@* This work is licensed under the terms of the GNU GPL, version 2 or later. * See the COPYING file in the top-level directory. */ -#ifndef _SPAPR_OVEC_H -#define _SPAPR_OVEC_H + +#ifndef SPAPR_OVEC_H +#define SPAPR_OVEC_H #include "cpu.h" #include "migration/vmstate.h"
@@ -80,4 +81,4 @@ int spapr_ovec_populate_dt(void *fdt, int fdt_offset,/* migration */ extern const VMStateDescription vmstate_spapr_ovec; -#endif /* !defined (_SPAPR_OVEC_H) */ +#endif /* SPAPR_OVEC_H */
include/hw/timer/pl031.h +2 -2
@@ -11,8 +11,8 @@* GNU GPL, version 2 or (at your option) any later version. */ -#ifndef HW_TIMER_PL031 -#define HW_TIMER_PL031 +#ifndef HW_TIMER_PL031_H +#define HW_TIMER_PL031_H #include "hw/sysbus.h"
include/hw/virtio/vhost-vsock.h +3 -3
@@ -11,8 +11,8 @@* top-level directory. */ -#ifndef _QEMU_VHOST_VSOCK_H -#define _QEMU_VHOST_VSOCK_H +#ifndef QEMU_VHOST_VSOCK_H +#define QEMU_VHOST_VSOCK_H #include "hw/virtio/virtio.h" #include "hw/virtio/vhost.h"
@@ -38,4 +38,4 @@ typedef struct { /*< public >*/ } VHostVSock; -#endif /* _QEMU_VHOST_VSOCK_H */ +#endif /* QEMU_VHOST_VSOCK_H */
include/hw/virtio/virtio-crypto.h +3 -3
@@ -11,8 +11,8 @@* top-level directory. */ -#ifndef _QEMU_VIRTIO_CRYPTO_H -#define _QEMU_VIRTIO_CRYPTO_H +#ifndef QEMU_VIRTIO_CRYPTO_H +#define QEMU_VIRTIO_CRYPTO_H #include "standard-headers/linux/virtio_crypto.h" #include "hw/virtio/virtio.h"
@@ -99,4 +99,4 @@ typedef struct VirtIOCrypto { uint8_t vhost_started; } VirtIOCrypto; -#endif /* _QEMU_VIRTIO_CRYPTO_H */ +#endif /* QEMU_VIRTIO_CRYPTO_H */
include/hw/xen/start_info.h +3 -3
@@ -20,8 +20,8 @@* Copyright (c) 2016, Citrix Systems, Inc. */ -#ifndef __XEN_PUBLIC_ARCH_X86_HVM_START_INFO_H__ -#define __XEN_PUBLIC_ARCH_X86_HVM_START_INFO_H__ +#ifndef XEN_PUBLIC_ARCH_X86_HVM_START_INFO_H +#define XEN_PUBLIC_ARCH_X86_HVM_START_INFO_H /* * Start of day structure passed to PVH guests and to HVM guests in %ebx.
@@ -143,4 +143,4 @@ struct hvm_memmap_table_entry { uint32_t reserved; }; -#endif /* __XEN_PUBLIC_ARCH_X86_HVM_START_INFO_H__ */ +#endif /* XEN_PUBLIC_ARCH_X86_HVM_START_INFO_H */
include/hw/xtensa/mx_pic.h +2 -2
@@ -25,8 +25,8 @@* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef _XTENSA_MX_PIC_H -#define _XTENSA_MX_PIC_H +#ifndef XTENSA_MX_PIC_H +#define XTENSA_MX_PIC_H #include "exec/memory.h" #include "hw/irq.h"
include/qemu/drm.h +2 -2
@@ -1,5 +1,5 @@ -#ifndef QEMU_DRM_H_ -#define QEMU_DRM_H_ +#ifndef QEMU_DRM_H +#define QEMU_DRM_H int qemu_drm_rendernode_open (const char *rendernode);
include/qemu/jhash.h +3 -3
@@ -21,8 +21,8 @@* Jozsef */ -#ifndef QEMU_JHASH_H__ -#define QEMU_JHASH_H__ +#ifndef QEMU_JHASH_H +#define QEMU_JHASH_H #include "qemu/bitops.h"
@@ -56,4 +56,4 @@/* An arbitrary initial parameter */ #define JHASH_INITVAL 0xdeadbeef -#endif /* QEMU_JHASH_H__ */ +#endif /* QEMU_JHASH_H */
include/sysemu/hvf.h +3 -2
@@ -9,8 +9,9 @@*/ /* header to be included in non-HVF-specific code */ -#ifndef _HVF_H -#define _HVF_H + +#ifndef HVF_H +#define HVF_H #include "qemu-common.h" #include "qemu/bitops.h"
linux-user/xtensa/syscall_nr.h +3 -3
@@ -8,8 +8,8 @@* Copyright (C) 2001 - 2009 Tensilica Inc. */ -#ifndef _XTENSA_UNISTD_H -#define _XTENSA_UNISTD_H +#ifndef XTENSA_SYSCALL_NR_H +#define XTENSA_SYSCALL_NR_H #define TARGET_NR_spill 0#define TARGET_NR_xtensa 1
@@ -434,4 +434,4 @@#define TARGET_NR_syscall_count 352 -#endif /* _XTENSA_UNISTD_H */ +#endif /* XTENSA_SYSCALL_NR_H */
linux-user/xtensa/target_structs.h +2 -2
@@ -1,5 +1,5 @@ -#ifndef XTENSA_TARGET_STRUCTS_T -#define XTENSA_TARGET_STRUCTS_T +#ifndef XTENSA_TARGET_STRUCTS_H +#define XTENSA_TARGET_STRUCTS_H struct target_ipc_perm { abi_int __key; /* Key. */
linux-user/xtensa/termbits.h +3 -3
@@ -10,8 +10,8 @@* Copyright (C) 2001 - 2005 Tensilica Inc. */ -#ifndef _XTENSA_TERMBITS_H -#define _XTENSA_TERMBITS_H +#ifndef XTENSA_TERMBITS_H +#define XTENSA_TERMBITS_H #include <linux/posix_types.h>
@@ -325,4 +325,4 @@ struct target_ktermios {#define TARGET_TIOCMIWAIT _IO('T', 92)/* wait for a change on serial input line(s) */ #define TARGET_TIOCGICOUNT 0x545D/* read serial port inline interrupt counts */ -#endif /* _XTENSA_TERMBITS_H */ +#endif /* XTENSA_TERMBITS_H */
qga/vss-win32/vss-handles.h +2 -2
@@ -1,5 +1,5 @@ -#ifndef VSS_HANDLES -#define VSS_HANDLES +#ifndef VSS_HANDLES_H +#define VSS_HANDLES_H /* Constants for QGA VSS Provider */
target/i386/hax-i386.h +2 -2
@@ -10,8 +10,8 @@* */ -#ifndef _HAX_I386_H -#define _HAX_I386_H +#ifndef HAX_I386_H +#define HAX_I386_H #include "cpu.h" #include "sysemu/hax.h"
target/i386/hax-interface.h +2 -2
@@ -14,8 +14,8 @@/* Interface with HAX kernel module */ -#ifndef _HAX_INTERFACE_H -#define _HAX_INTERFACE_H +#ifndef HAX_INTERFACE_H +#define HAX_INTERFACE_H /* fx_layout has 3 formats table 3-56, 512bytes */ struct fx_layout {
target/i386/hvf/hvf-i386.h +2 -2
@@ -13,8 +13,8 @@* */ -#ifndef _HVF_I386_H -#define _HVF_I386_H +#ifndef HVF_I386_H +#define HVF_I386_H #include "sysemu/hvf.h" #include "cpu.h"
target/i386/hvf/vmcs.h +2 -2
@@ -26,8 +26,8 @@* $FreeBSD$ */ -#ifndef _VMCS_H_ -#define _VMCS_H_ +#ifndef VMCS_H +#define VMCS_H #include <Hypervisor/hv.h> #include <Hypervisor/hv_vmx.h>
target/i386/hvf/x86_emu.h +3 -2
@@ -15,8 +15,9 @@* You should have received a copy of the GNU Lesser General Public * License along with this program; if not, see <http://www.gnu.org/licenses/>. */ -#ifndef __X86_EMU_H__ -#define __X86_EMU_H__ + +#ifndef X86_EMU_H +#define X86_EMU_H #include "x86.h" #include "x86_decode.h"
target/i386/hvf/x86_flags.h +4 -3
@@ -20,8 +20,9 @@/* * x86 eflags functions */ -#ifndef __X86_FLAGS_H__ -#define __X86_FLAGS_H__ + +#ifndef X86_FLAGS_H +#define X86_FLAGS_H #include "cpu.h" void lflags_to_rflags (CPUX86State *env);
@@ -77,4 +78,4 @@ void SET_FLAGS_OSZAPC_LOGIC16(CPUX86State *env, uint16_t v1, uint16_t v2,void SET_FLAGS_OSZAPC_LOGIC8 (CPUX86State *env,uint8_t v1,uint8_t v2,uint8_t diff); -#endif /* __X86_FLAGS_H__ */ +#endif /* X86_FLAGS_H */
target/i386/hvf/x86_mmu.h +4 -3
@@ -15,8 +15,9 @@* You should have received a copy of the GNU Lesser General Public * License along with this program; if not, see <http://www.gnu.org/licenses/>. */ -#ifndef __X86_MMU_H__ -#define __X86_MMU_H__ + +#ifndef X86_MMU_H +#define X86_MMU_H #define PT_PRESENT (1 << 0)#define PT_WRITE (1 << 1)
@@ -40,4 +41,4 @@ bool mmu_gva_to_gpa(struct CPUState *cpu, target_ulong gva, uint64_t *gpa);void vmx_write_mem (struct CPUState *cpu,target_ulong gva,void *data,int bytes);void vmx_read_mem (struct CPUState *cpu,void *data,target_ulong gva,int bytes); -#endif /* __X86_MMU_H__ */ +#endif /* X86_MMU_H */
target/riscv/pmp.h +2 -2
@@ -19,8 +19,8 @@* this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef _RISCV_PMP_H_ -#define _RISCV_PMP_H_ +#ifndef RISCV_PMP_H +#define RISCV_PMP_H typedef enum { PMP_READ = 1 << 0,
target/sparc/asi.h +3 -3
@@ -1,5 +1,5 @@ -#ifndef _SPARC_ASI_H -#define _SPARC_ASI_H +#ifndef SPARC_ASI_H +#define SPARC_ASI_H /* asi.h: Address Space Identifier values for the sparc. *
@@ -309,4 +309,4 @@* implicit, little-endian */ -#endif /* _SPARC_ASI_H */ +#endif /* SPARC_ASI_H */
tests/libqos/e1000e.h +2 -2
@@ -16,8 +16,8 @@* License along with this library; if not, see <http://www.gnu.org/licenses/> */ -#ifndef QGRAPH_E1000E -#define QGRAPH_E1000E +#ifndef QGRAPH_E1000E_H +#define QGRAPH_E1000E_H #include "libqos/qgraph.h" #include "pci.h"
tests/libqos/sdhci.h +2 -2
@@ -16,8 +16,8 @@* License along with this library; if not, see <http://www.gnu.org/licenses/> */ -#ifndef QGRAPH_QSDHCI -#define QGRAPH_QSDHCI +#ifndef QGRAPH_QSDHCI_H +#define QGRAPH_QSDHCI_H #include "libqos/qgraph.h" #include "pci.h"
Signature · 1 line
2.17.2
Quoted 19 lines · Markus Armbruster
Early pull request because I'll be on vacation when 4.1 opens. Hope that's okay.
The following changes since commit
eeba63fc7fface36f438bcbc0d3b02e7dcb59983:Update version for v4.0.0-rc4 release (2019-04-16 21:53:00 +0100)
are available in the Git repository at:
git://repo.or.cz/qemu/armbru.gittags/pull-misc-2019-04-18for you to fetch changes up to
15136db27efaf0bdcf1131d41ad57832a2acadcc:Clean up decorations and whitespace around header guards (2019-04-17 19:20:46 +0200)
----------------------------------------------------------------
Miscellaneous patches for 2019-04-18
Quoted 11 lines
----------------------------------------------------------------
Markus Armbruster (9):
Clean up includes
Use #include "..." for our own headers, <...> for others
authz: Normalize #include "authz/trace.h" to "trace.h" linux-user/nios2 linux-user/riscv: Clean up header guards target/xtensa: Clean upcore-isa.hheader guards Clean up header guards that don't match their file name Clean up ill-advised or unusual header guards Normalize header guard symbol definition.
Clean up decorations and whitespace around header guards
Hi -- this fails 'make check' on ppc64 and s390, so likely a big-endian hosts issue:
make[1]: Leaving directory `/home/pm215/qemu/build/all/tests/fp' cd /home/pm215/qemu/build/all/tests/fp && ./fp-test -s -l 1 -r all i32_to_f16 i64_to_f16 i32_to_f32 i64_to_f32 i32_to_f64 i64_to_f64 i32_to_f128 i64_to_f128 > int-to-float.out 2>&1 || (cat int-to-float.out && exit 1;)
Quoted 1 line
Quoted 1 line
Testing
i32_to_f16, roundingnear_even
^M372 tests total.
^M372 tests performed.
In 372 tests, no errors found in i32_to_f16, rounding near_even. [...]
Quoted 1 line
Quoted 1 line
Testing
i32_to_f128
^M372 tests total.
^MErrors found in i32_to_f128:
1006FFFF => +0000.000000000000401B006FFFF00000 .....
expected +401B.006FFFF000000000000000000000 .....
^M0001DDEB => +0000.000000000000400FDDEB00000000 .....
expected +400F.DDEB000000000000000000000000 .....
^MFFF6FFFC => +0000.000000000000C012200080000000 .....
expected -4012.2000800000000000000000000000 .....
[...]
^M00000020 => +0000.0000000000004004000000000000 .....
expected +4004.0000000000000000000000000000 .....^M21 tests performed; 20 errors found.
make: *** [check-softfloat-conv] Error 1
thanks
-- PMM
Quoted 57 lines · Peter Maydell
Quoted 19 lines · Markus Armbruster
Early pull request because I'll be on vacation when 4.1 opens. Hope that's okay.
The following changes since commit
eeba63fc7fface36f438bcbc0d3b02e7dcb59983:Update version for v4.0.0-rc4 release (2019-04-16 21:53:00 +0100)
are available in the Git repository at:
git://repo.or.cz/qemu/armbru.gittags/pull-misc-2019-04-18for you to fetch changes up to
15136db27efaf0bdcf1131d41ad57832a2acadcc:Clean up decorations and whitespace around header guards (2019-04-17 19:20:46 +0200)
----------------------------------------------------------------
Miscellaneous patches for 2019-04-18Quoted 11 lines
----------------------------------------------------------------
Markus Armbruster (9):
Clean up includes
Use #include "..." for our own headers, <...> for others
authz: Normalize #include "authz/trace.h" to "trace.h" linux-user/nios2 linux-user/riscv: Clean up header guards target/xtensa: Clean upcore-isa.hheader guards Clean up header guards that don't match their file name Clean up ill-advised or unusual header guards Normalize header guard symbol definition.
Clean up decorations and whitespace around header guardsHi -- this fails 'make check' on ppc64 and s390, so likely a big-endian hosts issue:
make[1]: Leaving directory `/home/pm215/qemu/build/all/tests/fp' cd
/home/pm215/qemu/build/all/tests/fp&& ./fp-test -s -l 1 -r alli32_to_f16i64_to_f16i32_to_f32i64_to_f32i32_to_f64i64_to_f64i32_to_f128i64_to_f128> int-to-float.out 2>&1 || (cat int-to-float.out && exit 1;)Quoted 1 line
Quoted 1 line
Testing
i32_to_f16, roundingnear_even^M372 tests total.
^M372 tests performed.
In 372 tests, no errors found ini32_to_f16, roundingnear_even. [...]Quoted 1 line
Quoted 1 line
Testing
i32_to_f128^M372 tests total.
^MErrors found ini32_to_f128:
1006FFFF => +0000.000000000000401B006FFFF00000 .....expected +401B.006FFFF000000000000000000000 ..... ^M0001DDEB => +0000.000000000000400FDDEB00000000 ..... expected +400F.DDEB000000000000000000000000 ..... ^MFFF6FFFC => +0000.000000000000C012200080000000 ..... expected -4012.2000800000000000000000000000 ..... [...] ^M00000020 => +0000.0000000000004004000000000000 ..... expected +4004.0000000000000000000000000000 .....
Quoted 2 lines
^M21 tests performed; 20 errors found.
make: *** [check-softfloat-conv] Error 1
Awesome.
Luckily, Laurent included just PATCH 1/9 in his trivial pull request, and had it fail the same:
Message-ID: <CAFEAcA9-hAU5dxUmSWtbvrPEXE-nCP1uLvLbOby-_EXZ27o+8g@mail.gmail.com>
See there for additional clues.