[sw] Make sure all attribute macros are on their own line
Signed-off-by: Miguel Young de la Sota <mcyoung@google.com>
diff --git a/sw/device/silicon_creator/lib/shutdown.c b/sw/device/silicon_creator/lib/shutdown.c
index 89a36a4..81496da 100644
--- a/sw/device/silicon_creator/lib/shutdown.c
+++ b/sw/device/silicon_creator/lib/shutdown.c
@@ -51,7 +51,8 @@
void unmocked_##name_
#else
#define SHUTDOWN_FUNC(modifiers_, name_) \
- static OT_ALWAYS_INLINE modifiers_ void name_
+ OT_ALWAYS_INLINE \
+ static modifiers_ void name_
#endif
// Convert the alert class to an index.
@@ -224,8 +225,9 @@
*
* This function must be inlined because it is called from `shutdown_finalize`.
*/
-static OT_ALWAYS_INLINE uint32_t
-shutdown_redact_inline(rom_error_t reason, shutdown_error_redact_t severity) {
+OT_ALWAYS_INLINE
+static uint32_t shutdown_redact_inline(rom_error_t reason,
+ shutdown_error_redact_t severity) {
uint32_t redacted = (uint32_t)reason;
if (reason == kErrorOk) {
return 0;
@@ -256,8 +258,9 @@
*
* This function must be inlined because it is called from `shutdown_finalize`.
*/
-static OT_ALWAYS_INLINE shutdown_error_redact_t
-shutdown_redact_policy_inline(uint32_t raw_state) {
+OT_ALWAYS_INLINE
+static shutdown_error_redact_t shutdown_redact_policy_inline(
+ uint32_t raw_state) {
switch (raw_state) {
case LC_CTRL_LC_STATE_STATE_VALUE_TEST_UNLOCKED0:
case LC_CTRL_LC_STATE_STATE_VALUE_TEST_UNLOCKED1:
@@ -328,8 +331,8 @@
* @param prefix Prefix encoded as a 32-bit value.
* @param val Integer to print.
*/
-static OT_ALWAYS_INLINE void shutdown_print(shutdown_log_prefix_t prefix,
- uint32_t val) {
+OT_ALWAYS_INLINE
+static void shutdown_print(shutdown_log_prefix_t prefix, uint32_t val) {
// Print the 4 character `prefix`.
abs_mmio_write32(kUartBase + UART_WDATA_REG_OFFSET, prefix);
abs_mmio_write32(kUartBase + UART_WDATA_REG_OFFSET, prefix >> 8);