[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)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:23:08 +0000 (20:23 +0300)
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);