* [PATCH] drm: Add missing newline after comment
@ 2020-02-05 22:26 Stefan Agner
2020-02-05 22:50 ` Joe Perches
0 siblings, 1 reply; 3+ messages in thread
From: Stefan Agner @ 2020-02-05 22:26 UTC (permalink / raw)
To: maarten.lankhorst, mripard, sean, airlied, daniel.vetter
Cc: airlied, linux-kernel, dri-devel, clang-built-linux
Clang prints a warning:
drivers/gpu/drm/drm_lock.c:363:6: warning: misleading indentation;
statement is not part of the previous 'if' [-Wmisleading-indentation]
*/ mutex_lock(&dev->struct_mutex);
^
drivers/gpu/drm/drm_lock.c:357:2: note: previous statement is here
if (!drm_core_check_feature(dev, DRIVER_LEGACY))
^
Fix this by adding a newline after the multi-line comment.
Fixes: 058ca50ce3f1 ("drm/legacy: move lock cleanup for master into lock file (v2)")
Link: https://github.com/ClangBuiltLinux/linux/issues/855
Signed-off-by: Stefan Agner <stefan@agner.ch>
---
drivers/gpu/drm/drm_lock.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/drm_lock.c b/drivers/gpu/drm/drm_lock.c
index 2e8ce99d0baa..2c79e8199e3c 100644
--- a/drivers/gpu/drm/drm_lock.c
+++ b/drivers/gpu/drm/drm_lock.c
@@ -360,7 +360,8 @@ void drm_legacy_lock_master_cleanup(struct drm_device *dev, struct drm_master *m
/*
* Since the master is disappearing, so is the
* possibility to lock.
- */ mutex_lock(&dev->struct_mutex);
+ */
+ mutex_lock(&dev->struct_mutex);
if (master->lock.hw_lock) {
if (dev->sigdata.lock == master->lock.hw_lock)
dev->sigdata.lock = NULL;
--
2.25.0
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] drm: Add missing newline after comment
2020-02-05 22:26 [PATCH] drm: Add missing newline after comment Stefan Agner
@ 2020-02-05 22:50 ` Joe Perches
2020-02-05 22:58 ` Stefan Agner
0 siblings, 1 reply; 3+ messages in thread
From: Joe Perches @ 2020-02-05 22:50 UTC (permalink / raw)
To: Stefan Agner, maarten.lankhorst, mripard, sean, airlied, daniel.vetter
Cc: airlied, linux-kernel, dri-devel, clang-built-linux
On Wed, 2020-02-05 at 23:26 +0100, Stefan Agner wrote:
> Clang prints a warning:
> drivers/gpu/drm/drm_lock.c:363:6: warning: misleading indentation;
> statement is not part of the previous 'if' [-Wmisleading-indentation]
> */ mutex_lock(&dev->struct_mutex);
> ^
> drivers/gpu/drm/drm_lock.c:357:2: note: previous statement is here
> if (!drm_core_check_feature(dev, DRIVER_LEGACY))
> ^
>
> Fix this by adding a newline after the multi-line comment.
Thanks, already in -next
commit 5b99cad6966b92f757863ff9b6688051633fde9a
Author: Dan Carpenter <dan.carpenter@oracle.com>
Date: Wed Jan 8 08:43:12 2020 +0300
gpu/drm: clean up white space in drm_legacy_lock_master_cleanup()
We moved this code to a different file and accidentally deleted a
newline.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20200108054312.yzlj5wmbdktejgob@kili.mountain
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] drm: Add missing newline after comment
2020-02-05 22:50 ` Joe Perches
@ 2020-02-05 22:58 ` Stefan Agner
0 siblings, 0 replies; 3+ messages in thread
From: Stefan Agner @ 2020-02-05 22:58 UTC (permalink / raw)
To: Joe Perches
Cc: airlied, daniel.vetter, linux-kernel, clang-built-linux,
dri-devel, airlied, sean
On 2020-02-05 23:50, Joe Perches wrote:
> On Wed, 2020-02-05 at 23:26 +0100, Stefan Agner wrote:
>> Clang prints a warning:
>> drivers/gpu/drm/drm_lock.c:363:6: warning: misleading indentation;
>> statement is not part of the previous 'if' [-Wmisleading-indentation]
>> */ mutex_lock(&dev->struct_mutex);
>> ^
>> drivers/gpu/drm/drm_lock.c:357:2: note: previous statement is here
>> if (!drm_core_check_feature(dev, DRIVER_LEGACY))
>> ^
>>
>> Fix this by adding a newline after the multi-line comment.
>
> Thanks, already in -next
Whoops, sorry for the duplication. Searched for "indentation" which did
not bring that one up.
--
Stefan
>
> commit 5b99cad6966b92f757863ff9b6688051633fde9a
> Author: Dan Carpenter <dan.carpenter@oracle.com>
> Date: Wed Jan 8 08:43:12 2020 +0300
>
> gpu/drm: clean up white space in drm_legacy_lock_master_cleanup()
>
> We moved this code to a different file and accidentally deleted a
> newline.
>
> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
> Link:
> https://patchwork.freedesktop.org/patch/msgid/20200108054312.yzlj5wmbdktejgob@kili.mountain
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-02-05 22:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-05 22:26 [PATCH] drm: Add missing newline after comment Stefan Agner
2020-02-05 22:50 ` Joe Perches
2020-02-05 22:58 ` Stefan Agner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).