Skip to content

Commit 2ccc3ce

Browse files
nordic-krchkartben
authored andcommitted
debug: cpu_load: Add missing static keyword
Local variable for counter device is missing static keyword. Signed-off-by: Krzysztof Chruściński <[email protected]>
1 parent c9645c9 commit 2ccc3ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/debug/cpu_load.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ BUILD_ASSERT(!IS_ENABLED(CONFIG_CPU_LOAD_USE_COUNTER) || DT_HAS_CHOSEN(zephyr_cp
1616
#define CONFIG_CPU_LOAD_LOG_PERIODICALLY 0
1717
#endif
1818

19-
const struct device *counter = COND_CODE_1(CONFIG_CPU_LOAD_USE_COUNTER,
19+
static const struct device *counter = COND_CODE_1(CONFIG_CPU_LOAD_USE_COUNTER,
2020
(DEVICE_DT_GET(DT_CHOSEN(zephyr_cpu_load_counter))), (NULL));
2121
static uint32_t enter_ts;
2222
static uint32_t cyc_start;

0 commit comments

Comments
 (0)