diff mbox series

[v1,01/10] gdbstub/internals.h: clean up include guard

Message ID 20221216112206.3171578-2-alex.bennee@linaro.org
State Superseded
Headers show
Series split user and system code in gdbstub | expand

Commit Message

Alex Bennée Dec. 16, 2022, 11:21 a.m. UTC
Use something more specific to avoid name clashes.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
 gdbstub/internals.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Richard Henderson Dec. 16, 2022, 7:17 p.m. UTC | #1
On 12/16/22 03:21, Alex Bennée wrote:
> Use something more specific to avoid name clashes.
> 
> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>


Reviewed-by: Richard Henderson <richard.henderson@linaro.org>


r~


> ---
>   gdbstub/internals.h | 6 +++---
>   1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/gdbstub/internals.h b/gdbstub/internals.h
> index eabb0341d1..b444f24ef5 100644
> --- a/gdbstub/internals.h
> +++ b/gdbstub/internals.h
> @@ -6,12 +6,12 @@
>    * SPDX-License-Identifier: GPL-2.0-or-later
>    */
>   
> -#ifndef _INTERNALS_H_
> -#define _INTERNALS_H_
> +#ifndef GDBSTUB_INTERNALS_H
> +#define GDBSTUB_INTERNALS_H
>   
>   bool gdb_supports_guest_debug(void);
>   int gdb_breakpoint_insert(CPUState *cs, int type, hwaddr addr, hwaddr len);
>   int gdb_breakpoint_remove(CPUState *cs, int type, hwaddr addr, hwaddr len);
>   void gdb_breakpoint_remove_all(CPUState *cs);
>   
> -#endif /* _INTERNALS_H_ */
> +#endif /* GDBSTUB_INTERNALS_H */
diff mbox series

Patch

diff --git a/gdbstub/internals.h b/gdbstub/internals.h
index eabb0341d1..b444f24ef5 100644
--- a/gdbstub/internals.h
+++ b/gdbstub/internals.h
@@ -6,12 +6,12 @@ 
  * SPDX-License-Identifier: GPL-2.0-or-later
  */
 
-#ifndef _INTERNALS_H_
-#define _INTERNALS_H_
+#ifndef GDBSTUB_INTERNALS_H
+#define GDBSTUB_INTERNALS_H
 
 bool gdb_supports_guest_debug(void);
 int gdb_breakpoint_insert(CPUState *cs, int type, hwaddr addr, hwaddr len);
 int gdb_breakpoint_remove(CPUState *cs, int type, hwaddr addr, hwaddr len);
 void gdb_breakpoint_remove_all(CPUState *cs);
 
-#endif /* _INTERNALS_H_ */
+#endif /* GDBSTUB_INTERNALS_H */