From 64908583e93ade932dc21206e362d1a9c8a0ae82 Mon Sep 17 00:00:00 2001 From: weishu Date: Thu, 21 Mar 2024 11:32:30 +0800 Subject: [PATCH] kernel: Fix compile warning --- kernel/core_hook.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/core_hook.c b/kernel/core_hook.c index 8ccb7ee5..71fe1983 100644 --- a/kernel/core_hook.c +++ b/kernel/core_hook.c @@ -726,6 +726,7 @@ static int ksu_task_fix_setuid(struct cred *new, const struct cred *old, return ksu_handle_setuid(new, old); } +#ifndef MODULE static struct security_hook_list ksu_hooks[] = { LSM_HOOK_INIT(task_prctl, ksu_task_prctl), LSM_HOOK_INIT(inode_rename, ksu_inode_rename), @@ -735,7 +736,6 @@ static struct security_hook_list ksu_hooks[] = { #endif }; -#ifndef MODULE void __init ksu_lsm_hook_init(void) { #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)