diff options
author | Markus Armbruster <armbru@redhat.com> | 2019-03-15 15:51:21 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2019-05-13 08:58:55 +0200 |
commit | a8b991b52dcde75ab5065046653626951aac666d (patch) | |
tree | eaa9e5fcc4375961dc9db3eb84ed7a50e9b05f68 /hw | |
parent | 58ea30f5145fc8c7ebb80ee0b0c812a3a958c762 (diff) | |
download | qemu-a8b991b52dcde75ab5065046653626951aac666d.zip qemu-a8b991b52dcde75ab5065046653626951aac666d.tar.gz qemu-a8b991b52dcde75ab5065046653626951aac666d.tar.bz2 |
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]
Diffstat (limited to 'hw')
-rw-r--r-- | hw/i386/amd_iommu.h | 4 | ||||
-rw-r--r-- | hw/tpm/tpm_ioctl.h | 7 | ||||
-rw-r--r-- | hw/xtensa/xtensa_memory.h | 4 |
3 files changed, 8 insertions, 7 deletions
diff --git a/hw/i386/amd_iommu.h b/hw/i386/amd_iommu.h index 0ff9095..3a694b1 100644 --- a/hw/i386/amd_iommu.h +++ b/hw/i386/amd_iommu.h @@ -18,8 +18,8 @@ * with this program; if not, see <http://www.gnu.org/licenses/>. */ -#ifndef AMD_IOMMU_H_ -#define AMD_IOMMU_H_ +#ifndef AMD_IOMMU_H +#define AMD_IOMMU_H #include "hw/hw.h" #include "hw/pci/pci.h" diff --git a/hw/tpm/tpm_ioctl.h b/hw/tpm/tpm_ioctl.h index 59a0b05..f5f5c55 100644 --- a/hw/tpm/tpm_ioctl.h +++ b/hw/tpm/tpm_ioctl.h @@ -5,8 +5,9 @@ * * 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/ioctl.h> @@ -267,4 +268,4 @@ enum { CMD_SET_BUFFERSIZE, }; -#endif /* _TPM_IOCTL_H */ +#endif /* TPM_IOCTL_H */ diff --git a/hw/xtensa/xtensa_memory.h b/hw/xtensa/xtensa_memory.h index e9aa087..89125c4 100644 --- a/hw/xtensa/xtensa_memory.h +++ b/hw/xtensa/xtensa_memory.h @@ -25,8 +25,8 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef _XTENSA_MEMORY_H -#define _XTENSA_MEMORY_H +#ifndef XTENSA_MEMORY_H +#define XTENSA_MEMORY_H #include "qemu-common.h" #include "cpu.h" |