From faa3727b1ff2f187737654e1e11b793723191091 Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Wed, 27 Nov 2024 09:04:33 +0100 Subject: [PATCH] cpu/cortexm_common: Make cpu.h IWYU clean There is clearly no reason `cpu.h` should `#include `. Also add an export pragma to `cpu_conf.h`, as portable code is expected to include `cpu.h` (which exists across MCU families in RIOT), and not `cpu_conf.h` (which only exists for some MCU families). --- cpu/cortexm_common/include/cpu.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cpu/cortexm_common/include/cpu.h b/cpu/cortexm_common/include/cpu.h index 9749778197..e7abdc67f6 100644 --- a/cpu/cortexm_common/include/cpu.h +++ b/cpu/cortexm_common/include/cpu.h @@ -30,12 +30,10 @@ #ifndef CPU_H #define CPU_H -#include - #include "irq.h" #include "sched.h" #include "thread.h" -#include "cpu_conf.h" +#include "cpu_conf.h" /* IWYU pragma: export */ #ifdef __cplusplus extern "C" {