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
This commit is contained in:
Markus Armbruster 2019-05-14 08:02:42 -04:00 committed by Lioncash
parent 9a02741c13
commit 1b2c8c44d5
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7
2 changed files with 5 additions and 5 deletions

View file

@ -19,8 +19,8 @@
* this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _RISCV_PMP_H_
#define _RISCV_PMP_H_
#ifndef RISCV_PMP_H
#define RISCV_PMP_H
typedef enum {
PMP_READ = 1 << 0,

View file

@ -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 */