Skip to contentSkip to conversation

block: Fix compilation with DEBUG defined

PATCH Applied Riccardo Magliocchetti 2 participants 3 messages May 19, 2010 – May 20, 2010 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 block: Fix compilation with DEBUG defined

gcc does not like passing a NULL where an int value is expected:

block/vvfat.c: In function ‘checkpoint’:
block/vvfat.c:2868: error: passing argument 2 of ‘remove_mapping’ makes
integer from pointer without a cast

---
 block/vvfat.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
block/vvfat.c +1 -1
index ce16bbd..13c31fa 100644
@@ -2865,7 +2865,7 @@ static void checkpoint(void) {
     return;
     /* avoid compiler warnings: */
     hexdump(NULL, 100);
-    remove_mapping(vvv, NULL);
+    remove_mapping(vvv, 0);
     print_mapping(NULL);
     print_direntry(NULL);
 }
Signature · 1 line
1.7.1
Applied
#1 lore raw

Am 19.05.2010 22:53, schrieb Riccardo Magliocchetti:

Quoted 7 lines

gcc does not like passing a NULL where an int value is expected:

block/vvfat.c: In function ‘checkpoint’:
block/vvfat.c:2868: error: passing argument 2 of ‘remove_mapping’ makes
integer from pointer without a cast

Thanks, applied to the block branch.

You're probably using a 32 bit platform? I needed another fix to get it compiling on x86_64, which I just sent to the list.

Kevin

#2 lore raw

Il 20/05/2010 10:43, Kevin Wolf ha scritto:

Quoted 7 lines

Am 19.05.2010 22:53, schrieb Riccardo Magliocchetti:

Quoted 6 lines

gcc does not like passing a NULL where an int value is expected:

block/vvfat.c: In function ‘checkpoint’:
block/vvfat.c:2868: error: passing argument 2 of ‘remove_mapping’ makes
integer from pointer without a cast

Quoted 6 lines
Quoted 1 line

Thanks, applied to the block branch.

You're probably using a 32 bit platform? I needed another fix to get it compiling on x86_64, which I just sent to the list.

Thanks, yes i'm on 32bit.

riccardo