✗ CI.checkpatch: warning for series starting with [v2,1/3] drm/buddy: fix range bias (rev2)

Patchwork patchwork at emeril.freedesktop.org
Mon Feb 19 17:00:15 UTC 2024


== Series Details ==

Series: series starting with [v2,1/3] drm/buddy: fix range bias (rev2)
URL   : https://patchwork.freedesktop.org/series/130074/
State : warning

== Summary ==

+ KERNEL=/kernel
+ git clone https://gitlab.freedesktop.org/drm/maintainer-tools mt
Cloning into 'mt'...
warning: redirecting to https://gitlab.freedesktop.org/drm/maintainer-tools.git/
+ git -C mt rev-list -n1 origin/master
35591fb8b4d5305b37ce31483f85ac0956eaa536
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit d8b99215b1f26f7b44e799497e3f89c6466cf1e2
Author: Matthew Auld <matthew.auld at intel.com>
Date:   Mon Feb 19 12:18:54 2024 +0000

    drm/tests/drm_buddy: add alloc_range_bias test
    
    Sanity check range bias with DRM_BUDDY_RANGE_ALLOCATION.
    
    v2:
      - Be consistent with u32 here.
    
    Signed-off-by: Matthew Auld <matthew.auld at intel.com>
    Cc: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam at amd.com>
    Cc: Christian König <christian.koenig at amd.com>
    Reviewed-by: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam at amd.com>
+ /mt/dim checkpatch f12bce6493b6443870b55f36b1462d65e450d29d drm-intel
ff2363b071bb drm/buddy: fix range bias
2e4438836576 drm/buddy: check range allocation matches alignment
d8b99215b1f2 drm/tests/drm_buddy: add alloc_range_bias test
-:37: WARNING:LINE_SPACING: Missing a blank line after declarations
#37: FILE: drivers/gpu/drm/tests/drm_buddy_test.c:27:
+	u32 mm_size, ps, bias_size, bias_start, bias_end, bias_rem;
+	DRM_RND_STATE(prng, random_seed);

-:45: CHECK:SPACING: spaces preferred around that '-' (ctx:VxV)
#45: FILE: drivers/gpu/drm/tests/drm_buddy_test.c:35:
+	mm_size = (SZ_8M-1) & ~(ps-1); /* Multiple roots */
 	                ^

-:45: CHECK:SPACING: spaces preferred around that '-' (ctx:VxV)
#45: FILE: drivers/gpu/drm/tests/drm_buddy_test.c:35:
+	mm_size = (SZ_8M-1) & ~(ps-1); /* Multiple roots */
 	                          ^

-:106: WARNING:LONG_LINE: line length of 102 exceeds 100 columns
#106: FILE: drivers/gpu/drm/tests/drm_buddy_test.c:96:
+				      bias_start + ps, bias_end - ps, bias_size >> 1, bias_size >> 1);

-:216: WARNING:LONG_LINE: line length of 106 exceeds 100 columns
#216: FILE: drivers/gpu/drm/tests/drm_buddy_test.c:206:
+				bias_end += round_up(prandom_u32_state(&prng) % (mm_size - bias_end), ps);

total: 0 errors, 3 warnings, 2 checks, 246 lines checked




More information about the Intel-xe mailing list