[JFFS2] Fix compr_rubin.c build after include file elimination.

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Thu Apr 26 02:59:01 EDT 2007


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=f6449f4ece2bf283500bda73edcbea82f2cb3a1b
Commit:     f6449f4ece2bf283500bda73edcbea82f2cb3a1b
Parent:     61c4b23770d1b0cef7c06a23378ab544eb0c64b4
Author:     Andrew Morton <akpm at linux-foundation.org>
AuthorDate: Thu Apr 26 07:27:04 2007 +0100
Committer:  David Woodhouse <dwmw2 at infradead.org>
CommitDate: Thu Apr 26 07:27:04 2007 +0100

    [JFFS2] Fix compr_rubin.c build after include file elimination.
    
    It seems to be silly season lately.
    
    (Oops, test builds are more useful if the file in question is actually
    configured on. dwmw2).
    
    Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
    Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
 fs/jffs2/compr_rubin.c |   19 +++++++++----------
 1 files changed, 9 insertions(+), 10 deletions(-)

diff --git a/fs/jffs2/compr_rubin.c b/fs/jffs2/compr_rubin.c
index 1f3a441..ea0431e 100644
--- a/fs/jffs2/compr_rubin.c
+++ b/fs/jffs2/compr_rubin.c
@@ -21,16 +21,6 @@
 #define LOWER_BITS_RUBIN   ((((long) 1)<<(RUBIN_REG_SIZE-1))-1)
 
 
-struct rubin_state {
-	unsigned long p;
-	unsigned long q;
-	unsigned long rec_q;
-	long bit_number;
-	struct pushpull pp;
-	int bit_divider;
-	int bits[8];
-};
-
 #define BIT_DIVIDER_MIPS 1043
 static int bits_mips[8] = { 277,249,290,267,229,341,212,241}; /* mips32 */
 
@@ -43,6 +33,15 @@ struct pushpull {
 	unsigned int reserve;
 };
 
+struct rubin_state {
+	unsigned long p;
+	unsigned long q;
+	unsigned long rec_q;
+	long bit_number;
+	struct pushpull pp;
+	int bit_divider;
+	int bits[8];
+};
 
 static inline void init_pushpull(struct pushpull *pp, char *buf, unsigned buflen, unsigned ofs, unsigned reserve)
 {



More information about the linux-mtd-cvs mailing list