Skip to contentSkip to conversation

Fix compilation error (missing include statement)

PATCH Applied Stefan Weil 2 participants 2 messages Sep 22, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix compilation error (missing include statement)

./hw/sd.c: In function ‘sd_init’:
./hw/sd.c:443: error: implicit declaration of function ‘qemu_blockalign’ ./hw/sd.c:443: error: nested extern declaration of ‘qemu_blockalign’ ./hw/sd.c:443: error: assignment makes pointer from integer without a cast

Cc Christoph Hellwig <[email protected]>
Cc Kevin Wolf <[email protected]>
---
 hw/sd.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
hw/sd.c +1 -0
index 4bcf1c0..601545b 100644
@@ -31,6 +31,7 @@
 
 #include "hw.h"
 #include "block.h"
+#include "block_int.h"
 #include "sd.h"
 
 //#define DEBUG_SD 1
Signature · 1 line
1.7.1
#1 lore raw
Quoted 9 lines · Stefan Weil

./hw/sd.c: In function ‘sd_init’:
./hw/sd.c:443: error: implicit declaration of function ‘qemu_blockalign’ ./hw/sd.c:443: error: nested extern declaration of ‘qemu_blockalign’ ./hw/sd.c:443: error: assignment makes pointer from integer without a cast

Cc Christoph Hellwig<[email protected]>
Cc Kevin Wolf<[email protected]>

Applied. Thanks.

Regards,

Anthony Liguori

Quoted 17 lines
---
  hw/sd.c |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)
hw/sd.c +1 -0
index 4bcf1c0..601545b 100644
@@ -31,6 +31,7 @@
 
  #include "hw.h"
  #include "block.h"
+#include "block_int.h"
  #include "sd.h"
 
  //#define DEBUG_SD 1