drm/ttm: cleanup coding style a bit
Subsystems (3)
PATCH 1/1 drm/ttm: cleanup coding style a bit
Fix sparse warning:drivers/gpu/drm/ttm/ttm_bo.c:52:1: warning: symbol 'ttm_global_mutex' was not declared. Should it be static? drivers/gpu/drm/ttm/ttm_bo.c:53:10: warning: symbol 'ttm_bo_glob_use_count' was not declared. Should it be static?
--- drivers/gpu/drm/ttm/ttm_bo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/ttm/ttm_bo.c +2 -2
@@ -49,8 +49,8 @@ static void ttm_bo_global_kobj_release(struct kobject *kobj);/* * ttm_global_mutex - protecting the global BO state */ -DEFINE_MUTEX (ttm_global_mutex); -unsigned ttm_bo_glob_use_count; +static DEFINE_MUTEX (ttm_global_mutex); +static unsigned int ttm_bo_glob_use_count;struct ttm_bo_global ttm_bo_glob;EXPORT_SYMBOL (ttm_bo_glob);
Signature · 1 line
2.31.0
Am 31.03.21 um 15:12 schrieb Bernard Zhao:
Quoted 5 lines
Fix sparse warning:
drivers/gpu/drm/ttm/ttm_bo.c:52:1: warning: symbol 'ttm_global_mutex' was not declared. Should it be static?drivers/gpu/drm/ttm/ttm_bo.c:53:10: warning: symbol 'ttm_bo_glob_use_count' was not declared. Should it be static?Signed-off-by Bernard Zhao <[email protected]>
You are based on an outdated branch, please rebase on top of drm-misc-next.
Regards,
Christian.
Quoted 9 lines
--- drivers/gpu/drm/ttm/ttm_bo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/ttm/ttm_bo.c +0
-0
drivers/gpu/drm/ttm/ttm_bo.c static void ttm_bo_global_kobj_release(struct kobject *kobj); · line 56
Quoted 10 lines
drivers/gpu/drm/ttm/ttm_bo.c +2
-2@@ -49,8 +49,8 @@ static void ttm_bo_global_kobj_release(struct kobject *kobj);/* * ttm_global_mutex - protecting the global BO state */ -DEFINE_MUTEX (ttm_global_mutex); -unsigned ttm_bo_glob_use_count; +static DEFINE_MUTEX (ttm_global_mutex); +static unsigned int ttm_bo_glob_use_count;struct ttm_bo_global ttm_bo_glob;EXPORT_SYMBOL (ttm_bo_glob);
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
From: "Christian König" <[email protected]>
Date: 2021-03-31 21:15:22
To: Bernard Zhao <[email protected]>,Huang Rui <[email protected]>,David Airlie <[email protected]>,Daniel Vetter <[email protected]>,[email protected],[email protected]
Cc: [email protected]
Subject: Re: [PATCH] drm/ttm: cleanup coding style a bit>Am 31.03.21 um 15:12 schrieb Bernard Zhao:
Quoted 8 lines
Quoted 5 lines
Fix sparse warning:
drivers/gpu/drm/ttm/ttm_bo.c:52:1: warning: symbol 'ttm_global_mutex' was not declared. Should it be static?drivers/gpu/drm/ttm/ttm_bo.c:53:10: warning: symbol 'ttm_bo_glob_use_count' was not declared. Should it be static?Signed-off-by Bernard Zhao <[email protected]>You are based on an outdated branch, please rebase on top of drm-misc-next.
Hi
Sure, thanks for your review!
I will fix this and resubmit this patch.
BR//Bernard
Quoted 7 lines
Regards,
Christian.Quoted 4 lines
--- drivers/gpu/drm/ttm/ttm_bo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Quoted 16 lines
Quoted 5 lines
drivers/gpu/drm/ttm/ttm_bo.c +0
-0drivers/gpu/drm/ttm/ttm_bo.c static void ttm_bo_global_kobj_release(struct kobject *kobj); · line 56
Quoted 10 lines
drivers/gpu/drm/ttm/ttm_bo.c +2
-2@@ -49,8 +49,8 @@ static void ttm_bo_global_kobj_release(struct kobject *kobj);/* * ttm_global_mutex - protecting the global BO state */ -DEFINE_MUTEX (ttm_global_mutex); -unsigned ttm_bo_glob_use_count; +static DEFINE_MUTEX (ttm_global_mutex); +static unsigned int ttm_bo_glob_use_count;struct ttm_bo_global ttm_bo_glob;EXPORT_SYMBOL (ttm_bo_glob);
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Am 01.04.21 um 03:59 schrieb Bernard:
Quoted 10 lines
From: "Christian König" <[email protected]>
Date: 2021-03-31 21:15:22
To: Bernard Zhao <[email protected]>,Huang Rui <[email protected]>,David Airlie <[email protected]>,Daniel Vetter <[email protected]>,[email protected],[email protected]
Cc: [email protected]
Subject: Re: [PATCH] drm/ttm: cleanup coding style a bit>Am 31.03.21 um 15:12 schrieb Bernard Zhao:Quoted 4 lines
Quoted 4 lines
Fix sparse warning:
drivers/gpu/drm/ttm/ttm_bo.c:52:1: warning: symbol 'ttm_global_mutex' was not declared. Should it be static?drivers/gpu/drm/ttm/ttm_bo.c:53:10: warning: symbol 'ttm_bo_glob_use_count' was not declared. Should it be static?
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Bernard Zhao <[email protected]>You are based on an outdated branch, please rebase on top of drm-misc-next.
Hi
Sure, thanks for your review!
I will fix this and resubmit this patch.
Found some time today to do it myself. Please review the patch I've just send to you.
Thanks,
Christian.
Quoted 10 lines
BR//Bernard
Quoted 7 lines
Regards,
Christian.Quoted 4 lines
--- drivers/gpu/drm/ttm/ttm_bo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Quoted 16 lines
Quoted 7 lines
Quoted 7 lines
drivers/gpu/drm/ttm/ttm_bo.c +0
-0@@ -49,8 +49,8 @@ static void ttm_bo_global_kobj_release(struct kobject *kobj);/* * ttm_global_mutex - protecting the global BO state Quoted 8 lines
drivers/gpu/drm/ttm/ttm_bo.c static void ttm_bo_global_kobj_release(struct kobject *kobj); · line 56
Quoted 8 lines
drivers/gpu/drm/ttm/ttm_bo.c +2
-2*/ -DEFINE_MUTEX (ttm_global_mutex); -unsigned ttm_bo_glob_use_count; +static DEFINE_MUTEX (ttm_global_mutex); +static unsigned int ttm_bo_glob_use_count;struct ttm_bo_global ttm_bo_glob;EXPORT_SYMBOL (ttm_bo_glob);
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel