[PATCH] openrisc: fix include file protection
Stafford Horne
shorne at gmail.com
Wed Sep 3 06:23:35 PDT 2025
On Wed, Sep 03, 2025 at 02:02:28PM +0200, Sascha Hauer wrote:
> Fixes:
>
> arch/openrisc/include/asm/common.h:3: error: header guard '_ASM_COMMON_H' followed by '#define' of a different macro [-Werror=header-guard]
>
> Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
Thats a good check to have.
Reviewed-by: Stafford Horne <shorne at gmail.com>
> ---
> arch/openrisc/include/asm/common.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/openrisc/include/asm/common.h b/arch/openrisc/include/asm/common.h
> index 06bb4824a2..320037de32 100644
> --- a/arch/openrisc/include/asm/common.h
> +++ b/arch/openrisc/include/asm/common.h
> @@ -1,6 +1,6 @@
> /* SPDX-License-Identifier: GPL-2.0-only */
>
> -#ifndef _ASM_COMMON_H
> +#ifndef __ASM_COMMON_H
> #define __ASM_COMMON_H
>
> -#endif /* _ASM_COMMON_H */
> +#endif /* __ASM_COMMON_H */
> --
> 2.47.2
>
>
More information about the barebox
mailing list