From 6988b3d506169548f7998f11acb20953a625af83 Mon Sep 17 00:00:00 2001 From: ShirkNeko <109797057+ShirkNeko@users.noreply.github.com> Date: Fri, 11 Apr 2025 03:41:56 +0800 Subject: [PATCH] Remove log messages for the get_cred_rcu function and update references to ATOMIC_INC_FUNC in kernel/cred.c. --- kernel/Makefile | 3 --- 1 file changed, 3 deletions(-) diff --git a/kernel/Makefile b/kernel/Makefile index 92b2c40b..a7fca597 100644 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -135,7 +135,6 @@ ATOMIC_INC_FUNC = atomic_long_inc_not_zero endif ifneq ($(shell grep -Eq "^static inline const struct cred \*get_cred_rcu" $(srctree)/include/linux/cred.h; echo $$?),0) -$(info -- SukiSU: adding function 'static inline const struct cred *get_cred_rcu(const struct cred *cred);' to $(srctree)/include/linux/cred.h) GET_CRED_RCU = static inline const struct cred *get_cred_rcu(const struct cred *cred)\n\ {\n\t\ struct cred *nonconst_cred = (struct cred *) cred;\n\t\ @@ -147,8 +146,6 @@ GET_CRED_RCU = static inline const struct cred *get_cred_rcu(const struct cred * return cred;\n\ }\n $(shell grep -qF "$(GET_CRED_RCU)" $(srctree)/include/linux/cred.h || sed -i '/^static inline void put_cred/i $(GET_CRED_RCU)' $(srctree)/include/linux/cred.h) - -$(info -- SukiSU: modifying 'get_task_cred' function in $(srctree)/kernel/cred.c) $(shell sed -i "s/!$(ATOMIC_INC_FUNC)(&((struct cred \*)cred)->usage)/!get_cred_rcu(cred)/g" $(srctree)/kernel/cred.c) endif