format files to comply with kernel coding standards, rename .config to config

This commit is contained in:
2025-08-13 19:45:11 +02:00
parent 2e4d67d510
commit cf0ab7f1db
10 changed files with 97 additions and 83 deletions

View File

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#include <linux/init.h>
#include <linux/module.h>
#include <linux/printk.h>
@ -5,16 +6,16 @@
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("hello world module");
static int __init hello_init(void)
{
pr_info("Hello world!\n");
return 0;
}
static int __init hello_init(void)
{
pr_info("Hello world!\n");
return 0;
}
static void __exit hello_exit(void)
{
pr_info("Cleaning up module.\n");
}
static void __exit hello_exit(void)
{
pr_info("Cleaning up module.\n");
}
module_init(hello_init);
module_exit(hello_exit);
module_init(hello_init);
module_exit(hello_exit);