From patchwork Tue Apr 9 17:18:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 10891827 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9761E17E1 for ; Tue, 9 Apr 2019 17:18:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 84B3A2861C for ; Tue, 9 Apr 2019 17:18:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 75ABB2893D; Tue, 9 Apr 2019 17:18:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1477D2861C for ; Tue, 9 Apr 2019 17:18:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726530AbfDIRS3 (ORCPT ); Tue, 9 Apr 2019 13:18:29 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:39682 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726499AbfDIRS3 (ORCPT ); Tue, 9 Apr 2019 13:18:29 -0400 Received: by mail-pf1-f193.google.com with SMTP id i17so6970918pfo.6 for ; Tue, 09 Apr 2019 10:18:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=m2MCrFdgxPu9OqSwhzGQPK7kw/dYW/lpXm+wqN8z4lg=; b=OQZc/3ss4j1dug9ufK6zLoKZJ/GPDUdofa/OZia3ZhqaPtXGQIBnbssLmP3HeXKC0F dQxhdlYFGYvmQfP2cqQj7lS7y+afkHj3VEyFGEyWMBpLm8FG5c00uhSAMzqUaG0HDrB6 JbeFse5vTPOLUhrpUoLRyHOCArAwvMqSm7vAyZrddOU8VPtNCe1V1fksa73kDHiNTcrm 0e+V6wUDKMnIf2kpQKmcF6BVBcQfS4cfQLQ0kicG7+WuIxsXQ98QvYq2380ZMew8eu9V O6GUfvq9e6pSx1q02vSnXUCZ+tDk7cftuWyeGUrR/2s9d9J60dLBIQjou0f6PcewIUZx nGtw== X-Gm-Message-State: APjAAAWSRsjflnahFy8o8c3P7QkGR3ccMWLPIFBraDvp1q8GA05X7aOQ fjz/snfh7SbdsgjMjwdhBgk= X-Google-Smtp-Source: APXvYqyG1IfET9NbjiJOnFtcpjyLUOMBbxrPIia4tMpAM2ld5kNwNVqKJqAGtzSiYiSdxOOP50w37Q== X-Received: by 2002:a63:e048:: with SMTP id n8mr20380195pgj.41.1554830308627; Tue, 09 Apr 2019 10:18:28 -0700 (PDT) Received: from desktop-bart.svl.corp.google.com ([2620:15c:2cd:203:5cdc:422c:7b28:ebb5]) by smtp.gmail.com with ESMTPSA id l192sm20201768pge.42.2019.04.09.10.18.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Apr 2019 10:18:27 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" , "James E . J . Bottomley" Cc: linux-scsi@vger.kernel.org, Christoph Hellwig , Bart Van Assche , Himanshu Madhani , Giridhar Malavali Subject: [PATCH] qla2xxx: Unbreak the SPARC build Date: Tue, 9 Apr 2019 10:18:21 -0700 Message-Id: <20190409171821.16729-1-bvanassche@acm.org> X-Mailer: git-send-email 2.20.GIT MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Cc: Giridhar Malavali Fixes: b0680690163e ("tcm_qla2xxx: Minimize #include directives") Signed-off-by: Bart Van Assche --- drivers/scsi/qla2xxx/tcm_qla2xxx.c | 1 + 1 file changed, 1 insertion(+) 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 #include #include +#include #include #include #include