[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915/selftests: Extract random_offset() for use with a prng

Patchwork patchwork at emeril.freedesktop.org
Wed Oct 2 13:49:18 UTC 2019


== Series Details ==

Series: drm/i915/selftests: Extract random_offset() for use with a prng
URL   : https://patchwork.freedesktop.org/series/67489/
State : warning

== Summary ==

$ dim checkpatch origin/drm-tip
62126230edd7 drm/i915/selftests: Extract random_offset() for use with a prng
-:37: CHECK:SPACING: spaces preferred around that '*' (ctx:VxV)
#37: FILE: drivers/gpu/drm/i915/selftests/i915_gem_gtt.c:1431:
+					   2*I915_GTT_PAGE_SIZE,
 					    ^

-:85: WARNING:AVOID_BUG: Avoid crashing the kernel - try using WARN_ON & recovery code rather than BUG() or BUG_ON()
#85: FILE: drivers/gpu/drm/i915/selftests/i915_random.c:98:
+	BUG_ON(range_overflows(start, len, end));

-:86: WARNING:AVOID_BUG: Avoid crashing the kernel - try using WARN_ON & recovery code rather than BUG() or BUG_ON()
#86: FILE: drivers/gpu/drm/i915/selftests/i915_random.c:99:
+	BUG_ON(round_up(start, align) > round_down(end - len, align));

total: 0 errors, 2 warnings, 1 checks, 75 lines checked



More information about the Intel-gfx mailing list