Skip to content

Commit d3a09fa

Browse files
committed
build: remove -Wno-implicit-function-declaration
1 parent 08b8b59 commit d3a09fa

File tree

7 files changed

+11
-8
lines changed

7 files changed

+11
-8
lines changed

kernel/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ $(info -- KernelSU Manager signature hash: $(KSU_EXPECTED_HASH))
7171
ccflags-y += -DEXPECTED_SIZE=$(KSU_EXPECTED_SIZE)
7272
ccflags-y += -DEXPECTED_HASH=\"$(KSU_EXPECTED_HASH)\"
7373

74-
ccflags-y += -Wno-implicit-function-declaration -Wno-strict-prototypes -Wno-int-conversion -Wno-gcc-compat -Wno-missing-prototypes
74+
ccflags-y += -Wno-strict-prototypes -Wno-int-conversion -Wno-gcc-compat -Wno-missing-prototypes
7575
ccflags-y += -Wno-declaration-after-statement -Wno-unused-function
7676

7777
all:

kernel/core_hook.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ void escape_to_root(void)
225225
ksu_set_task_tracepoint_flag(t);
226226
}
227227
}
228-
228+
extern void ext4_unregister_sysfs(struct super_block *sb);
229229
void nuke_ext4_sysfs(void)
230230
{
231231
struct path path;
@@ -276,7 +276,7 @@ static bool should_umount(struct path *path)
276276
}
277277
return false;
278278
}
279-
279+
extern int path_umount(struct path *path, int flags);
280280
static void ksu_umount_mnt(struct path *path, int flags)
281281
{
282282
int err = path_umount(path, flags);

kernel/ksu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ int __init kernelsu_init(void)
6161
return 0;
6262
}
6363

64+
extern void ksu_observer_exit(void);
6465
void kernelsu_exit(void)
6566
{
6667
ksu_allowlist_exit();

kernel/manager.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,4 @@ static inline void ksu_invalidate_manager_uid()
3434
}
3535

3636
int ksu_observer_init(void);
37-
void ksu_observer_exit(void);
38-
3937
#endif

kernel/selinux/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ifeq ($(shell grep -q "struct selinux_state " $(srctree)/security/selinux/includ
1010
ccflags-y += -DKSU_COMPAT_HAS_SELINUX_STATE
1111
endif
1212

13-
ccflags-y += -Wno-implicit-function-declaration -Wno-strict-prototypes -Wno-int-conversion
13+
ccflags-y += -Wno-strict-prototypes -Wno-int-conversion
1414
ccflags-y += -Wno-declaration-after-statement -Wno-unused-function
1515
ccflags-y += -I$(srctree)/security/selinux -I$(srctree)/security/selinux/include
1616
ccflags-y += -I$(objtree)/security/selinux -include $(srctree)/include/uapi/asm-generic/errno.h

kernel/selinux/rules.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,11 @@ static int get_object(char *buf, char __user *user_object, size_t buf_sz,
170170

171171
return 0;
172172
}
173-
173+
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 4, 0))
174+
extern int avc_ss_reset(u32 seqno);
175+
#else
176+
extern int avc_ss_reset(struct selinux_avc *avc, u32 seqno);
177+
#endif
174178
// reset avc cache table, otherwise the new rules will not take effect if already denied
175179
static void reset_avc_cache()
176180
{

kernel/throne_tracker.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ struct my_dir_context {
127127
#define FILLDIR_ACTOR_CONTINUE 0
128128
#define FILLDIR_ACTOR_STOP -EINVAL
129129
#endif
130-
130+
extern bool is_manager_apk(char *path);
131131
FILLDIR_RETURN_TYPE my_actor(struct dir_context *ctx, const char *name,
132132
int namelen, loff_t off, u64 ino,
133133
unsigned int d_type)

0 commit comments

Comments
 (0)