diff --git a/kernel/core_hook.c b/kernel/core_hook.c index 9a657028..ba528a77 100644 --- a/kernel/core_hook.c +++ b/kernel/core_hook.c @@ -310,6 +310,7 @@ int ksu_handle_rename(struct dentry *old_dentry, struct dentry *new_dentry) return 0; } +#ifdef CONFIG_EXT4_FS static void nuke_ext4_sysfs() { struct path path; int err = kern_path("/data/adb/modules", 0, &path); @@ -329,6 +330,9 @@ static void nuke_ext4_sysfs() { ext4_unregister_sysfs(sb); path_put(&path); } +#else +static inline void nuke_ext4_sysfs() { } +#endif int ksu_handle_prctl(int option, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5)