OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
477277c
)
drm/atomic: fix warning of unused variable
author
GONG, Ruiqi
<gongruiqi1@huawei.com>
Tue, 7 Jun 2022 11:08:48 +0000
(19:08 +0800)
committer
Maxime Ripard
<maxime@cerno.tech>
Thu, 9 Jun 2022 14:09:46 +0000
(16:09 +0200)
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>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link:
https://patchwork.freedesktop.org/patch/msgid/20220607110848.941486-1-gongruiqi1@huawei.com
include/drm/drm_atomic.h
patch
|
blob
|
history
diff --git
a/include/drm/drm_atomic.h
b/include/drm/drm_atomic.h
index
0777725
..
10b1990
100644
(file)
--- 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)++)