hotfix: checkpatch-related issues

This commit is contained in:
ІО-23 Шмуляр Олег 2024-12-01 20:49:22 +02:00
parent f11d2bc921
commit ace684facc
Signed by: hasslesstech
GPG Key ID: 09745A46126DDD4C
3 changed files with 7 additions and 8 deletions

View File

@ -93,6 +93,7 @@ void destroy_list(void)
curr_tl = next_tl; curr_tl = next_tl;
} }
} }
EXPORT_SYMBOL(destroy_list);
static int __init hello_init(void) static int __init hello_init(void)
{ {
@ -112,14 +113,13 @@ void print_hello(int msg_count)
current_tail->t_after = ktime_get(); current_tail->t_after = ktime_get();
} }
} }
EXPORT_SYMBOL(print_hello);
static void __exit hello_exit(void) static void __exit hello_exit(void)
{ {
destroy_list(); destroy_list();
} }
EXPORT_SYMBOL(print_hello);
EXPORT_SYMBOL(destroy_list);
module_init(hello_init); module_init(hello_init);
module_exit(hello_exit); module_exit(hello_exit);

View File

@ -49,9 +49,8 @@ static int __init hello_init(void)
return -EINVAL; return -EINVAL;
} }
if (msg_count == 0 || msg_count >= 5) { if (msg_count == 0 || msg_count >= 5)
pr_warn("Warning: msg_count = %d (msg_count == 0 or 5 <= msg_count <= 10)\n", msg_count); pr_warn("Warning: msg_count = %d (msg_count == 0 or 5 <= msg_count <= 10)\n", msg_count);
}
print_hello(msg_count); print_hello(msg_count);
return 0; return 0;

View File

@ -1,2 +1,2 @@
void print_hello(int); void print_hello(int msg_count);
void destroy_list(void); void destroy_list(void);