From 986a706f2507b3a42d49006b215ce34691b8d7e0 Mon Sep 17 00:00:00 2001 From: ShirkNeko <109797057+ShirkNeko@users.noreply.github.com> Date: Fri, 16 May 2025 11:32:44 +0800 Subject: [PATCH] Remove checks on atomic functions to simplify the Makefile --- kernel/Makefile | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/kernel/Makefile b/kernel/Makefile index 0206cec4..3c85245f 100644 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -80,16 +80,6 @@ else $(info -- KPM is disabled) endif -# 检查原子函数 -ifeq ($(shell grep -q "atomic_inc_not_zero" $(srctree)/kernel/cred.c; echo $$?),0) -ATOMIC_INC_FUNC = atomic_inc_not_zero -else ifeq ($(shell grep -q "atomic_long_inc_not_zero" $(srctree)/kernel/cred.c; echo $$?),0) -ATOMIC_INC_FUNC = atomic_long_inc_not_zero -else -$(info -- SukiSU compat: Neither atomic_inc_not_zero nor atomic_long_inc_not_zero found in kernel/cred.c) -endif -$(info -- SukiSU compat: Using $(ATOMIC_INC_FUNC) in get_cred_rcu patch.) - # 写入签名 ccflags-y += -DEXPECTED_SIZE=$(KSU_EXPECTED_SIZE) ccflags-y += -DEXPECTED_HASH=\"$(KSU_EXPECTED_HASH)\"