[RAMEN9610-9418][COMMON] soc: samsung: add __nocfi for indirect functions
authorTaekki Kim <taekki.kim@samsung.com>
Tue, 27 Nov 2018 12:06:39 +0000 (21:06 +0900)
committerhskang <hs1218.kang@samsung.com>
Thu, 13 Dec 2018 11:41:44 +0000 (20:41 +0900)
Change-Id: I521ba2eb7be97ffb5bd606471ff31362df0cb976
Signed-off-by: Taekki Kim <taekki.kim@samsung.com>
drivers/soc/samsung/exynos-bcm_dbg.c
include/soc/samsung/exynos-bcm_dbg.h

index 77bf61d5af4f731697678e9356ed5367e6d6f8e9..5e571452fe3232c70bbb097272847945e499b887 100644 (file)
@@ -87,7 +87,7 @@ static int exynos_bcm_is_running(unsigned int run_state)
        return 0;
 }
 
-static int __exynos_bcm_dbg_ipc_send_data(enum exynos_bcm_dbg_ipc_type ipc_type,
+static int __nocfi __exynos_bcm_dbg_ipc_send_data(enum exynos_bcm_dbg_ipc_type ipc_type,
                                struct exynos_bcm_dbg_data *data,
                                unsigned int *cmd)
 {
@@ -3129,7 +3129,7 @@ err_parse_dt:
 }
 
 #ifdef CONFIG_EXYNOS_BCM_DBG_GNR
-static enum hrtimer_restart bcm_monitor(struct hrtimer *hrtimer)
+static enum hrtimer_restart __nocfi bcm_monitor(struct hrtimer *hrtimer)
 {
        unsigned long flags;
        u32 period;
@@ -3207,7 +3207,7 @@ static int bcm_change_memory_common(unsigned long addr, int numpages,
        return ret;
 }
 
-int exynos_bcm_dbg_load_bin(void)
+int __nocfi exynos_bcm_dbg_load_bin(void)
 {
        int ret = 0;
        struct file *fp = NULL;
index 8d3e0cb197baaba70d1b7f635d5182099fd789fc..b2c0f67a9085a0e22c4abe99fe83e2531bd91cd9 100644 (file)
@@ -247,9 +247,9 @@ void exynos_bcm_dbg_stop(unsigned int bcm_stop_owner);
 #endif
 
 #ifdef CONFIG_EXYNOS_BCM_DBG_GNR
-int exynos_bcm_dbg_load_bin(void);
+int __nocfi exynos_bcm_dbg_load_bin(void);
 #else
-#define exynos_bcm_dbg_load_bin(a) do {} while (0)
+#define exynos_bcm_dbg_load_bin() do {} while (0)
 #endif
 
 #endif /* __EXYNOS_BCM_DBG_H_ */