qemu-commits
[Top][All Lists]
Advanced

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

[Qemu-commits] [qemu/qemu] 52581c: Clean up header guards that don't mat


From: Richard Henderson
Subject: [Qemu-commits] [qemu/qemu] 52581c: Clean up header guards that don't match their file...
Date: Wed, 11 May 2022 09:03:10 -0700

  Branch: refs/heads/staging
  Home:   https://github.com/qemu/qemu
  Commit: 52581c718c5cd55595ca032a56f1e194c5716456
      
https://github.com/qemu/qemu/commit/52581c718c5cd55595ca032a56f1e194c5716456
  Author: Markus Armbruster <armbru@redhat.com>
  Date:   2022-05-11 (Wed, 11 May 2022)

  Changed paths:
    M accel/tcg/tcg-accel-ops-icount.h
    M accel/tcg/tcg-accel-ops-mttcg.h
    M accel/tcg/tcg-accel-ops-rr.h
    M accel/tcg/tcg-accel-ops.h
    M block/coroutines.h
    M bsd-user/arm/target_syscall.h
    M bsd-user/i386/target.h
    M bsd-user/i386/target_arch_sysarch.h
    M bsd-user/x86_64/target_arch_sysarch.h
    M hw/i386/e820_memory_layout.h
    M hw/net/can/ctu_can_fd_frame.h
    M hw/net/can/ctu_can_fd_regs.h
    M hw/nvme/nvme.h
    M hw/usb/hcd-dwc2.h
    M include/block/block-hmp-cmds.h
    M include/crypto/tls-cipher-suites.h
    M include/hw/acpi/generic_event_device.h
    M include/hw/i2c/arm_sbcon_i2c.h
    M include/hw/misc/bcm2835_cprman.h
    M include/hw/misc/bcm2835_cprman_internals.h
    M include/hw/misc/stm32f4xx_exti.h
    M include/hw/misc/stm32f4xx_syscfg.h
    M include/hw/misc/xlnx-versal-pmc-iou-slcr.h
    M include/hw/net/mv88w8618_eth.h
    M include/hw/nubus/mac-nubus-bridge.h
    M include/hw/pci-host/remote.h
    M include/hw/riscv/boot_opensbi.h
    M include/hw/riscv/shakti_c.h
    M include/hw/rtc/sun4v-rtc.h
    M include/hw/rtc/xlnx-zynqmp-rtc.h
    M include/hw/rx/rx62n.h
    M include/hw/sensor/emc141x_regs.h
    M include/hw/ssi/xlnx-versal-ospi.h
    M include/hw/timer/bcm2835_systmr.h
    M include/hw/tricore/tricore_testdevice.h
    M include/hw/usb/dwc2-regs.h
    M include/hw/usb/hcd-musb.h
    M include/hw/usb/xlnx-usb-subsystem.h
    M include/hw/usb/xlnx-versal-usb2-ctrl-regs.h
    M include/hw/watchdog/wdt_imx2.h
    M include/qemu/help-texts.h
    M include/qemu/qemu-plugin.h
    M include/sysemu/block-backend-global-state.h
    M plugins/plugin.h
    M target/arm/translate-a32.h
    M target/arm/vec_internal.h
    M target/avr/cpu-qom.h
    M target/hexagon/hex_arch_types.h
    M target/hexagon/hex_regs.h
    M target/i386/hax/hax-accel-ops.h
    M target/i386/nvmm/nvmm-accel-ops.h
    M target/i386/sev.h
    M target/i386/whpx/whpx-accel-ops.h
    M target/i386/whpx/whpx-internal.h
    M target/xtensa/core-de233_fpu/core-isa.h
    M target/xtensa/core-dsp3400/core-isa.h
    M tests/qtest/fuzz/fuzz.h
    M tools/virtiofsd/passthrough_seccomp.h

  Log Message:
  -----------
  Clean up header guards that don't match their file name

Header 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.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20220506134911.2856099-2-armbru@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
[Change to generated file ebpf/rss.bpf.skeleton.h backed out]


  Commit: 9c0928045ce4b97fc59cb285b7a4b559d21e5da0
      
https://github.com/qemu/qemu/commit/9c0928045ce4b97fc59cb285b7a4b559d21e5da0
  Author: Markus Armbruster <armbru@redhat.com>
  Date:   2022-05-11 (Wed, 11 May 2022)

  Changed paths:
    M block/copy-on-read.h
    M bsd-user/arm/target_arch.h
    M bsd-user/arm/target_arch_cpu.h
    M bsd-user/arm/target_arch_elf.h
    M bsd-user/arm/target_arch_reg.h
    M bsd-user/arm/target_arch_signal.h
    M bsd-user/arm/target_arch_sigtramp.h
    M bsd-user/arm/target_arch_sysarch.h
    M bsd-user/arm/target_arch_thread.h
    M bsd-user/arm/target_arch_vmparam.h
    M bsd-user/bsd-file.h
    M bsd-user/errno_defs.h
    M bsd-user/freebsd/host-os.h
    M bsd-user/freebsd/target_os_elf.h
    M bsd-user/freebsd/target_os_siginfo.h
    M bsd-user/freebsd/target_os_signal.h
    M bsd-user/freebsd/target_os_stack.h
    M bsd-user/freebsd/target_os_thread.h
    M bsd-user/freebsd/target_os_user.h
    M bsd-user/freebsd/target_os_vmparam.h
    M bsd-user/i386/target_arch.h
    M bsd-user/i386/target_arch_cpu.h
    M bsd-user/i386/target_arch_elf.h
    M bsd-user/i386/target_arch_reg.h
    M bsd-user/i386/target_arch_sigtramp.h
    M bsd-user/i386/target_arch_thread.h
    M bsd-user/i386/target_arch_vmparam.h
    M bsd-user/netbsd/host-os.h
    M bsd-user/netbsd/target_os_elf.h
    M bsd-user/netbsd/target_os_siginfo.h
    M bsd-user/netbsd/target_os_signal.h
    M bsd-user/netbsd/target_os_stack.h
    M bsd-user/netbsd/target_os_thread.h
    M bsd-user/openbsd/host-os.h
    M bsd-user/openbsd/target_os_elf.h
    M bsd-user/openbsd/target_os_siginfo.h
    M bsd-user/openbsd/target_os_signal.h
    M bsd-user/openbsd/target_os_stack.h
    M bsd-user/openbsd/target_os_thread.h
    M bsd-user/syscall_defs.h
    M bsd-user/x86_64/target_arch.h
    M bsd-user/x86_64/target_arch_cpu.h
    M bsd-user/x86_64/target_arch_elf.h
    M bsd-user/x86_64/target_arch_reg.h
    M bsd-user/x86_64/target_arch_signal.h
    M bsd-user/x86_64/target_arch_sigtramp.h
    M bsd-user/x86_64/target_arch_thread.h
    M bsd-user/x86_64/target_arch_vmparam.h
    M crypto/ivgen-plain.h
    M include/chardev/char-socket.h
    M include/hw/i2c/i2c_mux_pca954x.h
    M include/hw/input/lm832x.h
    M include/hw/intc/exynos4210_combiner.h
    M include/hw/intc/nios2_vic.h
    M include/hw/ppc/pnv_pnor.h
    M include/hw/s390x/s390-pci-clp.h
    M include/hw/tricore/tc27x_soc.h
    M include/hw/virtio/vhost-user-fs.h
    M include/hw/virtio/vhost-user-i2c.h
    M include/hw/virtio/vhost-user-rng.h
    M include/hw/virtio/vhost-user-vsock.h
    M include/hw/virtio/vhost-vsock-common.h
    M include/qemu/cpu-float.h
    M include/qemu/crc-ccitt.h
    M include/qemu/keyval.h
    M include/ui/dbus-display.h
    M include/ui/dbus-module.h
    M target/ppc/power8-pmu.h
    M target/riscv/sbi_ecall_interface.h
    M tests/qtest/libqmp.h
    M tests/qtest/migration-helpers.h
    M ui/dbus.h

  Log Message:
  -----------
  Clean up ill-advised or unusual header guards

Leading 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.

Macros should be ALL_CAPS.  Normalize the exception.

Done with scripts/clean-header-guards.pl.

include/hw/xen/interface/ and tools/virtiofsd/ left alone, because
these were imported from Xen and libfuse respectively.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20220506134911.2856099-3-armbru@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>


  Commit: 4f31b54bfe52c72be9c17c158b38924e6cefcd0f
      
https://github.com/qemu/qemu/commit/4f31b54bfe52c72be9c17c158b38924e6cefcd0f
  Author: Markus Armbruster <armbru@redhat.com>
  Date:   2022-05-11 (Wed, 11 May 2022)

  Changed paths:
    M include/exec/memopidx.h
    M include/tcg/tcg-ldst.h
    M target/alpha/cpu-param.h
    M target/arm/cpu-param.h
    M target/cris/cpu-param.h
    M target/hppa/cpu-param.h
    M target/i386/cpu-param.h
    M target/m68k/cpu-param.h
    M target/microblaze/cpu-param.h
    M target/mips/cpu-param.h
    M target/nios2/cpu-param.h
    M target/openrisc/cpu-param.h
    M target/ppc/cpu-param.h
    M target/riscv/cpu-param.h
    M target/s390x/cpu-param.h
    M target/sh4/cpu-param.h
    M target/sparc/cpu-param.h
    M target/tricore/cpu-param.h
    M target/xtensa/cpu-param.h
    M tcg/tcg-internal.h

  Log Message:
  -----------
  Normalize header guard symbol definition

We commonly define the header guard symbol without an explicit value.
Normalize the exceptions.

Done with scripts/clean-header-guards.pl.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20220506134911.2856099-4-armbru@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>


  Commit: ea9cea93c69d508a333dd1b0cb1a44f6daf80b63
      
https://github.com/qemu/qemu/commit/ea9cea93c69d508a333dd1b0cb1a44f6daf80b63
  Author: Markus Armbruster <armbru@redhat.com>
  Date:   2022-05-11 (Wed, 11 May 2022)

  Changed paths:
    M bsd-user/arm/target.h
    M bsd-user/x86_64/target.h
    M chardev/chardev-internal.h
    M include/block/block_int-global-state.h
    M include/exec/translator.h
    M include/fpu/softfloat-helpers.h
    M include/hw/gpio/aspeed_gpio.h
    M include/hw/intc/rx_icu.h
    M include/hw/misc/aspeed_hace.h
    M include/hw/misc/aspeed_lpc.h
    M include/hw/misc/aspeed_sbc.h
    M include/hw/net/allwinner-sun8i-emac.h
    M include/hw/rtc/m48t59.h
    M include/hw/rtc/mc146818rtc.h
    M include/qemu/plugin-memory.h
    M include/qemu/selfmap.h
    M include/user/syscall-trace.h
    M linux-user/hexagon/target_signal.h
    M target/avr/cpu.h
    M target/hexagon/attribs.h
    M target/xtensa/core-de233_fpu/core-matmap.h
    M target/xtensa/core-dsp3400/core-matmap.h

  Log Message:
  -----------
  Clean up decorations and whitespace around header guards

Cleaned up with scripts/clean-header-guards.pl.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20220506134911.2856099-5-armbru@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>


  Commit: ec11dc41eec5142b4776db1296972c6323ba5847
      
https://github.com/qemu/qemu/commit/ec11dc41eec5142b4776db1296972c6323ba5847
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2022-05-11 (Wed, 11 May 2022)

  Changed paths:
    M accel/tcg/tcg-accel-ops-icount.h
    M accel/tcg/tcg-accel-ops-mttcg.h
    M accel/tcg/tcg-accel-ops-rr.h
    M accel/tcg/tcg-accel-ops.h
    M block/copy-on-read.h
    M block/coroutines.h
    M bsd-user/arm/target.h
    M bsd-user/arm/target_arch.h
    M bsd-user/arm/target_arch_cpu.h
    M bsd-user/arm/target_arch_elf.h
    M bsd-user/arm/target_arch_reg.h
    M bsd-user/arm/target_arch_signal.h
    M bsd-user/arm/target_arch_sigtramp.h
    M bsd-user/arm/target_arch_sysarch.h
    M bsd-user/arm/target_arch_thread.h
    M bsd-user/arm/target_arch_vmparam.h
    M bsd-user/arm/target_syscall.h
    M bsd-user/bsd-file.h
    M bsd-user/errno_defs.h
    M bsd-user/freebsd/host-os.h
    M bsd-user/freebsd/target_os_elf.h
    M bsd-user/freebsd/target_os_siginfo.h
    M bsd-user/freebsd/target_os_signal.h
    M bsd-user/freebsd/target_os_stack.h
    M bsd-user/freebsd/target_os_thread.h
    M bsd-user/freebsd/target_os_user.h
    M bsd-user/freebsd/target_os_vmparam.h
    M bsd-user/i386/target.h
    M bsd-user/i386/target_arch.h
    M bsd-user/i386/target_arch_cpu.h
    M bsd-user/i386/target_arch_elf.h
    M bsd-user/i386/target_arch_reg.h
    M bsd-user/i386/target_arch_sigtramp.h
    M bsd-user/i386/target_arch_sysarch.h
    M bsd-user/i386/target_arch_thread.h
    M bsd-user/i386/target_arch_vmparam.h
    M bsd-user/netbsd/host-os.h
    M bsd-user/netbsd/target_os_elf.h
    M bsd-user/netbsd/target_os_siginfo.h
    M bsd-user/netbsd/target_os_signal.h
    M bsd-user/netbsd/target_os_stack.h
    M bsd-user/netbsd/target_os_thread.h
    M bsd-user/openbsd/host-os.h
    M bsd-user/openbsd/target_os_elf.h
    M bsd-user/openbsd/target_os_siginfo.h
    M bsd-user/openbsd/target_os_signal.h
    M bsd-user/openbsd/target_os_stack.h
    M bsd-user/openbsd/target_os_thread.h
    M bsd-user/syscall_defs.h
    M bsd-user/x86_64/target.h
    M bsd-user/x86_64/target_arch.h
    M bsd-user/x86_64/target_arch_cpu.h
    M bsd-user/x86_64/target_arch_elf.h
    M bsd-user/x86_64/target_arch_reg.h
    M bsd-user/x86_64/target_arch_signal.h
    M bsd-user/x86_64/target_arch_sigtramp.h
    M bsd-user/x86_64/target_arch_sysarch.h
    M bsd-user/x86_64/target_arch_thread.h
    M bsd-user/x86_64/target_arch_vmparam.h
    M chardev/chardev-internal.h
    M crypto/ivgen-plain.h
    M hw/i386/e820_memory_layout.h
    M hw/net/can/ctu_can_fd_frame.h
    M hw/net/can/ctu_can_fd_regs.h
    M hw/nvme/nvme.h
    M hw/usb/hcd-dwc2.h
    M include/block/block-hmp-cmds.h
    M include/block/block_int-global-state.h
    M include/chardev/char-socket.h
    M include/crypto/tls-cipher-suites.h
    M include/exec/memopidx.h
    M include/exec/translator.h
    M include/fpu/softfloat-helpers.h
    M include/hw/acpi/generic_event_device.h
    M include/hw/gpio/aspeed_gpio.h
    M include/hw/i2c/arm_sbcon_i2c.h
    M include/hw/i2c/i2c_mux_pca954x.h
    M include/hw/input/lm832x.h
    M include/hw/intc/exynos4210_combiner.h
    M include/hw/intc/nios2_vic.h
    M include/hw/intc/rx_icu.h
    M include/hw/misc/aspeed_hace.h
    M include/hw/misc/aspeed_lpc.h
    M include/hw/misc/aspeed_sbc.h
    M include/hw/misc/bcm2835_cprman.h
    M include/hw/misc/bcm2835_cprman_internals.h
    M include/hw/misc/stm32f4xx_exti.h
    M include/hw/misc/stm32f4xx_syscfg.h
    M include/hw/misc/xlnx-versal-pmc-iou-slcr.h
    M include/hw/net/allwinner-sun8i-emac.h
    M include/hw/net/mv88w8618_eth.h
    M include/hw/nubus/mac-nubus-bridge.h
    M include/hw/pci-host/remote.h
    M include/hw/ppc/pnv_pnor.h
    M include/hw/riscv/boot_opensbi.h
    M include/hw/riscv/shakti_c.h
    M include/hw/rtc/m48t59.h
    M include/hw/rtc/mc146818rtc.h
    M include/hw/rtc/sun4v-rtc.h
    M include/hw/rtc/xlnx-zynqmp-rtc.h
    M include/hw/rx/rx62n.h
    M include/hw/s390x/s390-pci-clp.h
    M include/hw/sensor/emc141x_regs.h
    M include/hw/ssi/xlnx-versal-ospi.h
    M include/hw/timer/bcm2835_systmr.h
    M include/hw/tricore/tc27x_soc.h
    M include/hw/tricore/tricore_testdevice.h
    M include/hw/usb/dwc2-regs.h
    M include/hw/usb/hcd-musb.h
    M include/hw/usb/xlnx-usb-subsystem.h
    M include/hw/usb/xlnx-versal-usb2-ctrl-regs.h
    M include/hw/virtio/vhost-user-fs.h
    M include/hw/virtio/vhost-user-i2c.h
    M include/hw/virtio/vhost-user-rng.h
    M include/hw/virtio/vhost-user-vsock.h
    M include/hw/virtio/vhost-vsock-common.h
    M include/hw/watchdog/wdt_imx2.h
    M include/qemu/cpu-float.h
    M include/qemu/crc-ccitt.h
    M include/qemu/help-texts.h
    M include/qemu/keyval.h
    M include/qemu/plugin-memory.h
    M include/qemu/qemu-plugin.h
    M include/qemu/selfmap.h
    M include/sysemu/block-backend-global-state.h
    M include/tcg/tcg-ldst.h
    M include/ui/dbus-display.h
    M include/ui/dbus-module.h
    M include/user/syscall-trace.h
    M linux-user/hexagon/target_signal.h
    M plugins/plugin.h
    M target/alpha/cpu-param.h
    M target/arm/cpu-param.h
    M target/arm/translate-a32.h
    M target/arm/vec_internal.h
    M target/avr/cpu-qom.h
    M target/avr/cpu.h
    M target/cris/cpu-param.h
    M target/hexagon/attribs.h
    M target/hexagon/hex_arch_types.h
    M target/hexagon/hex_regs.h
    M target/hppa/cpu-param.h
    M target/i386/cpu-param.h
    M target/i386/hax/hax-accel-ops.h
    M target/i386/nvmm/nvmm-accel-ops.h
    M target/i386/sev.h
    M target/i386/whpx/whpx-accel-ops.h
    M target/i386/whpx/whpx-internal.h
    M target/m68k/cpu-param.h
    M target/microblaze/cpu-param.h
    M target/mips/cpu-param.h
    M target/nios2/cpu-param.h
    M target/openrisc/cpu-param.h
    M target/ppc/cpu-param.h
    M target/ppc/power8-pmu.h
    M target/riscv/cpu-param.h
    M target/riscv/sbi_ecall_interface.h
    M target/s390x/cpu-param.h
    M target/sh4/cpu-param.h
    M target/sparc/cpu-param.h
    M target/tricore/cpu-param.h
    M target/xtensa/core-de233_fpu/core-isa.h
    M target/xtensa/core-de233_fpu/core-matmap.h
    M target/xtensa/core-dsp3400/core-isa.h
    M target/xtensa/core-dsp3400/core-matmap.h
    M target/xtensa/cpu-param.h
    M tcg/tcg-internal.h
    M tests/qtest/fuzz/fuzz.h
    M tests/qtest/libqmp.h
    M tests/qtest/migration-helpers.h
    M tools/virtiofsd/passthrough_seccomp.h
    M ui/dbus.h

  Log Message:
  -----------
  Merge tag 'pull-misc-2022-05-11' of git://repo.or.cz/qemu/armbru into staging

Miscellaneous patches patches for 2022-05-11

# -----BEGIN PGP SIGNATURE-----
#
# iQJGBAABCAAwFiEENUvIs9frKmtoZ05fOHC0AOuRhlMFAmJ7zwISHGFybWJydUBy
# ZWRoYXQuY29tAAoJEDhwtADrkYZThuAQAJdSuj5fpY8EXxhuS3Rc8uHPrz6lP+nZ
# kwxKPOldwFdmkXRJ8qrjcc/BXxiJU3pxmSRvFZ8miCFMrb4Vd16sUzD6PeKb1jr8
# JsrvXcsaWn4f/p0v0WraamwSQeZUMjqsZPgZut93qfJoKmgTaxoZnR+ZDHFKoQJS
# qBrHL/5+RPxSugLa6IEpSQwy80jd0tMBaG/e8V+JxzgFM5jzOExwXtfUujzS92Lr
# NgapnbEZrpqErBC1xhpetQ8Q5I4r0kkLj4Exm/ClNtIM2GByJxI8x2DE+NJZNDnm
# g/tvVKUhEl6cOywQRajAJ/LrhUpVSkz6wsczv35rhRS+1FoCb+PRKr42SxZGI2rB
# tZLYt4ouoSGk2pYiudoIBKsIR1Svu7Cmg4YzOL9yvqF0BS3cRDvPgm3QFvoeErjL
# EML7b41zLdIkbvujsJ7HJqVL44QmMSu13PcLUtDvLh+ivpL9wIUQn3ji+rfsgqh+
# RYw4niJ9JO3N3/VwEhlymc9kRSTgZ6rdIWPrtQ5ACwTADAv30++opxAlksE6mo0m
# TYrqyTG2FHGOKm+5Q4Lyx1heHJDUAE3dlRIhGt8KqD6UKlpSfIVIUU2ztjZK4JQ5
# n85LOLZkE9ejbvbpnLX8hgKfouVKKYwFagc/ZA649cIXvC8YDxdOwvhjEVCxa+V5
# dQbpQsekXf9G
# =jOTx
# -----END PGP SIGNATURE-----
# gpg: Signature made Wed 11 May 2022 07:58:10 AM PDT
# gpg:                using RSA key 354BC8B3D7EB2A6B68674E5F3870B400EB918653
# gpg:                issuer "armbru@redhat.com"
# gpg: Good signature from "Markus Armbruster <armbru@redhat.com>" [undefined]
# gpg:                 aka "Markus Armbruster <armbru@pond.sub.org>" [undefined]
# gpg: WARNING: This key is not certified with a trusted signature!
# gpg:          There is no indication that the signature belongs to the owner.
# Primary key fingerprint: 354B C8B3 D7EB 2A6B 6867  4E5F 3870 B400 EB91 8653

* tag 'pull-misc-2022-05-11' of git://repo.or.cz/qemu/armbru:
  Clean up decorations and whitespace around header guards
  Normalize header guard symbol definition
  Clean up ill-advised or unusual header guards
  Clean up header guards that don't match their file name

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


Compare: https://github.com/qemu/qemu/compare/178bacb66d98...ec11dc41eec5



reply via email to

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