From 08f87f769b595151be1afeff53e144f543faa614 Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Wed, 06 Dec 2023 09:51:13 +0000 Subject: [PATCH] add dts config --- kernel/drivers/gpu/arm/midgard/mali_kbase_smc.c | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/kernel/drivers/gpu/arm/midgard/mali_kbase_smc.c b/kernel/drivers/gpu/arm/midgard/mali_kbase_smc.c index 43175c8..6c8cf73 100644 --- a/kernel/drivers/gpu/arm/midgard/mali_kbase_smc.c +++ b/kernel/drivers/gpu/arm/midgard/mali_kbase_smc.c @@ -22,6 +22,18 @@ #include <linux/compiler.h> +/* __asmeq is not available on Kernel versions >= 4.20 */ +#ifndef __asmeq +/* + * This is used to ensure the compiler did actually allocate the register we + * asked it for some inline assembly sequences. Apparently we can't trust the + * compiler from one version to another so a bit of paranoia won't hurt. This + * string is meant to be concatenated with the inline asm string and will + * cause compilation to stop on mismatch. (for details, see gcc PR 15089) + */ +#define __asmeq(x, y) ".ifnc " x "," y " ; .err ; .endif\n\t" +#endif + static noinline u64 invoke_smc_fid(u64 function_id, u64 arg0, u64 arg1, u64 arg2) { -- Gitblit v1.6.2