diff --git a/kernel/Makefile b/kernel/Makefile index 4e377e52..0dfe0138 100644 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -150,6 +150,11 @@ $(info -- KernelSU/compat: new vfs_getattr() found) ccflags-y += -DKSU_HAS_NEW_VFS_GETATTR endif +# Function proc_ops check +ifeq ($(shell grep -q "struct proc_ops " $(srctree)/include/linux/proc_fs.h; echo $$?),0) +ccflags-y += -DKSU_COMPAT_HAS_PROC_OPS +endif + # Custom Signs ifdef KSU_EXPECTED_SIZE ccflags-y += -DEXPECTED_SIZE=$(KSU_EXPECTED_SIZE) @@ -181,8 +186,4 @@ $(info -- You have not integrated susfs in your kernel yet.) $(info -- Read: https://gitlab.com/simonpunk/susfs4ksu) endif -# Function proc_ops check -ifeq ($(shell grep -q "struct proc_ops " $(srctree)/include/linux/proc_fs.h; echo $$?),0) -ccflags-y += -DKSU_COMPAT_HAS_PROC_OPS -endif # Keep a new line here!! Because someone may append config