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

Patchwork patchwork at emeril.freedesktop.org
Sun Feb 13 09:02:40 UTC 2022


== Series Details ==

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

== Summary ==

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

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

total: 0 errors, 2 warnings, 0 checks, 465 lines checked
ccf915b04de0 drm: implement top-down allocation method
75b92ac23ffd drm: implement a method to free unused pages
a46e724508af 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
c01dc68ea696 drm/amdgpu: add drm buddy support to amdgpu
-:63: CHECK:PREFER_KERNEL_TYPES: Prefer kernel type 'u32' over 'uint32_t'
#63: FILE: drivers/gpu/drm/amd/amdgpu/amdgpu_res_cursor.h:41:
+	uint32_t		mem_type;

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

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

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




More information about the Intel-gfx mailing list