Skip to content

Commit b161b82

Browse files
committed
kernel: remove unused kernel_compat
1 parent 5c48b93 commit b161b82

File tree

10 files changed

+3
-12
lines changed

10 files changed

+3
-12
lines changed

kernel/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ kernelsu-objs += supercalls.o
99
kernelsu-objs += feature.o
1010
kernelsu-objs += ksud.o
1111
kernelsu-objs += embed_ksud.o
12-
kernelsu-objs += kernel_compat.o
12+
kernelsu-objs += seccomp_cache.o
1313

1414
kernelsu-objs += selinux/selinux.o
1515
kernelsu-objs += selinux/sepolicy.o

kernel/allowlist.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#include "ksu.h"
1414
#include "klog.h" // IWYU pragma: keep
1515
#include "selinux/selinux.h"
16-
#include "kernel_compat.h"
1716
#include "allowlist.h"
1817
#include "manager.h"
1918

kernel/apk_sign.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616

1717
#include "apk_sign.h"
1818
#include "klog.h" // IWYU pragma: keep
19-
#include "kernel_compat.h"
20-
2119

2220
struct sdesc {
2321
struct shash_desc shash;

kernel/core_hook.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,9 @@
3434
#include "feature.h"
3535
#include "klog.h" // IWYU pragma: keep
3636
#include "ksu.h"
37-
#include "ksud.h"
3837
#include "manager.h"
3938
#include "selinux/selinux.h"
40-
#include "throne_tracker.h"
41-
#include "kernel_compat.h"
39+
#include "seccomp_cache.h"
4240
#include "supercalls.h"
4341
#include "sucompat.h"
4442

kernel/ksud.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
#include "arch.h"
2222
#include "klog.h" // IWYU pragma: keep
2323
#include "ksud.h"
24-
#include "kernel_compat.h"
2524
#include "selinux/selinux.h"
2625
#include "sucompat.h"
2726

kernel/kernel_compat.c renamed to kernel/seccomp_cache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include <linux/filter.h>
77
#include <linux/seccomp.h>
88
#include "klog.h" // IWYU pragma: keep
9-
#include "kernel_compat.h"
9+
#include "seccomp_cache.h"
1010

1111
struct action_cache {
1212
DECLARE_BITMAP(allow_native, SECCOMP_ARCH_NATIVE_NR);
File renamed without changes.

kernel/selinux/sepolicy.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#include "sepolicy.h"
77
#include "../klog.h" // IWYU pragma: keep
88
#include "ss/symtab.h"
9-
#include "../kernel_compat.h" // Add check Huawei Device
109

1110
#define KSU_SUPPORT_ADD_TYPE
1211

kernel/sucompat.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#include "feature.h"
2525
#include "klog.h" // IWYU pragma: keep
2626
#include "ksud.h"
27-
#include "kernel_compat.h"
2827
#include "sucompat.h"
2928
#include "core_hook.h"
3029

kernel/throne_tracker.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#include "ksu.h"
1212
#include "manager.h"
1313
#include "throne_tracker.h"
14-
#include "kernel_compat.h"
1514

1615
uid_t ksu_manager_uid = KSU_INVALID_UID;
1716

0 commit comments

Comments
 (0)