mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
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: <20190315145123.28030-6-armbru@redhat.com> [Rebase to master: update include/hw/net/ne2000-isa.h]
This commit is contained in:
@@ -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 */
|
||||
|
||||
+2
-2
@@ -20,8 +20,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef NANOMIPS_DISASSEMBLER_H
|
||||
#define NANOMIPS_DISASSEMBLER_H
|
||||
#ifndef DISAS_NANOMIPS_H
|
||||
#define DISAS_NANOMIPS_H
|
||||
|
||||
#include <string>
|
||||
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
* See the COPYING file in the top-level directory.
|
||||
*/
|
||||
|
||||
#ifndef HW_NET_NE2K_ISA_H
|
||||
#define HW_NET_NE2K_ISA_H
|
||||
#ifndef HW_NET_NE2000_ISA_H
|
||||
#define HW_NET_NE2000_ISA_H
|
||||
|
||||
#include "hw/hw.h"
|
||||
#include "hw/qdev.h"
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user