diff --git a/include/linux/platform_data/wkup_m3.h b/include/linux/platform_data/wkup_m3.h
index 178bcf619..b00cf4f75 100644
--- a/include/linux/platform_data/wkup_m3.h
+++ b/include/linux/platform_data/wkup_m3.h
@@ -13,8 +13,11 @@
 #ifndef _LINUX_PLATFORM_DATA_WKUP_M3_H
 #define _LINUX_PLATFORM_DATA_WKUP_M3_H
 
+#if defined(CONFIG_WKUP_M3_RPROC)
 void wkup_m3_set_rtc_only_mode(void);
-
+#else
+#define wkup_m3_set_rtc_only_mode()
+#endif
 struct wkup_m3_platform_data {
 	const char *reset_name;
 
diff --git a/include/linux/wkup_m3.h b/include/linux/wkup_m3.h
index eca9e62fa..e13ffe2be 100644
--- a/include/linux/wkup_m3.h
+++ b/include/linux/wkup_m3.h
@@ -63,9 +63,9 @@ void wkup_m3_set_cmd(struct wkup_m3_ipc_regs *ipc_regs);
 
 static inline int wkup_m3_prepare(void) { return -EINVAL; }
 static inline
-unsigned long wkup_m3_copy_aux_data(void *data, int sz) { return -1; }
+unsigned long wkup_m3_copy_aux_data(const void *data, int sz) { return -1; }
 static inline void wkup_m3_set_ops(struct wkup_m3_ops *ops) { }
-static inline int wkup_m3_ping(void) { return -EINVAL }
+static inline int wkup_m3_ping(void) { return -EINVAL; }
 static inline void wkup_m3_wake_src(struct wkup_m3_wakeup_src *wakeup_src) { }
 static inline int wkup_m3_pm_status(void) { return -1; }
 static inline int wkup_m3_fw_version_read(void) { return -1; }
