diff --git a/misc-modules/jit.c b/misc-modules/jit.c index b93d6d6..406b427 100644 --- a/misc-modules/jit.c +++ b/misc-modules/jit.c @@ -26,6 +26,7 @@ #include #include #include +#include #include diff --git a/misc-modules/seq.c b/misc-modules/seq.c index 59026a5..3416ead 100644 --- a/misc-modules/seq.c +++ b/misc-modules/seq.c @@ -16,6 +16,8 @@ MODULE_AUTHOR("Jonathan Corbet"); MODULE_LICENSE("Dual BSD/GPL"); +/* Global proc entry holder */ +struct proc_dir_entry *entry; /* * The sequence iterator functions. The position as seen by the @@ -92,17 +94,14 @@ static struct file_operations ct_file_ops = { static int ct_init(void) { - struct proc_dir_entry *entry; - entry = create_proc_entry("sequence", 0, NULL); - if (entry) - entry->proc_fops = &ct_file_ops; + entry = proc_create("sequence", 0, NULL, &ct_file_ops); return 0; } static void ct_exit(void) { - remove_proc_entry("sequence", NULL); + proc_remove(entry); } module_init(ct_init); diff --git a/misc-progs/setlevel.c b/misc-progs/setlevel.c index 90f1cb7..05d9e08 100644 --- a/misc-progs/setlevel.c +++ b/misc-progs/setlevel.c @@ -22,6 +22,8 @@ #include #include #include +#include +#include /* A script to change the console log level. It takes as a command line argument an integer between 1 and 8 inclusive. Higher numbers