lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Mon, 30 Mar 2009 11:37:09 +0300
From:	Dmitri Vorobiev <dmitri.vorobiev@...ial.com>
To:	bzolnier@...il.com, linux-ide@...r.kernel.org,
	linux-kernel@...r.kernel.org
Cc:	Dmitri Vorobiev <dmitri.vorobiev@...ial.com>
Subject: [PATCH 1/1] ide: add missing include into drivers/ide/ide-atapi.c

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@...ial.com>
---
 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-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ