Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions misc-modules/jit.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <linux/spinlock.h>
#include <linux/interrupt.h>
#include <linux/sched.h>
#include <linux/slab.h>

#include <asm/hardirq.h>

Expand Down
9 changes: 4 additions & 5 deletions misc-modules/seq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 2 additions & 0 deletions misc-progs/setlevel.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <errno.h>
#include <sys/klog.h>

/* A script to change the console log level. It takes as a command
line argument an integer between 1 and 8 inclusive. Higher numbers
Expand Down