build:fix4.patch

This commit is contained in:
dichgrem
2025-11-13 15:22:29 +08:00
parent e98b1f3f6e
commit ce58044e89

23
patches/fix4.patch Normal file
View File

@@ -0,0 +1,23 @@
--- a/drivers/kernelsu/core_hook.c
+++ b/drivers/kernelsu/core_hook.c
@@ -526,7 +526,6 @@
return 0;
}
-#endif // #ifdef CONFIG_KSU_SUSFS
#endif // KERNEL_VERSION(5, 11, 0)
--- a/KernelSU/kernel/sucompat.c
+++ b/KernelSU/kernel/sucompat.c
@@ -408,3 +408,11 @@
return 0;
}
+
+/* --- SUSFS compatibility wrapper --- */
+int ksu_handle_devpts(struct inode *inode)
+{
+ return __ksu_handle_devpts(inode);
+}
+EXPORT_SYMBOL(ksu_handle_devpts);