From 13fa1232b7f00309a2e3d80db12379ffd2cac322 Mon Sep 17 00:00:00 2001 From: Qiang Wei Date: Thu, 6 Apr 2023 09:15:15 +0800 Subject: [PATCH] Align kernel version judgement In header file __close_fd of qtfs_kallsyms is defined under condition: LINUX_VERSION_CODE <= KERNEL_VERSION(5, 10, 0) But it is used under condition: LINUX_VERSION_CODE < KERNEL_VERSION(5, 11, 0) It causes build error in linux kernel 5.10.x x>0. Signed-off-by: Qiang Wei --- qtfs/include/symbol_wrapper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qtfs/include/symbol_wrapper.h b/qtfs/include/symbol_wrapper.h index 14e707f..9e3c251 100644 --- a/qtfs/include/symbol_wrapper.h +++ b/qtfs/include/symbol_wrapper.h @@ -11,7 +11,7 @@ struct qtfs_kallsyms { unsigned long **sys_call_table; char *(*d_absolute_path)(const struct path *, char *, int); -#if (LINUX_VERSION_CODE <= KERNEL_VERSION(5, 10, 0)) +#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 11, 0)) int (*__close_fd)(struct files_struct *, int); #endif struct task_struct *(*find_get_task_by_vpid)(pid_t nr); -- Gitee