diff mbox series

qla2xxx: Unbreak the SPARC build

Message ID 20190409171821.16729-1-bvanassche@acm.org (mailing list archive)
State Accepted
Headers show
Series qla2xxx: Unbreak the SPARC build | expand

Commit Message

Bart Van Assche April 9, 2019, 5:18 p.m. UTC
Avoid that the SPARC build fails as follows:

   drivers/scsi/qla2xxx/tcm_qla2xxx.c: In function 'tcm_qla2xxx_init_lport':
>> drivers/scsi/qla2xxx/tcm_qla2xxx.c:1614:3: error: implicit declaration of function 'vzalloc'; did you mean 'kvzalloc'? [-Werror=implicit-function-declaration]
      vzalloc(array_size(65536,
      ^~~~~~~
      kvzalloc
>> drivers/scsi/qla2xxx/tcm_qla2xxx.c:1613:26: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
     lport->lport_loopid_map =
                             ^
   drivers/scsi/qla2xxx/tcm_qla2xxx.c: In function 'tcm_qla2xxx_make_lport':
>> drivers/scsi/qla2xxx/tcm_qla2xxx.c:1677:2: error: implicit declaration of function 'vfree'; did you mean 'kvfree'? [-Werror=implicit-function-declaration]
     vfree(lport->lport_loopid_map);
     ^~~~~
     kvfree

Cc: Himanshu Madhani <hmadhani@marvell.com>
Cc: Giridhar Malavali <gmalavali@marvell.com>
Fixes: b0680690163e ("tcm_qla2xxx: Minimize #include directives")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
---
 drivers/scsi/qla2xxx/tcm_qla2xxx.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Martin K. Petersen April 10, 2019, 1:31 a.m. UTC | #1
Bart,

> Avoid that the SPARC build fails as follows:

Rolled into the original commit.
diff mbox series

Patch

diff --git a/drivers/scsi/qla2xxx/tcm_qla2xxx.c b/drivers/scsi/qla2xxx/tcm_qla2xxx.c
index 07bd518e543b..f1404dee5ab3 100644
--- a/drivers/scsi/qla2xxx/tcm_qla2xxx.c
+++ b/drivers/scsi/qla2xxx/tcm_qla2xxx.c
@@ -31,6 +31,7 @@ 
 #include <linux/string.h>
 #include <linux/configfs.h>
 #include <linux/ctype.h>
+#include <linux/vmalloc.h>
 #include <asm/unaligned.h>
 #include <scsi/scsi_host.h>
 #include <target/target_core_base.h>