From e208634ac37638288afc9f7f8f86b47c17f5bcf0 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 17 Aug 2026 05:17:43 +0200 Subject: [PATCH] bsps/or1k/generic_or1k: Fix the include guard The bsp.h and bsp/generic_or1k.h headers both used LIBBSP_GENERIC_OR1K_H, so whichever was included first suppressed the other. Since bsp.h includes bsp/generic_or1k.h, every file which included bsp.h first saw none of the register definitions. Use the LIBBSP___BSP_H form of the other BSPs for bsp.h and leave the register header with the name it owns. Update #5687. Assisted-by: Claude:claude-opus-5 claude-code Signed-off-by: Sebastian Huber --- bsps/or1k/generic_or1k/include/bsp.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bsps/or1k/generic_or1k/include/bsp.h b/bsps/or1k/generic_or1k/include/bsp.h index 81771eaa7f..0c209a8b83 100644 --- a/bsps/or1k/generic_or1k/include/bsp.h +++ b/bsps/or1k/generic_or1k/include/bsp.h @@ -33,8 +33,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef LIBBSP_GENERIC_OR1K_H -#define LIBBSP_GENERIC_OR1K_H +#ifndef LIBBSP_OR1K_GENERIC_OR1K_BSP_H +#define LIBBSP_OR1K_GENERIC_OR1K_BSP_H /** * @addtogroup RTEMSBSPsOR1K @@ -60,5 +60,5 @@ extern "C" { /** @} */ -#endif /* LIBBSP_GENERIC_OR1K_H */ +#endif /* LIBBSP_OR1K_GENERIC_OR1K_BSP_H */