Skip to contentSkip to conversation

SCSI: fix qla4xxx build on PPC

PATCH In review Jiri Slaby 1 participant 2 messages Sep 14, 2010

Subsystems (2)
lore
Share & tools
lore

Jiri Slaby

author
#0 lore raw

PATCH 1/1 SCSI: fix qla4xxx build on PPC

We use read/write[bslq] but do not include linux/io.h. This causes build failures on PPC. Include that file.

Cc Ravi Anand <[email protected]>
Cc Vikas Chaudhary <[email protected]>
---
 drivers/scsi/qla4xxx/ql4_nx.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/scsi/qla4xxx/ql4_nx.c +1 -0
index 5d4a382..449256f 100644
@@ -5,6 +5,7 @@
  * See LICENSE.qla4xxx for copyright and licensing details.
  */
 #include <linux/delay.h>
+#include <linux/io.h>
 #include <linux/pci.h>
 #include "ql4_def.h"
 #include "ql4_glbl.h"
Signature · 1 line
1.7.2.2
author
#1 lore raw
Quoted 2 lines · Jiri Slaby

We use read/write[bslq] but do not include linux/io.h. This causes build failures on PPC. Include that file.

Just in case you want to include the failure:
drivers/scsi/qla4xxx/ql4_nx.c: In function 'qla4_8xxx_pci_mem_read_direct':
drivers/scsi/qla4xxx/ql4_nx.c:716:3: error: implicit declaration of function 'readq'
drivers/scsi/qla4xxx/ql4_nx.c: In function 'qla4_8xxx_pci_mem_write_direct':
drivers/scsi/qla4xxx/ql4_nx.c:787:3: error: implicit declaration of function 'writeq'

Quoted 12 lines
Cc Ravi Anand <[email protected]>
Cc Vikas Chaudhary <[email protected]>
---
 drivers/scsi/qla4xxx/ql4_nx.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/scsi/qla4xxx/ql4_nx.c +0 -0
index 5d4a382..449256f 100644

drivers/scsi/qla4xxx/ql4_nx.c line 11

Quoted 7 lines
drivers/scsi/qla4xxx/ql4_nx.c +1 -0
@@ -5,6 +5,7 @@
  * See LICENSE.qla4xxx for copyright and licensing details.
  */
 #include <linux/delay.h>
+#include <linux/io.h>
 #include <linux/pci.h>
 #include "ql4_def.h"
 #include "ql4_glbl.h"

thanks,

Signature · 2 lines
js
suse labs