A missing include in drivers/ide/ide-atapi.c has produced the following build error on MIPS: CC drivers/ide/ide-atapi.o drivers/ide/ide-atapi.c: In function 'ide_io_buffers': drivers/ide/ide-atapi.c:86: error: implicit declaration of function 'sg_page' drivers/ide/ide-atapi.c:86: warning: passing argument 1 of 'PageHighMem' makes pointer from integer without a cast drivers/ide/ide-atapi.c:90: warning: passing argument 1 of 'kmap_atomic' makes pointer from integer without a cast drivers/ide/ide-atapi.c:95: error: implicit declaration of function 'sg_virt' drivers/ide/ide-atapi.c:95: warning: assignment makes pointer from integer without a cast drivers/ide/ide-atapi.c:106: error: implicit declaration of function 'sg_next' drivers/ide/ide-atapi.c:106: warning: assignment makes pointer from integer without a cast make[2]: *** [drivers/ide/ide-atapi.o] Error 1 make[1]: *** [drivers/ide] Error 2 make: *** [drivers] Error 2 This patch adds the missing include and fixes the build error above. Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@xxxxxxxxxx> --- drivers/ide/ide-atapi.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/ide/ide-atapi.c b/drivers/ide/ide-atapi.c index 6adc5b4..97f116f 100644 --- a/drivers/ide/ide-atapi.c +++ b/drivers/ide/ide-atapi.c @@ -6,6 +6,7 @@ #include <linux/cdrom.h> #include <linux/delay.h> #include <linux/ide.h> +#include <linux/scatterlist.h> #include <scsi/scsi.h> #ifdef DEBUG -- 1.5.6.3 -- To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html