Skip to content

Commit 64706db

Browse files
committed
kernel: require backporting
Most non-gki kernel builders have to touch their kernel source code anyway so we might as well tell them to backport things to achieve some sort of feature parity. path_umount: discussions: tiann#1464 example: backslashxx/mojito_krenol@2d51422 get_cred_rcu: introduced by tiann#2320 backport examples backslashxx/mojito_krenol@c1df3e5 backslashxx/msm8953-kernel@95903fb Signed-off-by: backslashxx <[email protected]>
1 parent b277778 commit 64706db

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

kernel/Makefile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,12 @@ $(info -- KernelSU Manager signature hash: $(KSU_EXPECTED_HASH))
5656
ccflags-y += -DEXPECTED_SIZE=$(KSU_EXPECTED_SIZE)
5757
ccflags-y += -DEXPECTED_HASH=\"$(KSU_EXPECTED_HASH)\"
5858

59-
ifeq ($(shell grep -q "int path_umount" $(srctree)/fs/namespace.c; echo $$?),0)
60-
ccflags-y += -DKSU_UMOUNT
61-
else
62-
$(info -- Did you know you can backport path_umount to fs/namespace.c from 5.9?)
63-
$(info -- Read: https://kernelsu.org/guide/how-to-integrate-for-non-gki.html#how-to-backport-path-umount)
59+
ifneq ($(shell grep -q "int path_umount" $(srctree)/fs/namespace.c; echo $$?),0)
60+
$(error You must backport path_umount - https://github.com/tiann/KernelSU/pull/1464 )
61+
endif
62+
63+
ifneq ($(shell grep -q "get_cred_rcu" $(srctree)/include/linux/cred.h; echo $$?),0)
64+
$(error You must backport get_cred_rcu - https://github.com/tiann/KernelSU/pull/2320#issuecomment-2564232958 )
6465
endif
6566

6667
ccflags-y += -Wno-implicit-function-declaration -Wno-strict-prototypes -Wno-int-conversion -Wno-gcc-compat

0 commit comments

Comments
 (0)