* [PATCH -next] drm/arc: Fix some sparse warnings
@ 2016-07-19 12:04 Wei Yongjun
2016-07-19 18:01 ` Alexey Brodkin
0 siblings, 1 reply; 3+ messages in thread
From: Wei Yongjun @ 2016-07-19 12:04 UTC (permalink / raw)
To: Alexey Brodkin, David Airlie; +Cc: Wei Yongjun, dri-devel, linux-kernel
From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
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>
---
drivers/gpu/drm/arc/arcpgu_drv.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/arc/arcpgu_drv.c b/drivers/gpu/drm/arc/arcpgu_drv.c
index 0226ec0..3518d34 100644
--- a/drivers/gpu/drm/arc/arcpgu_drv.c
+++ b/drivers/gpu/drm/arc/arcpgu_drv.c
@@ -49,7 +49,7 @@ static void arcpgu_setup_mode_config(struct drm_device *drm)
drm->mode_config.funcs = &arcpgu_drm_modecfg_funcs;
}
-int arcpgu_gem_mmap(struct file *filp, struct vm_area_struct *vma)
+static int arcpgu_gem_mmap(struct file *filp, struct vm_area_struct *vma)
{
int ret;
@@ -131,7 +131,7 @@ static int arcpgu_load(struct drm_device *drm)
if (ret < 0)
return ret;
} else {
- ret = arcpgu_drm_sim_init(drm, 0);
+ ret = arcpgu_drm_sim_init(drm, NULL);
if (ret < 0)
return ret;
}
@@ -152,7 +152,7 @@ static int arcpgu_load(struct drm_device *drm)
return 0;
}
-int arcpgu_unload(struct drm_device *drm)
+static int arcpgu_unload(struct drm_device *drm)
{
struct arcpgu_drm_private *arcpgu = drm->dev_private;
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH -next] drm/arc: Fix some sparse warnings
2016-07-19 12:04 [PATCH -next] drm/arc: Fix some sparse warnings Wei Yongjun
@ 2016-07-19 18:01 ` Alexey Brodkin
2016-07-19 19:39 ` Sean Paul
0 siblings, 1 reply; 3+ messages in thread
From: Alexey Brodkin @ 2016-07-19 18:01 UTC (permalink / raw)
To: weiyj_lk@163.com
Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org,
yongjun_wei@trendmicro.com.cn, airlied@linux.ie
Hi Wei Yongjun,
On Tue, 2016-07-19 at 12:04 +0000, Wei Yongjun wrote:
> From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
>
> 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>
Acked-by: Alexey Brodkin <abrodkin@synopsys.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH -next] drm/arc: Fix some sparse warnings
2016-07-19 18:01 ` Alexey Brodkin
@ 2016-07-19 19:39 ` Sean Paul
0 siblings, 0 replies; 3+ messages in thread
From: Sean Paul @ 2016-07-19 19:39 UTC (permalink / raw)
To: Alexey Brodkin
Cc: weiyj_lk@163.com, dri-devel@lists.freedesktop.org,
linux-kernel@vger.kernel.org, yongjun_wei@trendmicro.com.cn,
airlied@linux.ie
On Tue, Jul 19, 2016 at 2:01 PM, Alexey Brodkin
<Alexey.Brodkin@synopsys.com> wrote:
> Hi Wei Yongjun,
>
> On Tue, 2016-07-19 at 12:04 +0000, Wei Yongjun wrote:
>> From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
>>
>> 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>
>
> Acked-by: Alexey Brodkin <abrodkin@synopsys.com>
Merged to drm-misc
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-07-19 19:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-19 12:04 [PATCH -next] drm/arc: Fix some sparse warnings Wei Yongjun
2016-07-19 18:01 ` Alexey Brodkin
2016-07-19 19:39 ` Sean Paul
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox