From: Yoojin Park Date: Tue, 27 Nov 2018 08:55:01 +0000 (+0900) Subject: [RAMEN9610-9418][R10P0][KERNEL]gpu: To avoid CFI failure. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4545d17286e6e8de1505a595564d28f28021dd5e;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [RAMEN9610-9418][R10P0][KERNEL]gpu: To avoid CFI failure. 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 --- diff --git a/drivers/gpu/arm/tHEx/r10p0/platform/exynos/gpu_dvfs_governor.c b/drivers/gpu/arm/tHEx/r10p0/platform/exynos/gpu_dvfs_governor.c index a323f7a7b7c5..422cb79b516c 100644 --- a/drivers/gpu/arm/tHEx/r10p0/platform/exynos/gpu_dvfs_governor.c +++ b/drivers/gpu/arm/tHEx/r10p0/platform/exynos/gpu_dvfs_governor.c @@ -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);