Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1015668pxa; Wed, 12 Aug 2020 20:42:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsIFqM7U9cJefqJPVfdegjuOZiITHO/B1SM0fnmsc8VkBWvrcTC6dLXjU+/aawXmvI6eI5 X-Received: by 2002:a17:906:8318:: with SMTP id j24mr2798878ejx.409.1597290141487; Wed, 12 Aug 2020 20:42:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597290141; cv=none; d=google.com; s=arc-20160816; b=bZfHCX1Y8b1l/pDB8oBESVn3Z76Z63mYfNC5euw7xV/+ZKgraDqy3a6n2VGvLuIlJ7 iazx7d3j5plGJhJ7XEcnE2PL0uLYRYzBbMtKEeehd84jIcfkCpNckRC98UULHdSkfutL +FVcAsQu1hoXBs9zhQ5BSc+o9ICfLy232ffCdoH8yRCsAgnzDpEGNONjmsJhQjxhhkGY msPJ0lZ3ila84+mdtwq32TUbJeANDQr+5qukaolUEwY0H3RS91VwQ6L7+qs5IhF1eOVd T6h1KtCGVADI57am59+pNkCBaRlouwVeEkGMwD/CcmGVVhezsspSwbCXQEP8hjc+p1Z5 xl7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Zuy2HMvY3xOyc5BU6eP3viEte7/Jyi9hLxP3v7KxONQ=; b=FKo7KaP3MPZseAU+ok4AV1eOnuT9tpHCrv45Bnz+Z3osQwAedFgG4frNVHJF5UkO57 lAjbXPkZezKTkHpBXB0rlPSQTW77+kJFjqklLmoQuTsUzxJhJkGe4+4gADdnXIJ23ikv Wlf7GKJKUzpujqhhiNRN7xdinfV9O9LynUnwfVgSJ78Y+e68daoHDCqg2ookDKAZXJj0 5L4WVfA4guDFqLo14yc12VkyzGWE2T3mEZX1iErRYWEGIDFwt1SO9q+S4raR6aqKIroS yjHdzzViY5mA1/QIZm53zmHD7AxmYcwAGAGX2r/Z7Flo2gEwE5GNC6QWfjAMH7k15jzo addQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p22si2575260eds.169.2020.08.12.20.41.59; Wed, 12 Aug 2020 20:42:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726591AbgHMDlb (ORCPT + 99 others); Wed, 12 Aug 2020 23:41:31 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:9799 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726078AbgHMDla (ORCPT ); Wed, 12 Aug 2020 23:41:30 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 3436B93DFA66B6139B24; Thu, 13 Aug 2020 11:41:27 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.487.0; Thu, 13 Aug 2020 11:41:17 +0800 From: Tian Tao To: , , , , , , , , CC: Subject: [PATCH] drm/hisilicon: Fix build error of no type of module_init Date: Thu, 13 Aug 2020 11:39:15 +0800 Message-ID: <1597289955-27381-1-git-send-email-tiantao6@hisilicon.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add missing include to fix build error: hibmc_drm_drv.c:385:1: warning: data definition has no type or storage class [enabled by default] hibmc_drm_drv.c:385:1: error: type defaults to ‘int’ in declaration of ‘module_init’ [-Werror=implicit-int] hibmc_drm_drv.c:385:1: warning: parameter names (without types) in function of ‘module_exit’ [-Werror=implicit-int] hibmc_drm_drv.c:385:292:1: warning: parameter names (without types) in function declaration [enabled by default] Signed-off-by: Tian Tao Reported-by: kernel test robot --- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c index 1ae360d..2b4f821 100644 --- a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c +++ b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c @@ -11,6 +11,7 @@ * Jianhua Li */ +#include #include #include -- 2.7.4