✗ Fi.CI.CHECKPATCH: warning for series starting with [1/3] drm/i915: Fix HAS_REGION() usage in intel_gt_probe_lmem()

Patchwork patchwork at emeril.freedesktop.org
Thu May 2 12:59:52 UTC 2024


== Series Details ==

Series: series starting with [1/3] drm/i915: Fix HAS_REGION() usage in intel_gt_probe_lmem()
URL   : https://patchwork.freedesktop.org/series/133135/
State : warning

== Summary ==

Error: dim checkpatch failed
2fb2c0fe26a2 drm/i915: Fix HAS_REGION() usage in intel_gt_probe_lmem()
-:25: WARNING:AVOID_BUG: Do not crash the kernel unless it is absolutely unavoidable--use WARN_ON_ONCE() plus recovery code (if feasible) instead of BUG() or variants
#25: FILE: drivers/gpu/drm/i915/gt/intel_gt.c:108:
+	GEM_BUG_ON(!HAS_REGION(i915, BIT(id)));

total: 0 errors, 1 warnings, 0 checks, 8 lines checked
6dbc9150d1b2 drm/i915: Pass the region ID rather than a bitmask to HAS_REGION()
-:25: WARNING:AVOID_BUG: Do not crash the kernel unless it is absolutely unavoidable--use WARN_ON_ONCE() plus recovery code (if feasible) instead of BUG() or variants
#25: FILE: drivers/gpu/drm/i915/gt/intel_gt.c:108:
+	GEM_BUG_ON(!HAS_REGION(i915, id));

total: 0 errors, 1 warnings, 0 checks, 26 lines checked
e644982e261c drm/i915: Remove counter productive REGION_* wrappers
-:33: WARNING:LONG_LINE: line length of 110 exceeds 100 columns
#33: FILE: drivers/gpu/drm/i915/i915_pci.c:658:
+	.memory_regions = BIT(INTEL_REGION_SMEM) | BIT(INTEL_REGION_LMEM_0) | BIT(INTEL_REGION_STOLEN_LMEM), \

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




More information about the Intel-gfx mailing list