kernel: fix -Wstrict-prototypes warnings/errors

* On newer kernel for some reason -Wno-strict-prototypes still does not fix the errors or warnings.
* To fix it, we just need to add void type.

Signed-off-by: rsuntk <rsuntk@yukiprjkt.my.id>
This commit is contained in:
rsuntk
2025-08-28 15:46:22 +07:00
committed by ShirkNeko
parent a670b82bb6
commit 1294bbe853
13 changed files with 41 additions and 41 deletions

View File

@@ -60,10 +60,10 @@ extern int handle_sepolicy(unsigned long arg3, void __user *arg4);
// sucompat.c
static bool ksu_su_compat_enabled = true;
extern void ksu_sucompat_init();
extern void ksu_sucompat_exit();
extern void ksu_sucompat_init(void);
extern void ksu_sucompat_exit(void);
static inline bool is_allow_su()
static inline bool is_allow_su(void)
{
if (is_manager()) {
// we are manager, allow!
@@ -247,7 +247,7 @@ int ksu_handle_rename(struct dentry *old_dentry, struct dentry *new_dentry)
}
#ifdef CONFIG_EXT4_FS
static void nuke_ext4_sysfs()
static void nuke_ext4_sysfs(void)
{
struct path path;
int err = kern_path("/data/adb/modules", 0, &path);
@@ -268,7 +268,7 @@ static void nuke_ext4_sysfs()
path_put(&path);
}
#else
static inline void nuke_ext4_sysfs()
static inline void nuke_ext4_sysfs(void)
{
}
#endif