[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm: Inject a cond_resched() into long drm_clflush_sg()
Patchwork
patchwork at emeril.freedesktop.org
Wed Jan 15 21:28:22 UTC 2020
== Series Details ==
Series: drm: Inject a cond_resched() into long drm_clflush_sg()
URL : https://patchwork.freedesktop.org/series/72085/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip
f1c4f0dc10f6 drm: Inject a cond_resched() into long drm_clflush_sg()
-:41: CHECK:MULTIPLE_ASSIGNMENTS: multiple assignments should be avoided
#41: FILE: drivers/gpu/drm/drm_cache.c:124:
+ s.max = s.curr = s.sgp->offset;
-:62: CHECK:MACRO_ARG_REUSE: Macro argument reuse '__iter' - possible side-effects?
#62: FILE: drivers/gpu/drm/drm_cache.c:145:
+#define for_each_sgt_page(__pp, __iter, __sgt) \
+ for ((__iter) = __sgt_iter((__sgt)->sgl); \
+ ((__pp) = (__iter).pfn == 0 ? NULL : \
+ pfn_to_page((__iter).pfn + ((__iter).curr >> PAGE_SHIFT))); \
+ (((__iter).curr += PAGE_SIZE) >= (__iter).max) ? \
+ (__iter) = __sgt_iter(__sg_next_resched((__iter).sgp)), 0 : 0)
total: 0 errors, 0 warnings, 2 checks, 68 lines checked
More information about the Intel-gfx
mailing list