* [PATCH] drm/atomic: fix warning of unused variable
@ 2022-06-07 11:08 ` GONG, Ruiqi
0 siblings, 0 replies; 4+ messages in thread
From: GONG, Ruiqi @ 2022-06-07 11:08 UTC (permalink / raw)
To: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
David Airlie, Daniel Vetter
Cc: dri-devel, linux-kernel, Wang Weiyang, Gong Ruiqi
Fix the `unused-but-set-variable` warning as how other iteration
wrappers do.
Link: https://lore.kernel.org/all/202206071049.pofHsRih-lkp@intel.com/
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: GONG, Ruiqi <gongruiqi1@huawei.com>
---
include/drm/drm_atomic.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/drm/drm_atomic.h b/include/drm/drm_atomic.h
index 0777725085df..10b1990bc1f6 100644
--- a/include/drm/drm_atomic.h
+++ b/include/drm/drm_atomic.h
@@ -1022,6 +1022,7 @@ void drm_state_dump(struct drm_device *dev, struct drm_printer *p);
for ((__i) = 0; \
(__i) < (__state)->num_private_objs && \
((obj) = (__state)->private_objs[__i].ptr, \
+ (void)(obj) /* Only to avoid unused-but-set-variable warning */, \
(new_obj_state) = (__state)->private_objs[__i].new_state, 1); \
(__i)++)
--
2.25.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] drm/atomic: fix warning of unused variable
@ 2022-06-07 11:08 ` GONG, Ruiqi
0 siblings, 0 replies; 4+ messages in thread
From: GONG, Ruiqi @ 2022-06-07 11:08 UTC (permalink / raw)
To: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
David Airlie, Daniel Vetter
Cc: Wang Weiyang, linux-kernel, dri-devel, Gong Ruiqi
Fix the `unused-but-set-variable` warning as how other iteration
wrappers do.
Link: https://lore.kernel.org/all/202206071049.pofHsRih-lkp@intel.com/
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: GONG, Ruiqi <gongruiqi1@huawei.com>
---
include/drm/drm_atomic.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/drm/drm_atomic.h b/include/drm/drm_atomic.h
index 0777725085df..10b1990bc1f6 100644
--- a/include/drm/drm_atomic.h
+++ b/include/drm/drm_atomic.h
@@ -1022,6 +1022,7 @@ void drm_state_dump(struct drm_device *dev, struct drm_printer *p);
for ((__i) = 0; \
(__i) < (__state)->num_private_objs && \
((obj) = (__state)->private_objs[__i].ptr, \
+ (void)(obj) /* Only to avoid unused-but-set-variable warning */, \
(new_obj_state) = (__state)->private_objs[__i].new_state, 1); \
(__i)++)
--
2.25.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: (subset) [PATCH] drm/atomic: fix warning of unused variable
2022-06-07 11:08 ` GONG, Ruiqi
@ 2022-06-09 14:12 ` Maxime Ripard
-1 siblings, 0 replies; 4+ messages in thread
From: Maxime Ripard @ 2022-06-09 14:12 UTC (permalink / raw)
To: GONG, Ruiqi, Thomas Zimmermann, Daniel Vetter, Maxime Ripard,
Maarten Lankhorst, David Airlie
Cc: Maxime Ripard, dri-devel, linux-kernel, Wang Weiyang
On Tue, 7 Jun 2022 19:08:48 +0800, GONG, Ruiqi wrote:
> Fix the `unused-but-set-variable` warning as how other iteration
> wrappers do.
>
>
Applied to drm/drm-misc (drm-misc-fixes).
Thanks!
Maxime
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: (subset) [PATCH] drm/atomic: fix warning of unused variable
@ 2022-06-09 14:12 ` Maxime Ripard
0 siblings, 0 replies; 4+ messages in thread
From: Maxime Ripard @ 2022-06-09 14:12 UTC (permalink / raw)
To: GONG, Ruiqi, Thomas Zimmermann, Daniel Vetter, Maxime Ripard,
Maarten Lankhorst, David Airlie
Cc: Wang Weiyang, Maxime Ripard, dri-devel, linux-kernel
On Tue, 7 Jun 2022 19:08:48 +0800, GONG, Ruiqi wrote:
> Fix the `unused-but-set-variable` warning as how other iteration
> wrappers do.
>
>
Applied to drm/drm-misc (drm-misc-fixes).
Thanks!
Maxime
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-06-09 14:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-07 11:08 [PATCH] drm/atomic: fix warning of unused variable GONG, Ruiqi
2022-06-07 11:08 ` GONG, Ruiqi
2022-06-09 14:12 ` (subset) " Maxime Ripard
2022-06-09 14:12 ` Maxime Ripard
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.