Remove warning messages 27/307527/1
authorHwankyu Jhun <h.jhun@samsung.com>
Mon, 11 Mar 2024 23:15:24 +0000 (08:15 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Mon, 11 Mar 2024 23:15:24 +0000 (08:15 +0900)
The return type of the callback function of the amd noti should be integer.

Change-Id: Ibf500d61d61c9af92bfd9037834306db4e81b8d7
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/modules/watchdog/src/amd_watchdog.c

index c81bda3f8d843a279196578de3387c2ccd28043a..f7eaff2458b731e913d2a65a719d569a4a98b109 100644 (file)
@@ -428,7 +428,7 @@ static amd_request_cmd_dispatch __dispatch_table[] = {
        },
 };
 
-static void __on_suspend_freezer_state_changed(const char *msg, int arg1,
+static int __on_suspend_freezer_state_changed(const char *msg, int arg1,
                int arg2, void *arg3, bundle *arg4)
 {
        int pid = arg1;
@@ -438,7 +438,7 @@ static void __on_suspend_freezer_state_changed(const char *msg, int arg1,
        ctx = __find_proc_context(pid);
        if (!ctx) {
                _E("Failed to find process(%d) context", pid);
-               return;
+               return AMD_NOTI_CONTINUE;
        }
 
        /* 0: SET_FOREGRD, 1: SET_BACKGRD, */
@@ -453,6 +453,7 @@ static void __on_suspend_freezer_state_changed(const char *msg, int arg1,
        _W("pid(%d), freezer state(%s)", pid, status ? "BACKGRD" : "FOREGRD");
        _watchdog_logger_print("FREEZER", "state(%s), pid(%d), appid(%s)",
                        status ? "BACKGRD" : "FOREGRD", pid, __get_appid(pid));
+       return AMD_NOTI_CONTINUE;
 }
 
 EXPORT int AMD_MOD_INIT(void)