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]
This commit is contained in:
Markus Armbruster 2022-05-06 15:49:08 +02:00
parent 178bacb66d
commit 52581c718c
58 changed files with 148 additions and 151 deletions

View file

@ -56,8 +56,8 @@
*
*/
#ifndef HW_ACPI_GED_H
#define HW_ACPI_GED_H
#ifndef HW_ACPI_GENERIC_EVENT_DEVICE_H
#define HW_ACPI_GENERIC_EVENT_DEVICE_H
#include "hw/sysbus.h"
#include "hw/acpi/memory_hotplug.h"

View file

@ -9,8 +9,9 @@
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef HW_I2C_ARM_SBCON_H
#define HW_I2C_ARM_SBCON_H
#ifndef HW_I2C_ARM_SBCON_I2C_H
#define HW_I2C_ARM_SBCON_I2C_H
#include "hw/sysbus.h"
#include "hw/i2c/bitbang_i2c.h"
@ -34,4 +35,4 @@ struct ArmSbconI2CState {
int in;
};
#endif /* HW_I2C_ARM_SBCON_H */
#endif /* HW_I2C_ARM_SBCON_I2C_H */

View file

@ -6,8 +6,8 @@
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef HW_MISC_CPRMAN_H
#define HW_MISC_CPRMAN_H
#ifndef HW_MISC_BCM2835_CPRMAN_H
#define HW_MISC_BCM2835_CPRMAN_H
#include "hw/sysbus.h"
#include "hw/qdev-clock.h"

View file

@ -6,8 +6,8 @@
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef HW_MISC_CPRMAN_INTERNALS_H
#define HW_MISC_CPRMAN_INTERNALS_H
#ifndef HW_MISC_BCM2835_CPRMAN_INTERNALS_H
#define HW_MISC_BCM2835_CPRMAN_INTERNALS_H
#include "hw/registerfields.h"
#include "hw/misc/bcm2835_cprman.h"

View file

@ -22,8 +22,8 @@
* THE SOFTWARE.
*/
#ifndef HW_STM_EXTI_H
#define HW_STM_EXTI_H
#ifndef HW_STM32F4XX_EXTI_H
#define HW_STM32F4XX_EXTI_H
#include "hw/sysbus.h"
#include "qom/object.h"

View file

@ -22,8 +22,8 @@
* THE SOFTWARE.
*/
#ifndef HW_STM_SYSCFG_H
#define HW_STM_SYSCFG_H
#ifndef HW_STM32F4XX_SYSCFG_H
#define HW_STM32F4XX_SYSCFG_H
#include "hw/sysbus.h"
#include "qom/object.h"

View file

@ -51,8 +51,8 @@
* 1: OSPI direct access mode.
*/
#ifndef XILINX_VERSAL_PMC_IOU_SLCR_H
#define XILINX_VERSAL_PMC_IOU_SLCR_H
#ifndef XLNX_VERSAL_PMC_IOU_SLCR_H
#define XLNX_VERSAL_PMC_IOU_SLCR_H
#include "hw/register.h"
@ -75,4 +75,4 @@ struct XlnxVersalPmcIouSlcr {
RegisterInfo regs_info[XILINX_VERSAL_PMC_IOU_SLCR_R_MAX];
};
#endif /* XILINX_VERSAL_PMC_IOU_SLCR_H */
#endif /* XLNX_VERSAL_PMC_IOU_SLCR_H */

View file

@ -4,8 +4,9 @@
*
* Copyright (c) 2008-2021 QEMU contributors
*/
#ifndef HW_NET_MV88W8618_H
#define HW_NET_MV88W8618_H
#ifndef HW_NET_MV88W8618_ETH_H
#define HW_NET_MV88W8618_ETH_H
#define TYPE_MV88W8618_ETH "mv88w8618_eth"

View file

@ -6,8 +6,8 @@
*
*/
#ifndef HW_NUBUS_MAC_H
#define HW_NUBUS_MAC_H
#ifndef HW_NUBUS_MAC_NUBUS_BRIDGE_H
#define HW_NUBUS_MAC_NUBUS_BRIDGE_H
#include "hw/nubus/nubus.h"
#include "qom/object.h"

View file

@ -8,8 +8,8 @@
*
*/
#ifndef REMOTE_PCIHOST_H
#define REMOTE_PCIHOST_H
#ifndef PCI_HOST_REMOTE_H
#define PCI_HOST_REMOTE_H
#include "exec/memory.h"
#include "hw/pci/pcie_host.h"

View file

@ -4,8 +4,9 @@
*
* Based on include/sbi/{fw_dynamic.h,sbi_scratch.h} from the OpenSBI project.
*/
#ifndef OPENSBI_H
#define OPENSBI_H
#ifndef RISCV_BOOT_OPENSBI_H
#define RISCV_BOOT_OPENSBI_H
/** Expected value of info magic ('OSBI' ascii string in hex) */
#define FW_DYNAMIC_INFO_MAGIC_VALUE 0x4942534f

View file

@ -16,8 +16,8 @@
* this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef HW_SHAKTI_H
#define HW_SHAKTI_H
#ifndef HW_SHAKTI_C_H
#define HW_SHAKTI_C_H
#include "hw/riscv/riscv_hart.h"
#include "hw/boards.h"

View file

@ -9,8 +9,8 @@
* version.
*/
#ifndef HW_RTC_SUN4V
#define HW_RTC_SUN4V
#ifndef HW_RTC_SUN4V_RTC_H
#define HW_RTC_SUN4V_RTC_H
#include "exec/hwaddr.h"

View file

@ -24,8 +24,8 @@
* THE SOFTWARE.
*/
#ifndef HW_RTC_XLNX_ZYNQMP_H
#define HW_RTC_XLNX_ZYNQMP_H
#ifndef HW_RTC_XLNX_ZYNQMP_RTC_H
#define HW_RTC_XLNX_ZYNQMP_RTC_H
#include "hw/register.h"
#include "hw/sysbus.h"

View file

@ -21,8 +21,8 @@
* this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef HW_RX_RX62N_MCU_H
#define HW_RX_RX62N_MCU_H
#ifndef HW_RX_RX62N_H
#define HW_RX_RX62N_H
#include "target/rx/cpu.h"
#include "hw/intc/rx_icu.h"

View file

@ -9,8 +9,8 @@
* later. See the COPYING file in the top-level directory.
*/
#ifndef TMP105_REGS_H
#define TMP105_REGS_H
#ifndef EMC141X_REGS_H
#define EMC141X_REGS_H
#define EMC1413_DEVICE_ID 0x21
#define EMC1414_DEVICE_ID 0x25

View file

@ -49,8 +49,8 @@
* + Property "indac-write-disabled": Disable indirect access writes.
*/
#ifndef XILINX_VERSAL_OSPI_H
#define XILINX_VERSAL_OSPI_H
#ifndef XLNX_VERSAL_OSPI_H
#define XLNX_VERSAL_OSPI_H
#include "hw/register.h"
#include "hw/ssi/ssi.h"
@ -108,4 +108,4 @@ struct XlnxVersalOspi {
uint8_t stig_membank[512];
};
#endif /* XILINX_VERSAL_OSPI_H */
#endif /* XLNX_VERSAL_OSPI_H */

View file

@ -6,8 +6,8 @@
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef BCM2835_SYSTIMER_H
#define BCM2835_SYSTIMER_H
#ifndef BCM2835_SYSTMR_H
#define BCM2835_SYSTMR_H
#include "hw/sysbus.h"
#include "hw/irq.h"

View file

@ -15,9 +15,8 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef HW_TRICORE_TESTDEV_H
#define HW_TRICORE_TESTDEV_H
#ifndef HW_TRICORE_TESTDEVICE_H
#define HW_TRICORE_TESTDEVICE_H
#include "hw/sysbus.h"
#include "hw/hw.h"

View file

@ -39,8 +39,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef DWC2_HW_H
#define DWC2_HW_H
#ifndef DWC2_REGS_H
#define DWC2_REGS_H
#define HSOTG_REG(x) (x)
@ -896,4 +896,4 @@ struct dwc2_dma_desc {
#define MAX_DMA_DESC_NUM_GENERIC 64
#define MAX_DMA_DESC_NUM_HS_ISOC 256
#endif /* __DWC2_HW_H__ */
#endif /* DWC2_REGS_H */

View file

@ -10,8 +10,8 @@
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef HW_USB_MUSB_H
#define HW_USB_MUSB_H
#ifndef HW_USB_HCD_MUSB_H
#define HW_USB_HCD_MUSB_H
enum musb_irq_source_e {
musb_irq_suspend = 0,

View file

@ -22,8 +22,8 @@
* THE SOFTWARE.
*/
#ifndef XLNX_VERSAL_USB_SUBSYSTEM_H
#define XLNX_VERSAL_USB_SUBSYSTEM_H
#ifndef XLNX_USB_SUBSYSTEM_H
#define XLNX_USB_SUBSYSTEM_H
#include "hw/usb/xlnx-versal-usb2-ctrl-regs.h"
#include "hw/usb/hcd-dwc3.h"

View file

@ -23,8 +23,8 @@
* THE SOFTWARE.
*/
#ifndef XLNX_USB2_REGS_H
#define XLNX_USB2_REGS_H
#ifndef XLNX_VERSAL_USB2_CTRL_REGS_H
#define XLNX_VERSAL_USB2_CTRL_REGS_H
#define TYPE_XILINX_VERSAL_USB2_CTRL_REGS "xlnx.versal-usb2-ctrl-regs"

View file

@ -9,8 +9,8 @@
* See the COPYING file in the top-level directory.
*/
#ifndef IMX2_WDT_H
#define IMX2_WDT_H
#ifndef WDT_IMX2_H
#define WDT_IMX2_H
#include "qemu/bitops.h"
#include "hw/sysbus.h"
@ -88,4 +88,4 @@ struct IMX2WdtState {
bool wcr_wdt_locked; /* affects WDT (never cleared) */
};
#endif /* IMX2_WDT_H */
#endif /* WDT_IMX2_H */