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.

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

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20190315145123.28030-7-armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
[Changes to slirp/ dropped, as we're about to spin it off]
This commit is contained in:
Markus Armbruster
2019-05-13 08:58:55 +02:00
parent 58ea30f514
commit a8b991b52d
38 changed files with 109 additions and 100 deletions
+3 -3
View File
@@ -18,8 +18,8 @@
* *
*/ */
#ifndef BLOCK_CRYPTO_H__ #ifndef BLOCK_CRYPTO_H
#define BLOCK_CRYPTO_H__ #define BLOCK_CRYPTO_H
#define BLOCK_CRYPTO_OPT_DEF_KEY_SECRET(prefix, helpstr) \ #define BLOCK_CRYPTO_OPT_DEF_KEY_SECRET(prefix, helpstr) \
{ \ { \
@@ -94,4 +94,4 @@ block_crypto_create_opts_init(QDict *opts, Error **errp);
QCryptoBlockOpenOptions * QCryptoBlockOpenOptions *
block_crypto_open_opts_init(QDict *opts, Error **errp); block_crypto_open_opts_init(QDict *opts, Error **errp);
#endif /* BLOCK_CRYPTO_H__ */ #endif /* BLOCK_CRYPTO_H */
+2 -2
View File
@@ -18,8 +18,8 @@
* with this program; if not, see <http://www.gnu.org/licenses/>. * with this program; if not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef AMD_IOMMU_H_ #ifndef AMD_IOMMU_H
#define AMD_IOMMU_H_ #define AMD_IOMMU_H
#include "hw/hw.h" #include "hw/hw.h"
#include "hw/pci/pci.h" #include "hw/pci/pci.h"
+4 -3
View File
@@ -5,8 +5,9 @@
* *
* This file is licensed under the terms of the 3-clause BSD license * 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/uio.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
@@ -267,4 +268,4 @@ enum {
CMD_SET_BUFFERSIZE, CMD_SET_BUFFERSIZE,
}; };
#endif /* _TPM_IOCTL_H */ #endif /* TPM_IOCTL_H */
+2 -2
View File
@@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#ifndef _XTENSA_MEMORY_H #ifndef XTENSA_MEMORY_H
#define _XTENSA_MEMORY_H #define XTENSA_MEMORY_H
#include "qemu-common.h" #include "qemu-common.h"
#include "cpu.h" #include "cpu.h"
+3 -4
View File
@@ -18,8 +18,8 @@
* *
*/ */
#ifndef QAUTHZ_BASE_H__ #ifndef QAUTHZ_BASE_H
#define QAUTHZ_BASE_H__ #define QAUTHZ_BASE_H
#include "qemu-common.h" #include "qemu-common.h"
#include "qapi/error.h" #include "qapi/error.h"
@@ -108,5 +108,4 @@ bool qauthz_is_allowed_by_id(const char *authzid,
const char *identity, const char *identity,
Error **errp); Error **errp);
#endif /* QAUTHZ_BASE_H__ */ #endif /* QAUTHZ_BASE_H */
+3 -4
View File
@@ -18,8 +18,8 @@
* *
*/ */
#ifndef QAUTHZ_LIST_H__ #ifndef QAUTHZ_LIST_H
#define QAUTHZ_LIST_H__ #define QAUTHZ_LIST_H
#include "authz/base.h" #include "authz/base.h"
#include "qapi/qapi-types-authz.h" #include "qapi/qapi-types-authz.h"
@@ -102,5 +102,4 @@ ssize_t qauthz_list_delete_rule(QAuthZList *auth,
const char *match); const char *match);
#endif /* QAUTHZ_LIST_H__ */ #endif /* QAUTHZ_LIST_H */
+3 -4
View File
@@ -18,8 +18,8 @@
* *
*/ */
#ifndef QAUTHZ_SIMPLE_H__ #ifndef QAUTHZ_SIMPLE_H
#define QAUTHZ_SIMPLE_H__ #define QAUTHZ_SIMPLE_H
#include "authz/base.h" #include "authz/base.h"
@@ -80,5 +80,4 @@ QAuthZSimple *qauthz_simple_new(const char *id,
Error **errp); Error **errp);
#endif /* QAUTHZ_SIMPLE_H__ */ #endif /* QAUTHZ_SIMPLE_H */
+2 -2
View File
@@ -1,5 +1,5 @@
#ifndef CHARDEV_SPICE_H_ #ifndef CHARDEV_SPICE_H
#define CHARDEV_SPICE_H_ #define CHARDEV_SPICE_H
#include <spice.h> #include <spice.h>
#include "chardev/char-fe.h" #include "chardev/char-fe.h"
+4 -3
View File
@@ -16,8 +16,9 @@
* You should have received a copy of the GNU Lesser General Public * 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/>. * 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/boards.h"
#include "hw/sysbus.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_SIZE 0x0000000000010000ull
#define PNV9_PSIHB_ESB_BASE(chip) PNV9_CHIP_BASE(chip, 0x00060302031c0000ull) #define PNV9_PSIHB_ESB_BASE(chip) PNV9_CHIP_BASE(chip, 0x00060302031c0000ull)
#endif /* _PPC_PNV_H */ #endif /* PPC_PNV_H */
+4 -3
View File
@@ -16,8 +16,9 @@
* You should have received a copy of the GNU Lesser General Public * 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/>. * 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" #include "hw/cpu/core.h"
@@ -68,4 +69,4 @@ typedef struct PnvQuad {
uint32_t id; uint32_t id;
MemoryRegion xscom_regs; MemoryRegion xscom_regs;
} PnvQuad; } PnvQuad;
#endif /* _PPC_PNV_CORE_H */ #endif /* PPC_PNV_CORE_H */
+4 -3
View File
@@ -16,8 +16,9 @@
* You should have received a copy of the GNU Lesser General Public * 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/>. * 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" #include "hw/ppc/pnv_psi.h"
@@ -98,4 +99,4 @@ struct PnvChip;
ISABus *pnv_lpc_isa_create(PnvLpcController *lpc, bool use_cpld, Error **errp); ISABus *pnv_lpc_isa_create(PnvLpcController *lpc, bool use_cpld, Error **errp);
int pnv_dt_lpc(struct PnvChip *chip, void *fdt, int root_offset); int pnv_dt_lpc(struct PnvChip *chip, void *fdt, int root_offset);
#endif /* _PPC_PNV_LPC_H */ #endif /* PPC_PNV_LPC_H */
+4 -3
View File
@@ -16,8 +16,9 @@
* You should have received a copy of the GNU Lesser General Public * 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/>. * 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" #include "hw/ppc/pnv_psi.h"
@@ -52,4 +53,4 @@ typedef struct PnvOCCClass {
int psi_irq; int psi_irq;
} PnvOCCClass; } PnvOCCClass;
#endif /* _PPC_PNV_OCC_H */ #endif /* PPC_PNV_OCC_H */
+4 -3
View File
@@ -16,8 +16,9 @@
* You should have received a copy of the GNU Lesser General Public * 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/>. * 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/sysbus.h"
#include "hw/ppc/xics.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); void pnv_psi_pic_print_info(Pnv9Psi *psi, Monitor *mon);
#endif /* _PPC_PNV_PSI_H */ #endif /* PPC_PNV_PSI_H */
+4 -3
View File
@@ -16,8 +16,9 @@
* You should have received a copy of the GNU Lesser General Public * 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/>. * 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" #include "qom/object.h"
@@ -98,4 +99,4 @@ extern void pnv_xscom_region_init(MemoryRegion *mr,
const char *name, const char *name,
uint64_t size); uint64_t size);
#endif /* _PPC_PNV_XSCOM_H */ #endif /* PPC_PNV_XSCOM_H */
+4 -3
View File
@@ -33,8 +33,9 @@
* This work is licensed under the terms of the GNU GPL, version 2 or later. * This work is licensed under the terms of the GNU GPL, version 2 or later.
* See the COPYING file in the top-level directory. * 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 "cpu.h"
#include "migration/vmstate.h" #include "migration/vmstate.h"
@@ -80,4 +81,4 @@ int spapr_ovec_populate_dt(void *fdt, int fdt_offset,
/* migration */ /* migration */
extern const VMStateDescription vmstate_spapr_ovec; extern const VMStateDescription vmstate_spapr_ovec;
#endif /* !defined (_SPAPR_OVEC_H) */ #endif /* SPAPR_OVEC_H */
+2 -2
View File
@@ -11,8 +11,8 @@
* GNU GPL, version 2 or (at your option) any later version. * GNU GPL, version 2 or (at your option) any later version.
*/ */
#ifndef HW_TIMER_PL031 #ifndef HW_TIMER_PL031_H
#define HW_TIMER_PL031 #define HW_TIMER_PL031_H
#include "hw/sysbus.h" #include "hw/sysbus.h"
+3 -3
View File
@@ -11,8 +11,8 @@
* top-level directory. * top-level directory.
*/ */
#ifndef _QEMU_VHOST_VSOCK_H #ifndef QEMU_VHOST_VSOCK_H
#define _QEMU_VHOST_VSOCK_H #define QEMU_VHOST_VSOCK_H
#include "hw/virtio/virtio.h" #include "hw/virtio/virtio.h"
#include "hw/virtio/vhost.h" #include "hw/virtio/vhost.h"
@@ -38,4 +38,4 @@ typedef struct {
/*< public >*/ /*< public >*/
} VHostVSock; } VHostVSock;
#endif /* _QEMU_VHOST_VSOCK_H */ #endif /* QEMU_VHOST_VSOCK_H */
+3 -3
View File
@@ -11,8 +11,8 @@
* top-level directory. * top-level directory.
*/ */
#ifndef _QEMU_VIRTIO_CRYPTO_H #ifndef QEMU_VIRTIO_CRYPTO_H
#define _QEMU_VIRTIO_CRYPTO_H #define QEMU_VIRTIO_CRYPTO_H
#include "standard-headers/linux/virtio_crypto.h" #include "standard-headers/linux/virtio_crypto.h"
#include "hw/virtio/virtio.h" #include "hw/virtio/virtio.h"
@@ -99,4 +99,4 @@ typedef struct VirtIOCrypto {
uint8_t vhost_started; uint8_t vhost_started;
} VirtIOCrypto; } VirtIOCrypto;
#endif /* _QEMU_VIRTIO_CRYPTO_H */ #endif /* QEMU_VIRTIO_CRYPTO_H */
+3 -3
View File
@@ -20,8 +20,8 @@
* Copyright (c) 2016, Citrix Systems, Inc. * Copyright (c) 2016, Citrix Systems, Inc.
*/ */
#ifndef __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__ #define XEN_PUBLIC_ARCH_X86_HVM_START_INFO_H
/* /*
* Start of day structure passed to PVH guests and to HVM guests in %ebx. * 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; uint32_t reserved;
}; };
#endif /* __XEN_PUBLIC_ARCH_X86_HVM_START_INFO_H__ */ #endif /* XEN_PUBLIC_ARCH_X86_HVM_START_INFO_H */
+2 -2
View File
@@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#ifndef _XTENSA_MX_PIC_H #ifndef XTENSA_MX_PIC_H
#define _XTENSA_MX_PIC_H #define XTENSA_MX_PIC_H
#include "exec/memory.h" #include "exec/memory.h"
#include "hw/irq.h" #include "hw/irq.h"

Some files were not shown because too many files have changed in this diff Show More