linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [2.6 patch] mtdoops.c: make struct oops_cxt static again
@ 2008-02-13 21:30 Adrian Bunk
  0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2008-02-13 21:30 UTC (permalink / raw)
  To: Richard Purdie, David Woodhouse; +Cc: linux-mtd, linux-kernel

struct oops_cxt needlessly became global.

Signed-off-by: Adrian Bunk <bunk@kernel.org>

---
--- linux-2.6/drivers/mtd/mtdoops.c.old	2008-02-11 23:19:45.000000000 +0200
+++ linux-2.6/drivers/mtd/mtdoops.c	2008-02-11 23:19:55.000000000 +0200
@@ -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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-02-13 21:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-13 21:30 [2.6 patch] mtdoops.c: make struct oops_cxt static again Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).