Skip to contentSkip to conversation

cciss: error: implicit declaration of function 'sg_init_table'

PATCH In review Mike Pagano 2 participants 2 messages Apr 9, 2008 – Apr 10, 2008 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cciss: error: implicit declaration of function 'sg_init_table'

This patch adds the missing include directive <linux/scatterlist.h> to the cciss.c source file. This was discovered by our release team when building the kernel for the Alpha architecture.

Errors were found as references to functions 'sg_init_table' and 'sg_page' do not exist without the include for Alpha.

Signed off by: Mike Pagano <[email protected]>

---
 drivers/block/cciss.c |    1 +
 1 file changed, 1 insertion(+)
drivers/block/cciss.c 2008-04-09 10:14:11.000000000 -0400 renamed from drivers/block/cciss.c 2008-04-09 10:13:45.000000000 -0400 +1 -0
@@ -50,6 +50,7 @@
 #include <scsi/sg.h>
 #include <scsi/scsi_ioctl.h>
 #include <linux/cdrom.h>
+#include <linux/scatterlist.h>
 
 #define CCISS_DRIVER_VERSION(maj,min,submin) ((maj<<16)|(min<<8)|(submin))
 #define DRIVER_NAME "HP CISS Driver (v 3.6.14)"
#1 lore raw
Quoted 4 lines · Mike Pagano

This patch adds the missing include directive <linux/scatterlist.h> to the cciss.c source file. This was discovered by our release team when building the kernel for the Alpha architecture.

Errors were found as references to functions 'sg_init_table' and 'sg_page' do not exist without the include for Alpha.

Thanks, I'll add it.

Signature · 1 line
Jens Axboe