format files to comply with kernel coding standards, rename .config to config
This commit is contained in:
24
07/main.c
24
07/main.c
@ -1,3 +1,4 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
#include <linux/init.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/fs.h>
|
||||
@ -15,8 +16,8 @@ int init_foo(void);
|
||||
|
||||
struct dentry *module_dir;
|
||||
|
||||
static int __init fortytwo_debug_init(void)
|
||||
{
|
||||
static int __init fortytwo_debug_init(void)
|
||||
{
|
||||
int err = 0;
|
||||
|
||||
pr_info("creating fortytwo debug dir\n");
|
||||
@ -27,18 +28,19 @@ static int __init fortytwo_debug_init(void)
|
||||
debugfs_create_u64("jiffies", 0444, module_dir, (uint64_t *)(&jiffies));
|
||||
|
||||
err = init_id();
|
||||
if (err) return err;
|
||||
if (err)
|
||||
return err;
|
||||
err = init_foo();
|
||||
if(err) return err;
|
||||
if (err)
|
||||
return err;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
static void __exit fortytwo_debug_exit(void)
|
||||
{
|
||||
pr_info("removing forytwo debug dir\n");
|
||||
static void __exit fortytwo_debug_exit(void)
|
||||
{
|
||||
pr_info("removing forytwo debug dir\n");
|
||||
debugfs_remove(module_dir);
|
||||
}
|
||||
}
|
||||
|
||||
module_init(fortytwo_debug_init);
|
||||
module_init(fortytwo_debug_init);
|
||||
module_exit(fortytwo_debug_exit);
|
||||
|
||||
|
Reference in New Issue
Block a user