Add the KSU_COMPAT_GET_CRED_RCU flag to the Makefile to support the compatibility feature

This commit is contained in:
ShirkNeko
2025-04-11 20:51:24 +08:00
parent d240c1035f
commit 3923007430

View File

@@ -141,6 +141,7 @@ ccflags-y += -DSAMSUNG_UH_DRIVER_EXIST
endif endif
ccflags-y += -DKSU_UMOUNT ccflags-y += -DKSU_UMOUNT
ccflags-y += -DKSU_COMPAT_GET_CRED_RCU
# Add the get_cred_rcu function to cred.h if not already present # 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) ifneq ($(shell grep -Eq "^static inline const struct cred \*get_cred_rcu" $(srctree)/include/linux/cred.h; echo $$?),0)