Received: from smtp4.pp.htv.fi ([213.243.153.38]) by bombadil.infradead.org with esmtp (Exim 4.68 #1 (Red Hat Linux)) id 1JPPBS-0002I7-Au for linux-mtd@lists.infradead.org; Wed, 13 Feb 2008 21:30:33 +0000 Date: Wed, 13 Feb 2008 23:30:08 +0200 From: Adrian Bunk To: Richard Purdie , David Woodhouse Subject: [2.6 patch] mtdoops.c: make struct oops_cxt static again Message-ID: <20080213213008.GW3383@cs181133002.pp.htv.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , struct oops_cxt needlessly became global. Signed-off-by: Adrian Bunk --- --- 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 #include #include #include #include #include #include #include #include #include #include #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;