[RAMEN9610-9418][R10P0][KERNEL]gpu: To avoid CFI failure.
authorYoojin Park <yoojin1.park@samsung.com>
Tue, 27 Nov 2018 08:55:01 +0000 (17:55 +0900)
committerhskang <hs1218.kang@samsung.com>
Thu, 13 Dec 2018 11:41:42 +0000 (20:41 +0900)
CFI is Control Flow Integrity.
CFI will make graph to verify the code-flows.
If code-flows don't match with graph generated, It will make the failure.

Change-Id: Ic04be25e9858e432968b08e0c9203b778a0e20b0
Signed-off-by: Yoojin Park <yoojin1.park@samsung.com>
drivers/gpu/arm/tHEx/r10p0/platform/exynos/gpu_dvfs_governor.c

index a323f7a7b7c524e5b7b88886e2565edf97698de2..422cb79b516c21a63af4ab0bf1c143d9ef7b6e75 100644 (file)
@@ -31,7 +31,7 @@
 #endif /* CONFIG_CPU_THERMAL_IPA */
 
 #ifdef CONFIG_MALI_DVFS
-typedef void (*GET_NEXT_LEVEL)(struct exynos_context *platform, int utilization);
+typedef int (*GET_NEXT_LEVEL)(struct exynos_context *platform, int utilization);
 GET_NEXT_LEVEL gpu_dvfs_get_next_level;
 
 static int gpu_dvfs_governor_default(struct exynos_context *platform, int utilization);