From 112d09abfaebcdfab5b579215609a3fe32ce832e Mon Sep 17 00:00:00 2001 From: Sylvio Alves Date: Fri, 5 Dec 2025 17:12:37 -0300 Subject: [PATCH] soc: espressif: power: register power log module All power.c files in Espressif SoCs depends on un-registered soc log module. When CONFIG_LOG=y and CONFIG_LOG_DEFAULT_LEVEL=4, build fails as LOG_DBG used in those files won't have its proper declaration. Signed-off-by: Sylvio Alves --- soc/espressif/esp32/power.c | 2 +- soc/espressif/esp32c2/power.c | 2 +- soc/espressif/esp32c3/power.c | 2 +- soc/espressif/esp32c6/power.c | 2 +- soc/espressif/esp32h2/power.c | 2 +- soc/espressif/esp32s2/power.c | 2 +- soc/espressif/esp32s3/power.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/soc/espressif/esp32/power.c b/soc/espressif/esp32/power.c index 996ca8964f0b3..48fe924095247 100644 --- a/soc/espressif/esp32/power.c +++ b/soc/espressif/esp32/power.c @@ -11,7 +11,7 @@ #include #include -LOG_MODULE_DECLARE(soc, CONFIG_SOC_LOG_LEVEL); +LOG_MODULE_REGISTER(soc_pm, CONFIG_SOC_LOG_LEVEL); static uint32_t intenable; diff --git a/soc/espressif/esp32c2/power.c b/soc/espressif/esp32c2/power.c index cd8eec723d013..b3e414116ef4d 100644 --- a/soc/espressif/esp32c2/power.c +++ b/soc/espressif/esp32c2/power.c @@ -9,7 +9,7 @@ #include #include -LOG_MODULE_DECLARE(soc, CONFIG_SOC_LOG_LEVEL); +LOG_MODULE_REGISTER(soc_pm, CONFIG_SOC_LOG_LEVEL); /* Invoke Low Power/System Off specific Tasks */ void pm_state_set(enum pm_state state, uint8_t substate_id) diff --git a/soc/espressif/esp32c3/power.c b/soc/espressif/esp32c3/power.c index c11c8b90a0576..77cedcca3b4f3 100644 --- a/soc/espressif/esp32c3/power.c +++ b/soc/espressif/esp32c3/power.c @@ -9,7 +9,7 @@ #include #include -LOG_MODULE_DECLARE(soc, CONFIG_SOC_LOG_LEVEL); +LOG_MODULE_REGISTER(soc_pm, CONFIG_SOC_LOG_LEVEL); /* Invoke Low Power/System Off specific Tasks */ void pm_state_set(enum pm_state state, uint8_t substate_id) diff --git a/soc/espressif/esp32c6/power.c b/soc/espressif/esp32c6/power.c index b3d9782e9fe32..c72888c889482 100644 --- a/soc/espressif/esp32c6/power.c +++ b/soc/espressif/esp32c6/power.c @@ -9,7 +9,7 @@ #include #include -LOG_MODULE_DECLARE(soc, CONFIG_SOC_LOG_LEVEL); +LOG_MODULE_REGISTER(soc_pm, CONFIG_SOC_LOG_LEVEL); /* Invoke Low Power/System Off specific Tasks */ void pm_state_set(enum pm_state state, uint8_t substate_id) diff --git a/soc/espressif/esp32h2/power.c b/soc/espressif/esp32h2/power.c index cd8eec723d013..b3e414116ef4d 100644 --- a/soc/espressif/esp32h2/power.c +++ b/soc/espressif/esp32h2/power.c @@ -9,7 +9,7 @@ #include #include -LOG_MODULE_DECLARE(soc, CONFIG_SOC_LOG_LEVEL); +LOG_MODULE_REGISTER(soc_pm, CONFIG_SOC_LOG_LEVEL); /* Invoke Low Power/System Off specific Tasks */ void pm_state_set(enum pm_state state, uint8_t substate_id) diff --git a/soc/espressif/esp32s2/power.c b/soc/espressif/esp32s2/power.c index 7523aa9079782..993b09291610d 100644 --- a/soc/espressif/esp32s2/power.c +++ b/soc/espressif/esp32s2/power.c @@ -9,7 +9,7 @@ #include #include -LOG_MODULE_DECLARE(soc, CONFIG_SOC_LOG_LEVEL); +LOG_MODULE_REGISTER(soc_pm, CONFIG_SOC_LOG_LEVEL); static uint32_t intenable; diff --git a/soc/espressif/esp32s3/power.c b/soc/espressif/esp32s3/power.c index f292774bc11a2..6756574e29990 100644 --- a/soc/espressif/esp32s3/power.c +++ b/soc/espressif/esp32s3/power.c @@ -9,7 +9,7 @@ #include #include -LOG_MODULE_DECLARE(soc, CONFIG_SOC_LOG_LEVEL); +LOG_MODULE_REGISTER(soc_pm, CONFIG_SOC_LOG_LEVEL); static uint32_t intenable;