From: Taekki Kim Date: Tue, 27 Nov 2018 12:06:39 +0000 (+0900) Subject: [RAMEN9610-9418][COMMON] soc: samsung: add __nocfi for indirect functions X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4ac3a505676b0f98e17a34c28b5ea07f84946b48;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [RAMEN9610-9418][COMMON] soc: samsung: add __nocfi for indirect functions Change-Id: I521ba2eb7be97ffb5bd606471ff31362df0cb976 Signed-off-by: Taekki Kim --- diff --git a/drivers/soc/samsung/exynos-bcm_dbg.c b/drivers/soc/samsung/exynos-bcm_dbg.c index 77bf61d5af4f..5e571452fe32 100644 --- a/drivers/soc/samsung/exynos-bcm_dbg.c +++ b/drivers/soc/samsung/exynos-bcm_dbg.c @@ -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; diff --git a/include/soc/samsung/exynos-bcm_dbg.h b/include/soc/samsung/exynos-bcm_dbg.h index 8d3e0cb197ba..b2c0f67a9085 100644 --- a/include/soc/samsung/exynos-bcm_dbg.h +++ b/include/soc/samsung/exynos-bcm_dbg.h @@ -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_ */