[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with [1/2] drm/rect: Add midpoint to scale calculation functions
Patchwork
patchwork at emeril.freedesktop.org
Tue Apr 24 12:21:26 UTC 2018
== Series Details ==
Series: series starting with [1/2] drm/rect: Add midpoint to scale calculation functions
URL : https://patchwork.freedesktop.org/series/42186/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip
aca1294901eb drm/rect: Add midpoint to scale calculation functions
-:23: CHECK:SPACING: spaces preferred around that '<<' (ctx:VxV)
#23: FILE: drivers/gpu/drm/drm_atomic_helper.c:757:
+ hscale = drm_rect_calc_hscale(src, dst, min_scale, 1<<16, max_scale);
^
-:24: CHECK:SPACING: spaces preferred around that '<<' (ctx:VxV)
#24: FILE: drivers/gpu/drm/drm_atomic_helper.c:758:
+ vscale = drm_rect_calc_vscale(src, dst, min_scale, 1<<16, max_scale);
^
-:48: WARNING:UNNECESSARY_ELSE: else is not generally useful after a break or return
#48: FILE: drivers/gpu/drm/drm_rect.c:111:
+ return DIV_ROUND_UP(src, dst);
+ else
total: 0 errors, 1 warnings, 2 checks, 187 lines checked
97d164bdcbbe drm/i915: Do not adjust scale when out of bounds.
-:180: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis
#180: FILE: drivers/gpu/drm/i915/intel_sprite.c:1038:
+ if (INTEL_GEN(dev_priv) < 9 && (src_w > 2048 || src_h > 2048 ||
+ width_bytes > 4096 || fb->pitches[0] > 4096)) {
total: 0 errors, 0 warnings, 1 checks, 180 lines checked
More information about the Intel-gfx
mailing list