Skip to content

Commit 52581c7

Browse files
author
Markus Armbruster
committed
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 <[email protected]> Message-Id: <[email protected]> Reviewed-by: Richard Henderson <[email protected]> [Change to generated file ebpf/rss.bpf.skeleton.h backed out]
1 parent 178bacb commit 52581c7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+148
-151
lines changed

accel/tcg/tcg-accel-ops-icount.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
* See the COPYING file in the top-level directory.
88
*/
99

10-
#ifndef TCG_CPUS_ICOUNT_H
11-
#define TCG_CPUS_ICOUNT_H
10+
#ifndef TCG_ACCEL_OPS_ICOUNT_H
11+
#define TCG_ACCEL_OPS_ICOUNT_H
1212

1313
void icount_handle_deadline(void);
1414
void icount_prepare_for_run(CPUState *cpu);
1515
void icount_process_data(CPUState *cpu);
1616

1717
void icount_handle_interrupt(CPUState *cpu, int mask);
1818

19-
#endif /* TCG_CPUS_ICOUNT_H */
19+
#endif /* TCG_ACCEL_OPS_ICOUNT_H */

accel/tcg/tcg-accel-ops-mttcg.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
* See the COPYING file in the top-level directory.
88
*/
99

10-
#ifndef TCG_CPUS_MTTCG_H
11-
#define TCG_CPUS_MTTCG_H
10+
#ifndef TCG_ACCEL_OPS_MTTCG_H
11+
#define TCG_ACCEL_OPS_MTTCG_H
1212

1313
/* kick MTTCG vCPU thread */
1414
void mttcg_kick_vcpu_thread(CPUState *cpu);
1515

1616
/* start an mttcg vCPU thread */
1717
void mttcg_start_vcpu_thread(CPUState *cpu);
1818

19-
#endif /* TCG_CPUS_MTTCG_H */
19+
#endif /* TCG_ACCEL_OPS_MTTCG_H */

accel/tcg/tcg-accel-ops-rr.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
* See the COPYING file in the top-level directory.
88
*/
99

10-
#ifndef TCG_CPUS_RR_H
11-
#define TCG_CPUS_RR_H
10+
#ifndef TCG_ACCEL_OPS_RR_H
11+
#define TCG_ACCEL_OPS_RR_H
1212

1313
#define TCG_KICK_PERIOD (NANOSECONDS_PER_SECOND / 10)
1414

@@ -18,4 +18,4 @@ void rr_kick_vcpu_thread(CPUState *unused);
1818
/* start the round robin vcpu thread */
1919
void rr_start_vcpu_thread(CPUState *cpu);
2020

21-
#endif /* TCG_CPUS_RR_H */
21+
#endif /* TCG_ACCEL_OPS_RR_H */

accel/tcg/tcg-accel-ops.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
* See the COPYING file in the top-level directory.
1010
*/
1111

12-
#ifndef TCG_CPUS_H
13-
#define TCG_CPUS_H
12+
#ifndef TCG_ACCEL_OPS_H
13+
#define TCG_ACCEL_OPS_H
1414

1515
#include "sysemu/cpus.h"
1616

@@ -19,4 +19,4 @@ int tcg_cpus_exec(CPUState *cpu);
1919
void tcg_handle_interrupt(CPUState *cpu, int mask);
2020
void tcg_cpu_init_cflags(CPUState *cpu, bool parallel);
2121

22-
#endif /* TCG_CPUS_H */
22+
#endif /* TCG_ACCEL_OPS_H */

block/coroutines.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
* THE SOFTWARE.
2323
*/
2424

25-
#ifndef BLOCK_COROUTINES_INT_H
26-
#define BLOCK_COROUTINES_INT_H
25+
#ifndef BLOCK_COROUTINES_H
26+
#define BLOCK_COROUTINES_H
2727

2828
#include "block/block_int.h"
2929

@@ -129,4 +129,4 @@ blk_do_pdiscard(BlockBackend *blk, int64_t offset, int64_t bytes);
129129

130130
int generated_co_wrapper blk_do_flush(BlockBackend *blk);
131131

132-
#endif /* BLOCK_COROUTINES_INT_H */
132+
#endif /* BLOCK_COROUTINES_H */

bsd-user/arm/target_syscall.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
* along with this program; if not, see <http://www.gnu.org/licenses/>.
1818
*/
1919

20-
#ifndef _TARGET_ARCH_SYSCALL_H_
21-
#define _TARGET_ARCH_SYSCALL_H_
20+
#ifndef ARM_TARGET_SYSCALL_H
21+
#define ARM_TARGET_SYSCALL_H
2222

2323
struct target_pt_regs {
2424
abi_long uregs[17];
@@ -52,4 +52,4 @@ struct target_pt_regs {
5252
#define TARGET_HW_MACHINE "arm"
5353
#define TARGET_HW_MACHINE_ARCH "armv7"
5454

55-
#endif /* !_TARGET_ARCH_SYSCALL_H_ */
55+
#endif /* ARM_TARGET_SYSCALL_H */

bsd-user/i386/target.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
* SPDX-License-Identifier: GPL-2.0-or-later
77
*/
88

9-
#ifndef TARGET_ARCH_H
10-
#define TARGET_ARCH_H
9+
#ifndef TARGET_H
10+
#define TARGET_H
1111

1212
/*
1313
* i386 doesn't 'lump' the registers for 64-bit args.
@@ -17,5 +17,4 @@ static inline bool regpairs_aligned(void *cpu_env)
1717
return false;
1818
}
1919

20-
#endif /* ! TARGET_ARCH_H */
21-
20+
#endif /* TARGET_H */

bsd-user/i386/target_arch_sysarch.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
* along with this program; if not, see <http://www.gnu.org/licenses/>.
1818
*/
1919

20-
#ifndef BSD_USER_ARCH_SYSARCH_H_
21-
#define BSD_USER_ARCH_SYSARCH_H_
20+
#ifndef TARGET_ARCH_SYSARCH_H
21+
#define TARGET_ARCH_SYSARCH_H
2222

2323
#include "target_syscall.h"
2424

@@ -74,4 +74,4 @@ static inline void do_freebsd_arch_print_sysarch(
7474
TARGET_ABI_FMT_lx ")", name->name, (int)arg1, arg2, arg3, arg4);
7575
}
7676

77-
#endif /* !BSD_USER_ARCH_SYSARCH_H_ */
77+
#endif /* TARGET_ARCH_SYSARCH_H */

bsd-user/x86_64/target_arch_sysarch.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
* along with this program; if not, see <http://www.gnu.org/licenses/>.
1717
*/
1818

19-
#ifndef BSD_USER_ARCH_SYSARCH_H_
20-
#define BSD_USER_ARCH_SYSARCH_H_
19+
#ifndef TARGET_ARCH_SYSARCH_H
20+
#define TARGET_ARCH_SYSARCH_H
2121

2222
#include "target_syscall.h"
2323

@@ -73,4 +73,4 @@ static inline void do_freebsd_arch_print_sysarch(
7373
TARGET_ABI_FMT_lx ")", name->name, (int)arg1, arg2, arg3, arg4);
7474
}
7575

76-
#endif /*! BSD_USER_ARCH_SYSARCH_H_ */
76+
#endif /* TARGET_ARCH_SYSARCH_H */

hw/i386/e820_memory_layout.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
* SPDX-License-Identifier: MIT
77
*/
88

9-
#ifndef HW_I386_E820_H
10-
#define HW_I386_E820_H
9+
#ifndef HW_I386_E820_MEMORY_LAYOUT_H
10+
#define HW_I386_E820_MEMORY_LAYOUT_H
1111

1212
/* e820 types */
1313
#define E820_RAM 1

0 commit comments

Comments
 (0)