From 04f2b537544c429c755cb2c581a362d36a322a66 Mon Sep 17 00:00:00 2001 From: ShirkNeko <109797057+ShirkNeko@users.noreply.github.com> Date: Fri, 11 Apr 2025 23:40:30 +0800 Subject: [PATCH] Add the definition of the get_cred_rcu function to the Makefile to support SukiSU compatibility --- kernel/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/Makefile b/kernel/Makefile index 49eca2d5..ad71b24b 100644 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -146,7 +146,7 @@ ccflags-y += -DKSU_COMPAT_GET_CRED_RCU # Add the get_cred_rcu function to cred.h if not already present ifneq ($(shell grep -Eq "^static inline const struct cred \*get_cred_rcu" $(srctree)/include/linux/cred.h; echo $$?),0) $(info -- SukiSU compat: 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\ +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\ if (!cred)\n\t\t\