kernel: Unify and simplify constructor support #145558
Annotations
1 error, 1 warning, and 2 notices
Run Compliance Tests
Process completed with exit code 1.
|
check-warns:
ClangFormat.txt#L1
See https://docs.zephyrproject.org/latest/contribute/guidelines.html#clang-format for more details.
You may want to run clang-format on this change:
- void (**fn)();
-
- for (fn = __zephyr_init_array_start; fn != __zephyr_init_array_end; fn++)
+ void (**fn)();
+
+ for (fn = __zephyr_init_array_start; fn != __zephyr_init_array_end; fn++) {
(**fn)();
+ }
File:kernel/init.c
Line:417
You may want to run clang-format on this change:
- zassert_equal(constructor_number, 3,
- "constructor test failed: constructor missing");
+ zassert_equal(constructor_number, 3, "constructor test failed: constructor missing");
File:tests/kernel/common/src/constructor.c
Line:43
|
Run Compliance Tests:
kernel/init.c#L417
kernel/init.c:417
- void (**fn)();
-
- for (fn = __zephyr_init_array_start; fn != __zephyr_init_array_end; fn++)
+ void (**fn)();
+
+ for (fn = __zephyr_init_array_start; fn != __zephyr_init_array_end; fn++) {
(**fn)();
+ }
|
Run Compliance Tests:
tests/kernel/common/src/constructor.c#L43
tests/kernel/common/src/constructor.c:43
- zassert_equal(constructor_number, 3,
- "constructor test failed: constructor missing");
+ zassert_equal(constructor_number, 3, "constructor test failed: constructor missing");
|
Loading