[PATCH] DEBUG redefined in drivers/mtd/devices/docecc.c
Fix namespace clash: drivers/mtd/devices/docecc.c:43:1: warning: "DEBUG" redefined In file included from drivers/mtd/devices/docecc.c:40: include/linux/mtd/mtd.h:219:1: warning: this is the location of the previous definition Signed-off-by: Grant Coady <gcoady@gmail.com> Cc: David Woodhouse <dwmw2@infradead.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Родитель
e1e70a262d
Коммит
66c81f0059
|
@ -40,7 +40,7 @@
|
||||||
#include <linux/mtd/mtd.h>
|
#include <linux/mtd/mtd.h>
|
||||||
#include <linux/mtd/doc2000.h>
|
#include <linux/mtd/doc2000.h>
|
||||||
|
|
||||||
#define DEBUG 0
|
#define DEBUG_ECC 0
|
||||||
/* need to undef it (from asm/termbits.h) */
|
/* need to undef it (from asm/termbits.h) */
|
||||||
#undef B0
|
#undef B0
|
||||||
|
|
||||||
|
@ -249,7 +249,7 @@ eras_dec_rs(dtype Alpha_to[NN + 1], dtype Index_of[NN + 1],
|
||||||
lambda[j] ^= Alpha_to[modnn(u + tmp)];
|
lambda[j] ^= Alpha_to[modnn(u + tmp)];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#if DEBUG >= 1
|
#if DEBUG_ECC >= 1
|
||||||
/* Test code that verifies the erasure locator polynomial just constructed
|
/* Test code that verifies the erasure locator polynomial just constructed
|
||||||
Needed only for decoder debugging. */
|
Needed only for decoder debugging. */
|
||||||
|
|
||||||
|
@ -276,7 +276,7 @@ eras_dec_rs(dtype Alpha_to[NN + 1], dtype Index_of[NN + 1],
|
||||||
count = -1;
|
count = -1;
|
||||||
goto finish;
|
goto finish;
|
||||||
}
|
}
|
||||||
#if DEBUG >= 2
|
#if DEBUG_ECC >= 2
|
||||||
printf("\n Erasure positions as determined by roots of Eras Loc Poly:\n");
|
printf("\n Erasure positions as determined by roots of Eras Loc Poly:\n");
|
||||||
for (i = 0; i < count; i++)
|
for (i = 0; i < count; i++)
|
||||||
printf("%d ", loc[i]);
|
printf("%d ", loc[i]);
|
||||||
|
@ -409,7 +409,7 @@ eras_dec_rs(dtype Alpha_to[NN + 1], dtype Index_of[NN + 1],
|
||||||
den ^= Alpha_to[modnn(lambda[i+1] + i * root[j])];
|
den ^= Alpha_to[modnn(lambda[i+1] + i * root[j])];
|
||||||
}
|
}
|
||||||
if (den == 0) {
|
if (den == 0) {
|
||||||
#if DEBUG >= 1
|
#if DEBUG_ECC >= 1
|
||||||
printf("\n ERROR: denominator = 0\n");
|
printf("\n ERROR: denominator = 0\n");
|
||||||
#endif
|
#endif
|
||||||
/* Convert to dual- basis */
|
/* Convert to dual- basis */
|
||||||
|
|
Загрузка…
Ссылка в новой задаче