[Bugme-new] [Bug 357] New: ext3 compile failure if #define EXT3FS_DEBUG

bugme-daemon at smtp.osdl.org bugme-daemon at smtp.osdl.org
Fri Feb 14 11:22:14 PST 2003


http://bugme.osdl.org/show_bug.cgi?id=357

           Summary: ext3 compile failure if #define EXT3FS_DEBUG
    Kernel Version: 2.5.60-bk4
            Status: NEW
          Severity: low
             Owner: akpm at digeo.com
         Submitter: bwindle-kbt at fint.org


Distribution: Debian Testing
Hardware Environment: x86
Software Environment: 

Linux razor 2.5.60bk4 #5 Fri Feb 14 11:17:29 EST 2003 i686 Pentium II (Klamath) 
GenuineIntel GNU/Linux

Gnu C                  2.95.4
Gnu make               3.79.1
util-linux             2.11n
mount                  2.11n
e2fsprogs              1.30-WIP
reiserfsprogs          3.6.3
Linux C Library        2.2.5
Dynamic linker (ldd)   2.2.5
Procps                 100.
Net-tools              1.60
Console-tools          0.2.3
Sh-utils               4.5.2


CONFIG_EXT3_FS=y
# CONFIG_EXT3_FS_XATTR is not set
CONFIG_JBD=y
CONFIG_JBD_DEBUG=y
CONFIG_DEBUG_KERNEL=y
CONFIG_DEBUG_STACKOVERFLOW=y
CONFIG_DEBUG_SLAB=y
CONFIG_DEBUG_IOVIRT=y
CONFIG_MAGIC_SYSRQ=y
CONFIG_DEBUG_SPINLOCK=y
CONFIG_KALLSYMS=y
CONFIG_DEBUG_SPINLOCK_SLEEP=y
CONFIG_FRAME_POINTER=y


Problem Description:
If you change include/linux/ext3_fs.h to #define EXT3FS_DEBUG, then 
fs/ext3/balloc.c fails to compile. It compiles if EXT3FS_DEBUG is #undef.

  gcc -Wp,-MD,fs/ext3/.balloc.o.d -D__KERNEL__ -Iinclude -Wall -Wstrict-
prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -
mpreferred-stack-boundary=2 -march=i686 -Iinclude/asm-i386/mach-default -
nostdinc -iwithprefix include    -DKBUILD_BASENAME=balloc -
DKBUILD_MODNAME=ext3 -c -o fs/ext3/balloc.o fs/ext3/balloc.c
fs/ext3/balloc.c: In function `ext3_new_block':
fs/ext3/balloc.c:506: `i' undeclared (first use in this function)
fs/ext3/balloc.c:506: (Each undeclared identifier is reported only once
fs/ext3/balloc.c:506: for each function it appears in.)
fs/ext3/balloc.c: In function `ext3_count_free_blocks':
fs/ext3/balloc.c:662: warning: long unsigned int format, unsigned int arg (arg 
2)
make[2]: *** [fs/ext3/balloc.o] Error 1
make[1]: *** [fs/ext3] Error 2
make: *** [fs] Error 2


Steps to reproduce:

change include/linux/ext3_fs.h:33 from #undef EXT3FS_DEBUG to #define 
EXT3FS_DEBUG, then recompile.

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the Bugme-new mailing list