projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f449ed
)
drm/i915/syncmap: squelch a sparse warning
author
Jani Nikula
<jani.nikula@intel.com>
Wed, 29 Nov 2023 17:35:06 +0000
(19:35 +0200)
committer
Jani Nikula
<jani.nikula@intel.com>
Mon, 4 Dec 2023 10:06:26 +0000
(12:06 +0200)
The code is fine, really, but tweak it to get rid of the sparse warning:
drivers/gpu/drm/i915/selftests/i915_syncmap.c:80:54: warning: dubious: x | !y
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20231129173506.1194437-1-jani.nikula@intel.com
drivers/gpu/drm/i915/selftests/i915_syncmap.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/selftests/i915_syncmap.c
b/drivers/gpu/drm/i915/selftests/i915_syncmap.c
index
47f4ae1
..
88fa845
100644
(file)
--- a/
drivers/gpu/drm/i915/selftests/i915_syncmap.c
+++ b/
drivers/gpu/drm/i915/selftests/i915_syncmap.c
@@
-77,7
+77,7
@@
__sync_print(struct i915_syncmap *p,
for_each_set_bit(i, (unsigned long *)&p->bitmap, KSYNCMAP) {
buf = __sync_print(__sync_child(p)[i], buf, sz,
depth + 1,
- last << 1 |
!!(p->bitmap >> (i + 1)
),
+ last << 1 |
((p->bitmap >> (i + 1)) ? 1 : 0
),
i);
}
}