diff options
author | Tian Tao <tiantao6@hisilicon.com> | 2020-08-13 06:39:15 +0300 |
---|---|---|
committer | Thomas Zimmermann <tzimmermann@suse.de> | 2020-08-13 10:58:16 +0300 |
commit | 70c7fe17f370c03e90868cbf24c09a6c5db9c536 (patch) | |
tree | 68a12828624d81f0a377c2497d7d66aec15bdd23 /drivers/gpu | |
parent | 1930d19cb49930b7d5be0379be9f88fcbeba9976 (diff) | |
download | linux-70c7fe17f370c03e90868cbf24c09a6c5db9c536.tar.xz |
drm/hisilicon: Fix build error of no type of module_init
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 <tiantao6@hisilicon.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/1597289955-27381-1-git-send-email-tiantao6@hisilicon.com
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c index 1ae360d9cca2..2b4f82163b99 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 <lijianhua@huawei.com> */ +#include <linux/module.h> #include <linux/pci.h> #include <drm/drm_atomic_helper.h> |