[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for DGFX OpRegion (rev2)
Patchwork
patchwork at emeril.freedesktop.org
Wed Feb 16 18:37:30 UTC 2022
== Series Details ==
Series: DGFX OpRegion (rev2)
URL : https://patchwork.freedesktop.org/series/99738/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip
6d79d75ff620 drm/i915/opregion: Add intel_opregion_init() wrapper
768f0a166cf5 drm/i915/opregion: Abstract opregion function
-:209: ERROR:SPACING: space required before the open parenthesis '('
#209: FILE: drivers/gpu/drm/i915/display/intel_opregion.c:1265:
+ if(drm_WARN_ON(&i915->drm, !opregion->asls || !opregion->header))
total: 1 errors, 0 warnings, 0 checks, 254 lines checked
80d5f4ca4fd8 drm/i915/opregion: Add dgfx opregion func
f687dde9115c drm/i915/opregion: Cond dgfx opregion func registration
526152d056f6 drm/i915/dgfx: OPROM OpRegion Setup
-:229: CHECK:ALLOC_SIZEOF_STRUCT: Prefer kzalloc(sizeof(*exprom_hdr)...) over kzalloc(sizeof(struct expansion_rom_header)...)
#229: FILE: drivers/gpu/drm/i915/display/intel_opregion.c:1046:
+ exprom_hdr = kzalloc(sizeof(struct expansion_rom_header), GFP_KERNEL);
-:230: CHECK:ALLOC_SIZEOF_STRUCT: Prefer kzalloc(sizeof(*exprom_pci_data)...) over kzalloc(sizeof(struct pci_data_structure)...)
#230: FILE: drivers/gpu/drm/i915/display/intel_opregion.c:1047:
+ exprom_pci_data = kzalloc(sizeof(struct pci_data_structure), GFP_KERNEL);
total: 0 errors, 0 warnings, 2 checks, 417 lines checked
5cb086bbc22d drm/i915/dgfx: Get VBT from rvda
More information about the Intel-gfx
mailing list