✗ CI.checkpatch: warning for drm/xe/migrate: Fix alignment check (rev2)
Patchwork
patchwork at emeril.freedesktop.org
Fri Jul 11 16:52:25 UTC 2025
== Series Details ==
Series: drm/xe/migrate: Fix alignment check (rev2)
URL : https://patchwork.freedesktop.org/series/151470/
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
43254c2aa575037fc031c7ac21b0d031c700b2bf
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 765e60776c687b0f647ed48abcf6f5ef61f78c8c
Author: Lucas De Marchi <lucas.demarchi at intel.com>
Date: Thu Jul 10 14:34:41 2025 -0700
drm/xe/migrate: Fix alignment check
The check would fail if the address is unaligned, but not when
accounting the offset. Instead of `buf | offset` it should have
been `buf + offset`. To make it more readable and also drop the
uintptr_t, just use the IS_ALIGNED() macro.
Cc: Matthew Auld <matthew.auld at intel.com>
Cc: Matthew Brost <matthew.brost at intel.com>
Signed-off-by: Lucas De Marchi <lucas.demarchi at intel.com>
Reviewed-by: Matthew Brost <matthew.brost at intel.com>
Reviewed-by: Matthew Auld <matthew.auld at intel.com>
+ /mt/dim checkpatch d415c0716821abca694e8a93e74cc71b4a9b6522 drm-intel
765e60776c68 drm/xe/migrate: Fix alignment check
-:27: ERROR:CODE_INDENT: code indent should use tabs where possible
#27: FILE: drivers/gpu/drm/xe/xe_migrate.c:1820:
+ if (!IS_ALIGNED(len, XE_CACHELINE_BYTES) ||$
-:27: WARNING:LEADING_SPACE: please, no spaces at the start of a line
#27: FILE: drivers/gpu/drm/xe/xe_migrate.c:1820:
+ if (!IS_ALIGNED(len, XE_CACHELINE_BYTES) ||$
-:28: ERROR:CODE_INDENT: code indent should use tabs where possible
#28: FILE: drivers/gpu/drm/xe/xe_migrate.c:1821:
+ !IS_ALIGNED((unsigned long)buf + offset, XE_CACHELINE_BYTES)) {$
-:28: WARNING:LEADING_SPACE: please, no spaces at the start of a line
#28: FILE: drivers/gpu/drm/xe/xe_migrate.c:1821:
+ !IS_ALIGNED((unsigned long)buf + offset, XE_CACHELINE_BYTES)) {$
total: 2 errors, 2 warnings, 0 checks, 10 lines checked
More information about the Intel-xe
mailing list