From patchwork Fri Feb 17 14:38:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9579947 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 03F16600F6 for ; Fri, 17 Feb 2017 14:40:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DDD9B286E6 for ; Fri, 17 Feb 2017 14:40:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D22C9286F1; Fri, 17 Feb 2017 14:40:15 +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=-6.4 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM 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 630ED286E6 for ; Fri, 17 Feb 2017 14:40:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933976AbdBQOkN (ORCPT ); Fri, 17 Feb 2017 09:40:13 -0500 Received: from mout.kundenserver.de ([212.227.126.131]:59825 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934160AbdBQOkM (ORCPT ); Fri, 17 Feb 2017 09:40:12 -0500 Received: from wuerfel.lan ([78.42.17.5]) by mrelayeu.kundenserver.de (mreue005 [212.227.15.129]) with ESMTPA (Nemesis) id 0LkUcJ-1c72Vi3tz1-00cORf; Fri, 17 Feb 2017 15:39:50 +0100 From: Arnd Bergmann To: Lijun Ou , Doug Ledford Cc: Arnd Bergmann , "Wei Hu(Xavier)" , Sean Hefty , Hal Rosenstock , Salil , Shaobo Xu , Wei Yongjun , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] IB/hns: include linux/module.h Date: Fri, 17 Feb 2017 15:38:26 +0100 Message-Id: <20170217143945.2217431-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:kRz3hhGsAzHnA4RhKid9J+R+mvmMhJdrdCZKRxULgajiAgs3x90 +srW4VLg+Je0EwNEJG0aN090h7nWCVKWlOemOyQf8HBuLKAubAU39luCGIZbdTJnAeoSOd1 0l6J36xTf+2vfaUNfsd5sNA5JUo8BH286EYY1/ViuECKO+Tys49vfqzWvksr+NLnnnm2isb FhzWDuI/sPhmiTnD2BIQw== X-UI-Out-Filterresults: notjunk:1; V01:K0:PXfoRv4WItk=:aQrKvxuj2Ox4oKcTYbQIK6 HUYnJ2mg//21KW3SVRvXHT2yHYSbqUZOgZf5JmSWxwUPQbtuCuSPdBrsdjIo1i/ICQr38AbzE N3t5pVJ1UZyYozcdZrk9FIlc6mjPPcS0ozFMzFcRKfoUc3aewobbiYGQnzJpdPrhMj/JnvG8C Zryq41Hfbz5Y0f64EHesOZPQ3jtRZ2uqa7MpXWO/QlUCyvtUq1EndNEfygJXEOCmy4H3AuZ/z ozYQszJx0Ee8tGMXhUYoC3Ps4uQ8w257ChDbIi81NO9TIctmZRdGWOk/jDtqBP933jBONTLGn 7AWMBW91R/J4MaxW1ztGqhBETtiXadBlAER9C2N2CTOXRdd4BvsHLAXON1RN7CjGAOCUF1tkg MgYV9woqvysLEjTEslBOIMGZdkko9XSnomujk2Yil3k/e6+kxv2R1rUyzjaLKNCzc5YugRJus VyoUulJylFXffYFY39uloWKIuz5Ey6zHaC0rzYCyRN25yFojTeJjHCQgvftog1dp+w55ihxgi AMAf8cW7GAcUBqFfu7QFQE0UOrJ68fqEJ5d724UWq7Qrz6PQDp7NBQNVC2R3spS9s0rsU2VNl iKz+kvtPGEu41jHlfyjwXT/UTlRL+Ar8Blx773/nUJOBXaq/EJmyrKdNb8zf9zseDdsSSS8Kt ocyXRyrnUMWkmboS/eBwGC2qxmAmURIG7xcdiCeaexSdyzwhhI0rO6DjiqPqTD8a9e6w= Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP I ran into a build error on arm64 randconfig testing: infiniband/hw/hns/hns_roce_main.c:539:1: error: data definition has no type or storage class [-Werror] infiniband/hw/hns/hns_roce_main.c:539:1: error: type defaults to 'int' in declaration of 'MODULE_DEVICE_TABLE' [-Werror=implicit-int] infiniband/hw/hns/hns_roce_main.c:539:1: error: parameter names (without types) in function declaration [-Werror] infiniband/hw/hns/hns_roce_main.c:979:226: error: data definition has no type or storage class [-Werror] infiniband/hw/hns/hns_roce_main.c:979:226: error: type defaults to 'int' in declaration of 'module_init' [-Werror=implicit-int] infiniband/hw/hns/hns_roce_main.c:979:1: error: parameter names (without types) in function declaration [-Werror] Including the module.h makes it build again. Fixes: 9a4435375cd1 ("IB/hns: Add driver files for hns RoCE driver") Signed-off-by: Arnd Bergmann --- drivers/infiniband/hw/hns/hns_roce_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/infiniband/hw/hns/hns_roce_main.c b/drivers/infiniband/hw/hns/hns_roce_main.c index 4953d9cb83a7..cf14679664ca 100644 --- a/drivers/infiniband/hw/hns/hns_roce_main.c +++ b/drivers/infiniband/hw/hns/hns_roce_main.c @@ -32,6 +32,7 @@ */ #include #include +#include #include #include #include