summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Wilczynski <m.wilczynski@samsung.com>2024-10-28 10:21:17 +0100
committerSeung-Woo Kim <sw0312.kim@samsung.com>2024-10-30 04:07:25 +0000
commit86481d30cd411dc9eb8c7470e38a2b7a1bdde20d (patch)
treef7020b0d1053d0dca0d8d6d9785482df17cc78b2
parent2aeb7e28f1ea16b84b46fa881a5ebdf279895512 (diff)
downloadlinux-thead-86481d30cd411dc9eb8c7470e38a2b7a1bdde20d.tar.gz
linux-thead-86481d30cd411dc9eb8c7470e38a2b7a1bdde20d.tar.bz2
linux-thead-86481d30cd411dc9eb8c7470e38a2b7a1bdde20d.zip
watchdog: light_wdt: Fix warningsaccepted/tizen/unified/x/20241031.045857
This fixes following warning: In function 'light_wdt_update_timeout': drivers/watchdog/light_wdt.c:116:51: warning: implicit conversion from 'enum light_aon_wdg_func' to 'enum light_aon_misc_func' [-Wenum-conversion] light_wdt_msg_hdr_fill(&wdt_dev->msg.hdr, LIGHT_AON_WDG_FUNC_TIMEOUTSET); Also, add a 'static' to a static function to suppress other warning. Change-Id: Ia8f4daa37c58beffc8d0bdb8bcef20108cb282ab Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com>
-rw-r--r--drivers/watchdog/light_wdt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/watchdog/light_wdt.c b/drivers/watchdog/light_wdt.c
index d3ba15dd650e..b57314c65228 100644
--- a/drivers/watchdog/light_wdt.c
+++ b/drivers/watchdog/light_wdt.c
@@ -70,7 +70,7 @@ static unsigned int light_wdt_timeout_to_sel(unsigned secs)
return LIGHT_TWDSCALE_MAX;
}
-static void light_wdt_msg_hdr_fill(struct light_aon_rpc_msg_hdr *hdr, enum light_aon_misc_func func)
+static void light_wdt_msg_hdr_fill(struct light_aon_rpc_msg_hdr *hdr, enum light_aon_wdg_func func)
{
hdr->svc = (uint8_t)LIGHT_AON_RPC_SVC_WDG;
hdr->func = (uint8_t)func;
@@ -264,7 +264,7 @@ static ssize_t aon_sys_wdt_store(struct device *dev,
return size;
}
-void light_pm_power_off(void)
+static void light_pm_power_off(void)
{
struct light_wdt_device *wdt_dev = light_power_off_wdt;
struct light_aon_ipc *ipc = wdt_dev->ipc_handle;