Commit 5d861d92 authored by Randy Dunlap's avatar Randy Dunlap Committed by Linus Torvalds

[PATCH] lkdtm: cleanup headers and module_param/MODULE_PARM_DESC

Fix module_param/sysfs file permission typo.

Clean up MODULE_PARM_DESC strings to avoid fancy (and incorrect)
formatting.

Fix header includes for lkdtm; add some needed ones, remove unused ones;
and fix this gcc warning:
drivers/misc/lkdtm.c:150: warning: 'struct buffer_head' declared inside parameter list
drivers/misc/lkdtm.c:150: warning: its scope is only this definition or declaration, which is probably not what you want
Signed-off-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
Cc: Ankita Garg <ankita@in.ibm.com>
Cc: Vivek Goyal <vgoyal@in.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 86f4f0f9
...@@ -44,12 +44,14 @@ ...@@ -44,12 +44,14 @@
*/ */
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/fs.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/buffer_head.h>
#include <linux/kprobes.h> #include <linux/kprobes.h>
#include <linux/kallsyms.h> #include <linux/list.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/irq.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/hrtimer.h>
#include <scsi/scsi_cmnd.h> #include <scsi/scsi_cmnd.h>
#ifdef CONFIG_IDE #ifdef CONFIG_IDE
...@@ -116,16 +118,16 @@ static enum ctype cptype = NONE; ...@@ -116,16 +118,16 @@ static enum ctype cptype = NONE;
static int count = DEFAULT_COUNT; static int count = DEFAULT_COUNT;
module_param(recur_count, int, 0644); module_param(recur_count, int, 0644);
MODULE_PARM_DESC(recur_count, "Recurcion level for the stack overflow test,\ MODULE_PARM_DESC(recur_count, " Recursion level for the stack overflow test, "\
default is 10"); "default is 10");
module_param(cpoint_name, charp, 0644); module_param(cpoint_name, charp, 0644);
MODULE_PARM_DESC(cpoint_name, "Crash Point, where kernel is to be crashed"); MODULE_PARM_DESC(cpoint_name, " Crash Point, where kernel is to be crashed");
module_param(cpoint_type, charp, 06444); module_param(cpoint_type, charp, 0644);
MODULE_PARM_DESC(cpoint_type, "Crash Point Type, action to be taken on\ MODULE_PARM_DESC(cpoint_type, " Crash Point Type, action to be taken on "\
hitting the crash point"); "hitting the crash point");
module_param(cpoint_count, int, 06444); module_param(cpoint_count, int, 0644);
MODULE_PARM_DESC(cpoint_count, "Crash Point Count, number of times the \ MODULE_PARM_DESC(cpoint_count, " Crash Point Count, number of times the "\
crash point is to be hit to trigger action"); "crash point is to be hit to trigger action");
unsigned int jp_do_irq(unsigned int irq) unsigned int jp_do_irq(unsigned int irq)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment