diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2016-07-19 08:04:05 -0400 |
---|---|---|
committer | Sean Paul <seanpaul@chromium.org> | 2016-07-19 15:33:37 -0400 |
commit | ee29a9eaff92298412904669371037cb202b89b3 (patch) | |
tree | 180cfe429fb5499920b0d1b2b53bd044e27cce08 | |
parent | 3c003d599dc80769b9c5b023d3944c7adb7de73b (diff) |
drm/arc: Fix some sparse warnings
Fixes the following sparse warnings:
drivers/gpu/drm/arc/arcpgu_drv.c:52:5: warning:
symbol 'arcpgu_gem_mmap' was not declared. Should it be static?
drivers/gpu/drm/arc/arcpgu_drv.c:134:48: warning:
Using plain integer as NULL pointer
drivers/gpu/drm/arc/arcpgu_drv.c:155:5: warning:
symbol 'arcpgu_unload' was not declared. Should it be static?
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
-rw-r--r-- | drivers/gpu/drm/arc/arcpgu_drv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/arc/arcpgu_drv.c b/drivers/gpu/drm/arc/arcpgu_drv.c index 20a5f2cd0d8b..c501576f6679 100644 --- a/drivers/gpu/drm/arc/arcpgu_drv.c +++ b/drivers/gpu/drm/arc/arcpgu_drv.c | |||
@@ -48,7 +48,7 @@ static void arcpgu_setup_mode_config(struct drm_device *drm) | |||
48 | drm->mode_config.funcs = &arcpgu_drm_modecfg_funcs; | 48 | drm->mode_config.funcs = &arcpgu_drm_modecfg_funcs; |
49 | } | 49 | } |
50 | 50 | ||
51 | int arcpgu_gem_mmap(struct file *filp, struct vm_area_struct *vma) | 51 | static int arcpgu_gem_mmap(struct file *filp, struct vm_area_struct *vma) |
52 | { | 52 | { |
53 | int ret; | 53 | int ret; |
54 | 54 | ||
@@ -130,7 +130,7 @@ static int arcpgu_load(struct drm_device *drm) | |||
130 | if (ret < 0) | 130 | if (ret < 0) |
131 | return ret; | 131 | return ret; |
132 | } else { | 132 | } else { |
133 | ret = arcpgu_drm_sim_init(drm, 0); | 133 | ret = arcpgu_drm_sim_init(drm, NULL); |
134 | if (ret < 0) | 134 | if (ret < 0) |
135 | return ret; | 135 | return ret; |
136 | } | 136 | } |
@@ -151,7 +151,7 @@ static int arcpgu_load(struct drm_device *drm) | |||
151 | return 0; | 151 | return 0; |
152 | } | 152 | } |
153 | 153 | ||
154 | int arcpgu_unload(struct drm_device *drm) | 154 | static int arcpgu_unload(struct drm_device *drm) |
155 | { | 155 | { |
156 | struct arcpgu_drm_private *arcpgu = drm->dev_private; | 156 | struct arcpgu_drm_private *arcpgu = drm->dev_private; |
157 | 157 | ||