[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915/selftests: Basic stress test for rapid context switching

Patchwork patchwork at emeril.freedesktop.org
Wed Aug 15 12:44:39 UTC 2018


== Series Details ==

Series: drm/i915/selftests: Basic stress test for rapid context switching
URL   : https://patchwork.freedesktop.org/series/48255/
State : warning

== Summary ==

$ dim checkpatch origin/drm-tip
a5421de087ad drm/i915/selftests: Basic stress test for rapid context switching
-:120: WARNING:ALLOC_ARRAY_ARGS: kcalloc uses number as first arg, sizeof is generally wrong
#120: FILE: drivers/gpu/drm/i915/selftests/i915_gem_context.c:127:
+	ctx = kcalloc(sizeof(*ctx), nctx, GFP_KERNEL);

total: 0 errors, 1 warnings, 0 checks, 203 lines checked



More information about the Intel-gfx mailing list