[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with [v11,1/5] drm: improve drm_buddy_alloc function

Patchwork patchwork at emeril.freedesktop.org
Thu Jan 27 15:52:03 UTC 2022


== Series Details ==

Series: series starting with [v11,1/5] drm: improve drm_buddy_alloc function
URL   : https://patchwork.freedesktop.org/series/99430/
State : warning

== Summary ==

$ dim checkpatch origin/drm-tip
00470383ca08 drm: improve drm_buddy_alloc function
-:386: WARNING:AVOID_BUG: Avoid crashing the kernel - try using WARN_ON & recovery code rather than BUG() or BUG_ON()
#386: FILE: drivers/gpu/drm/drm_buddy.c:585:
+		BUG_ON(order > mm->max_order);

-:387: WARNING:AVOID_BUG: Avoid crashing the kernel - try using WARN_ON & recovery code rather than BUG() or BUG_ON()
#387: FILE: drivers/gpu/drm/drm_buddy.c:586:
+		BUG_ON(order < min_order);

total: 0 errors, 2 warnings, 0 checks, 506 lines checked
50185f5f7e57 drm: implement top-down allocation method
957142d57613 drm: implement a method to free unused pages
f26779496cc3 drm/amdgpu: move vram inline functions into a header
-:12: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating?
#12: 
new file mode 100644

total: 0 errors, 1 warnings, 0 checks, 51 lines checked
a629aca723cd drm/amdgpu: add drm buddy support to amdgpu
-:60: CHECK:PREFER_KERNEL_TYPES: Prefer kernel type 'u32' over 'uint32_t'
#60: FILE: drivers/gpu/drm/amd/amdgpu/amdgpu_res_cursor.h:41:
+	uint32_t		mem_type;

-:417: CHECK:BRACES: Unbalanced braces around else statement
#417: FILE: drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c:387:
+	else {

-:450: WARNING:AVOID_BUG: Avoid crashing the kernel - try using WARN_ON & recovery code rather than BUG() or BUG_ON()
#450: FILE: drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c:416:
+	BUG_ON(min_page_size < mm->chunk_size);

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




More information about the Intel-gfx mailing list