diff options
author | Jeremy Bettis <jbettis@google.com> | 2022-11-21 16:48:59 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-11-22 20:29:51 +0000 |
commit | d4aa274081c99f3443886977f004721670cc3b35 (patch) | |
tree | f811de702a2d653530c072099f3f79b524939df0 /core/cortex-m | |
parent | 4ba3538ac420d388a2fe81f70b8ad90a88a7eb74 (diff) | |
download | chrome-ec-d4aa274081c99f3443886977f004721670cc3b35.tar.gz |
core: Sort header files
Sort all headers in core with the clang-format rules used by the
zephyr project.
BRANCH=None
BUG=b:247100970
TEST=zmake build -a
TEST=./twister --clobber -v -i
TEST=make -j$(nproc) buildall_only runtests
TEST=zmake compare-builds
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Change-Id: Ie1dafb879dca3fcb9254025da8a70b5cd169481d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4047095
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Auto-Submit: Jeremy Bettis <jbettis@chromium.org>
Tested-by: Jeremy Bettis <jbettis@chromium.org>
Commit-Queue: Al Semjonovs <asemjonovs@google.com>
Reviewed-by: Al Semjonovs <asemjonovs@google.com>
Diffstat (limited to 'core/cortex-m')
-rw-r--r-- | core/cortex-m/cpu.h | 3 | ||||
-rw-r--r-- | core/cortex-m/llsr.c | 5 | ||||
-rw-r--r-- | core/cortex-m/mpu.c | 2 | ||||
-rw-r--r-- | core/cortex-m/panic.c | 2 | ||||
-rw-r--r-- | core/cortex-m/vecttable.c | 1 |
5 files changed, 8 insertions, 5 deletions
diff --git a/core/cortex-m/cpu.h b/core/cortex-m/cpu.h index 8c284d6132..4a36d63dda 100644 --- a/core/cortex-m/cpu.h +++ b/core/cortex-m/cpu.h @@ -8,10 +8,11 @@ #ifndef __CROS_EC_CPU_H #define __CROS_EC_CPU_H -#include <stdint.h> #include "compile_time_macros.h" #include "debug.h" +#include <stdint.h> + /* Macro to access 32-bit registers */ #define CPUREG(addr) (*(volatile uint32_t *)(addr)) diff --git a/core/cortex-m/llsr.c b/core/cortex-m/llsr.c index 0ab920f628..933382034b 100644 --- a/core/cortex-m/llsr.c +++ b/core/cortex-m/llsr.c @@ -5,10 +5,11 @@ /* Enable the use of right shift for uint64_t. */ -#include <console.h> -#include <compile_time_macros.h> #include <stdint.h> +#include <compile_time_macros.h> +#include <console.h> + union words { uint64_t u64; uint32_t w[2]; diff --git a/core/cortex-m/mpu.c b/core/cortex-m/mpu.c index db03936dfa..953cbb7393 100644 --- a/core/cortex-m/mpu.c +++ b/core/cortex-m/mpu.c @@ -6,9 +6,9 @@ /* MPU module for Chrome EC */ #include "builtin/assert.h" -#include "mpu.h" #include "console.h" #include "cpu.h" +#include "mpu.h" #include "registers.h" #include "task.h" #include "util.h" diff --git a/core/cortex-m/panic.c b/core/cortex-m/panic.c index 0f803dc8e5..1de8376cfb 100644 --- a/core/cortex-m/panic.c +++ b/core/cortex-m/panic.c @@ -7,8 +7,8 @@ #include "console.h" #include "cpu.h" #include "host_command.h" -#include "panic.h" #include "panic-internal.h" +#include "panic.h" #include "printf.h" #include "system.h" #include "task.h" diff --git a/core/cortex-m/vecttable.c b/core/cortex-m/vecttable.c index 037bc28c36..aea4bf3dc7 100644 --- a/core/cortex-m/vecttable.c +++ b/core/cortex-m/vecttable.c @@ -9,6 +9,7 @@ #define ___INIT #include "compiler.h" #include "config.h" + #include <task.h> #endif |