mtdoops.c: make struct oops_cxt static again
PATCH 1/1 mtdoops.c: make struct oops_cxt static again
struct oops_cxt needlessly became global.
Signed-off-by Adrian Bunk <[email protected]>
---
drivers/mtd/mtdoops.c renamed from drivers/mtd/mtdoops.c.old +1 -1
@@ -23,31 +23,31 @@#include <linux/kernel.h> #include <linux/module.h> #include <linux/console.h> #include <linux/vmalloc.h> #include <linux/workqueue.h> #include <linux/sched.h> #include <linux/wait.h> #include <linux/delay.h> #include <linux/spinlock.h> #include <linux/interrupt.h> #include <linux/mtd/mtd.h> #define OOPS_PAGE_SIZE 4096 -struct mtdoops_context { +static struct mtdoops_context {int mtd_index;struct work_struct work_erase;struct work_struct work_write;struct mtd_info *mtd;int oops_pages;int nextpage;int nextcount;void *oops_buf;/* writecount and disabling ready are spin lock protected */ spinlock_t writecount_lock;int ready;int writecount; } oops_cxt;