From 313d7034d03abef54ff75e5b0e5a6dd5c3fc5094 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E9=82=A3=E5=87=A0?= <2078634206@qq.com> Date: Sat, 22 Aug 2026 01:02:56 +0800 Subject: [PATCH] tkernel: onionhook: declare data_release in hook_frame.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Building kernel/tkernel/onionhook/ with W=1 reports 'missing prototype for data_release' because the only declaration of this exported symbol lives in the aegis private header kernel/tkernel/aegis/list.h, not in the hook_frame.h header that owns the rest of the onionhook interface. Declare data_release() next to the other onionhook exports in include/linux/hook_frame.h and add the missing SPDX identifier plus the include the new declaration depends on. Upstream status: downstream-only Signed-off-by: 陈那几 <2078634206@qq.com> --- include/linux/hook_frame.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/linux/hook_frame.h b/include/linux/hook_frame.h index a5c4ffd972cb..d1c30afd0d56 100644 --- a/include/linux/hook_frame.h +++ b/include/linux/hook_frame.h @@ -1,9 +1,11 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __HOOK_FRAME_H__ #define __HOOK_FRAME_H__ #include #include #include +#include #define SYSCTL_SET_MAGIC (0x5a5a5a5aUL << 32) @@ -45,6 +47,8 @@ extern void (*get_exit_info_func)(struct task_struct *tsk, long code); extern long hookinfo_nr(void); +extern void data_release(struct kref *ref); + extern void sock_hook_check(void *sk); extern void recvfrom_hook_check(struct socket *sock, int fd, struct sockaddr_storage *address, int err); extern void sendto_hook_check(struct socket *sock, int fd, struct sockaddr_storage *address, int err); -- Gitee