[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with [v8,1/6] drm: move the buddy allocator from i915 into common drm
Patchwork
patchwork at emeril.freedesktop.org
Wed Jan 12 00:03:37 UTC 2022
== Series Details ==
Series: series starting with [v8,1/6] drm: move the buddy allocator from i915 into common drm
URL : https://patchwork.freedesktop.org/series/98767/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip
81945eba9ca4 drm: move the buddy allocator from i915 into common drm
-:85: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating?
#85:
new file mode 100644
-:110: WARNING:AVOID_BUG: Avoid crashing the kernel - try using WARN_ON & recovery code rather than BUG() or BUG_ON()
#110: FILE: drivers/gpu/drm/drm_buddy.c:21:
+ BUG_ON(order > DRM_BUDDY_MAX_ORDER);
-:120: WARNING:AVOID_BUG: Avoid crashing the kernel - try using WARN_ON & recovery code rather than BUG() or BUG_ON()
#120: FILE: drivers/gpu/drm/drm_buddy.c:31:
+ BUG_ON(block->header & DRM_BUDDY_HEADER_UNUSED);
-:189: WARNING:AVOID_BUG: Avoid crashing the kernel - try using WARN_ON & recovery code rather than BUG() or BUG_ON()
#189: FILE: drivers/gpu/drm/drm_buddy.c:100:
+ BUG_ON(mm->max_order > DRM_BUDDY_MAX_ORDER);
-:229: WARNING:AVOID_BUG: Avoid crashing the kernel - try using WARN_ON & recovery code rather than BUG() or BUG_ON()
#229: FILE: drivers/gpu/drm/drm_buddy.c:140:
+ BUG_ON(i > mm->max_order);
-:230: WARNING:AVOID_BUG: Avoid crashing the kernel - try using WARN_ON & recovery code rather than BUG() or BUG_ON()
#230: FILE: drivers/gpu/drm/drm_buddy.c:141:
+ BUG_ON(drm_buddy_block_size(mm, root) < chunk_size);
-:280: WARNING:AVOID_BUG: Avoid crashing the kernel - try using WARN_ON & recovery code rather than BUG() or BUG_ON()
#280: FILE: drivers/gpu/drm/drm_buddy.c:191:
+ BUG_ON(!drm_buddy_block_is_free(block));
-:281: WARNING:AVOID_BUG: Avoid crashing the kernel - try using WARN_ON & recovery code rather than BUG() or BUG_ON()
#281: FILE: drivers/gpu/drm/drm_buddy.c:192:
+ BUG_ON(!drm_buddy_block_order(block));
-:288: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis
#288: FILE: drivers/gpu/drm/drm_buddy.c:199:
+ block->right = drm_block_alloc(mm, block, block_order,
+ offset + (mm->chunk_size << block_order));
-:350: WARNING:AVOID_BUG: Avoid crashing the kernel - try using WARN_ON & recovery code rather than BUG() or BUG_ON()
#350: FILE: drivers/gpu/drm/drm_buddy.c:261:
+ BUG_ON(!drm_buddy_block_is_allocated(block));
-:407: WARNING:AVOID_BUG: Avoid crashing the kernel - try using WARN_ON & recovery code rather than BUG() or BUG_ON()
#407: FILE: drivers/gpu/drm/drm_buddy.c:318:
+ BUG_ON(!drm_buddy_block_is_free(block));
-:589: WARNING:AVOID_BUG: Avoid crashing the kernel - try using WARN_ON & recovery code rather than BUG() or BUG_ON()
#589: FILE: drivers/gpu/drm/drm_buddy.c:500:
+ BUG_ON(!drm_buddy_block_is_free(block));
total: 0 errors, 11 warnings, 1 checks, 944 lines checked
677adee6d56f drm: improve drm_buddy_alloc function
-:379: WARNING:AVOID_BUG: Avoid crashing the kernel - try using WARN_ON & recovery code rather than BUG() or BUG_ON()
#379: FILE: drivers/gpu/drm/drm_buddy.c:580:
+ BUG_ON(order > mm->max_order);
-:380: WARNING:AVOID_BUG: Avoid crashing the kernel - try using WARN_ON & recovery code rather than BUG() or BUG_ON()
#380: FILE: drivers/gpu/drm/drm_buddy.c:581:
+ BUG_ON(order < min_order);
-:507: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis
#507: FILE: drivers/gpu/drm/i915/i915_ttm_buddy_manager.c:88:
+ err = drm_buddy_alloc_blocks(mm, (u64)place->fpfn << PAGE_SHIFT,
+ (u64)lpfn << PAGE_SHIFT,
-:530: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis
#530: FILE: drivers/gpu/drm/i915/i915_ttm_buddy_manager.c:268:
+ ret = drm_buddy_alloc_blocks(mm, start,
+ start + size,
total: 0 errors, 2 warnings, 2 checks, 534 lines checked
11c4869c9102 drm: implement top-down allocation method
fff6012ad9d8 drm: implement a method to free unused pages
-:132: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis
#132: FILE: drivers/gpu/drm/i915/i915_ttm_buddy_manager.c:105:
+ drm_buddy_block_trim(mm,
+ original_size,
total: 0 errors, 0 warnings, 1 checks, 97 lines checked
ebf14b5c24da 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
6dc33407584a drm/amdgpu: add drm buddy support to amdgpu
-:51: CHECK:PREFER_KERNEL_TYPES: Prefer kernel type 'u32' over 'uint32_t'
#51: FILE: drivers/gpu/drm/amd/amdgpu/amdgpu_res_cursor.h:41:
+ uint32_t mem_type;
-:194: CHECK:UNCOMMENTED_DEFINITION: struct mutex definition without comment
#194: FILE: drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h:45:
+ struct mutex lock;
-:272: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis
#272: FILE: drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c:254:
+ if (drm_buddy_alloc_blocks(mm, rsv->start, rsv->start + rsv->size,
+ rsv->size, mm->chunk_size, &rsv->block,
-:330: CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'rsv->start <= start'
#330: FILE: drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c:328:
+ if ((rsv->start <= start) &&
+ (start < (rsv->start + rsv->size))) {
-:340: CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'rsv->start <= start'
#340: FILE: drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c:336:
+ if ((rsv->start <= start) &&
+ (start < (rsv->start + rsv->size))) {
-:407: CHECK:BRACES: Unbalanced braces around else statement
#407: FILE: drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c:391:
+ else {
-:440: WARNING:AVOID_BUG: Avoid crashing the kernel - try using WARN_ON & recovery code rather than BUG() or BUG_ON()
#440: FILE: drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c:420:
+ BUG_ON(min_page_size < mm->chunk_size);
-:483: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis
#483: FILE: drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c:444:
+ r = drm_buddy_alloc_blocks(mm, (u64)place->fpfn << PAGE_SHIFT,
+ (u64)lpfn << PAGE_SHIFT,
-:506: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis
#506: FILE: drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c:466:
+ drm_buddy_block_trim(mm,
+ actual_size,
total: 0 errors, 1 warnings, 8 checks, 590 lines checked
More information about the Intel-gfx
mailing list