Skip to contentSkip to conversation

reset: stm32: Fix compilation error

PATCH In review Patrice Chotard 2 participants 3 messages Apr 28 – May 13

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 reset: stm32: Fix compilation error

The following compilation error occurs when environment variable KBUILD_OUTPUT is not set :

drivers/reset/stm32/stm32-reset-mp21.c:8:10: fatal error: stm32-reset-core.h: No such file or directory

    8 | #include <stm32-reset-core.h>
      |          ^~~~~~~~~~~~~~~~~~~~

As stm32-reset-core.h is located in same directory than stm32-reset-mp21.c, we should use #include "stm32-reset-core.h".

---
 drivers/reset/stm32/stm32-reset-mp21.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/reset/stm32/stm32-reset-mp21.c +1 -1
index 7d169d7582f..0e92b0f5d5d 100644
@@ -5,7 +5,7 @@
  */
 
 #include <dm.h>
-#include <stm32-reset-core.h>
+#include "stm32-reset-core.h"
 #include <stm32mp21_rcc.h>
 #include <dt-bindings/reset/st,stm32mp21-rcc.h>
 

---
base-commit: 4433253ecf2041f9362a763bb6cb79960921ac7e
change-id: 20260428-fix_mp21_reset-b43242279da7

Best regards,

Signature · 1 line
Patrice Chotard <[email protected]>
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Patrice Chotard

The following compilation error occurs when environment variable KBUILD_OUTPUT is not set :

drivers/reset/stm32/stm32-reset-mp21.c:8:10: fatal error: stm32-reset-core.h: No such file or directory

Quoted 8 lines
     8 | #include <stm32-reset-core.h>
       |          ^~~~~~~~~~~~~~~~~~~~

As stm32-reset-core.h is located in same directory than stm32-reset-mp21.c, we should use #include "stm32-reset-core.h".

---

Hi,

Best regards,
Raph

#2 lore raw
Quoted 16 lines · Raphaël Gallais-Pou
Quoted 7 lines · Patrice Chotard

The following compilation error occurs when environment variable KBUILD_OUTPUT is not set :

drivers/reset/stm32/stm32-reset-mp21.c:8:10: fatal error: stm32-reset-core.h: No such file or directory 8 | #include <stm32-reset-core.h>
       |          ^~~~~~~~~~~~~~~~~~~~

Quoted 5 lines

As stm32-reset-core.h is located in same directory than stm32-reset-mp21.c, we should use #include "stm32-reset-core.h".

---

Quoted 7 lines

Hi,

Best regards,
Raph

Applied to u-boot-stm32/master

Thanks
Patrice