From 1b2c8c44d5079cb339323dfee2bd6cf06bb178b5 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Tue, 14 May 2019 08:02:42 -0400 Subject: [PATCH] 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. Backports commit a8b991b52dcde75ab5065046653626951aac666d from qemu --- qemu/target/riscv/pmp.h | 4 ++-- qemu/target/sparc/asi.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/qemu/target/riscv/pmp.h b/qemu/target/riscv/pmp.h index e3953c88..66790950 100644 --- a/qemu/target/riscv/pmp.h +++ b/qemu/target/riscv/pmp.h @@ -19,8 +19,8 @@ * this program. If not, see . */ -#ifndef _RISCV_PMP_H_ -#define _RISCV_PMP_H_ +#ifndef RISCV_PMP_H +#define RISCV_PMP_H typedef enum { PMP_READ = 1 << 0, diff --git a/qemu/target/sparc/asi.h b/qemu/target/sparc/asi.h index d4e6ac94..d2db8b10 100644 --- a/qemu/target/sparc/asi.h +++ b/qemu/target/sparc/asi.h @@ -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 */