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/kernel.h>
#include <linux/init.h>
#include <linux/module.h>
@ -27,18 +28,18 @@ static const struct proc_ops proc_fops = {
.proc_release = single_release,
};
static int __init mounts_init(void)
{
static int __init mounts_init(void)
{
proc_file = proc_create("mymounts", 0444, 0, &proc_fops);
if(IS_ERR(proc_file)) return PTR_ERR(proc_file);
if (IS_ERR(proc_file))
return PTR_ERR(proc_file);
return 0;
}
}
static void __exit mounts_exit(void)
{
static void __exit mounts_exit(void)
{
proc_remove(proc_file);
}
}
module_init(mounts_init);
module_init(mounts_init);
module_exit(mounts_exit);