Skip to contentSkip to conversation

malloc.c:100: error: dereferencing pointer to incomplete type / dbg_memalloc()

DISCUSSION Bernhard Priewasser 2 participants 6 messages Oct 24, 2005 – Nov 21, 2005 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hello,

when trying to compile latest CVS MTD with JFFS2_FS_DEBUG=2 I get the following compiling errors on dbg_memalloc():

Quoted 5 lines

CC fs/jffs2/malloc.o
fs/jffs2/malloc.c: In function `jffs2_alloc_full_dirent':
fs/jffs2/malloc.c:100: error: dereferencing pointer to incomplete type fs/jffs2/malloc.c: In function `jffs2_free_full_dirent':
fs/jffs2/malloc.c:106: error: dereferencing pointer to incomplete type

Quoted 8 lines

[...]
fs/jffs2/malloc.c: In function `jffs2_alloc_inode_cache':
fs/jffs2/malloc.c:199: error: dereferencing pointer to incomplete type fs/jffs2/malloc.c: In function `jffs2_free_inode_cache':
fs/jffs2/malloc.c:205: error: dereferencing pointer to incomplete type make[2]: *** [fs/jffs2/malloc.o] Error 1
make[1]: *** [fs/jffs2] Error 2
make: *** [fs] Error 2

It's reproducible; with JFFS2_FS_DEBUG!=2 it does compile. I hope this information helps; I would be grateful if it ran through.

Regards,
Bernhard

#2 lore raw
In reply to Bernhard Priewasser
Quoted 4 lines · Bernhard Priewasser

Hello,

when trying to compile latest CVS MTD with JFFS2_FS_DEBUG=2 I get the following compiling errors on dbg_memalloc():

Fixed in CVS, thanks.

Signature · 3 lines
Best Regards,
Artem B. Bityuckiy,
St.-Petersburg, Russia.
#3 lore raw
Quoted 8 lines · Artem B. Bityutskiy
Quoted 4 lines · Bernhard Priewasser

Hello,

when trying to compile latest CVS MTD with JFFS2_FS_DEBUG=2 I get the following compiling errors on dbg_memalloc():

Fixed in CVS, thanks.

It's there again... in MTD CVS 2005-11-21.
If you can't reproduce it, perhaps we have screwed something. But it's reproducible here.

Regards,
Bernhard

#4 lore raw
Quoted 2 lines · Bernhard Priewasser

It's there again... in MTD CVS 2005-11-21.
If you can't reproduce it, perhaps we have screwed something. But it's reproducible here.

Could you please double-check this? I've just compiled JFFS2 with DBGLVL=2 and saw only one warning, no errors.

Signature · 3 lines
Best Regards,
Artem B. Bityutskiy,
St.-Petersburg, Russia.
#5 lore raw
Quoted 1 line

Could you please double-check this? I've just compiled JFFS2 with DBGLVL=2 and saw only one warning, no errors.

OK we'll check this. Our kernel is partially a bit weird... Seems it's our fault then.

Thanks,
Bernhard