✗ CI.checkpatch: warning for drm/xe: avoid plain 64-bit division

Patchwork patchwork at emeril.freedesktop.org
Mon Mar 24 21:11:57 UTC 2025


== Series Details ==

Series: drm/xe: avoid plain 64-bit division
URL   : https://patchwork.freedesktop.org/series/146689/
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
cbb4e4a079d89106c2736adc3c7de6f9dc56da07
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 15079da233a627d1e37adccffc17ab1ec4d66535
Author: Arnd Bergmann <arnd at arndb.de>
Date:   Mon Mar 24 22:06:02 2025 +0100

    drm/xe: avoid plain 64-bit division
    
    Building the xe driver for i386 results in a link time warning:
    
    x86_64-linux-ld: drivers/gpu/drm/xe/xe_migrate.o: in function `xe_migrate_vram':
    xe_migrate.c:(.text+0x1e15): undefined reference to `__udivdi3'
    
    Avoid this by using DIV_U64_ROUND_UP() instead of DIV_ROUND_UP().  The driver
    is unlikely to be used on 32=bit hardware, so the extra cost here is not
    too important.
    
    Fixes: 9c44fd5f6e8a ("drm/xe: Add migrate layer functions for SVM support")
    Signed-off-by: Arnd Bergmann <arnd at arndb.de>
+ /mt/dim checkpatch 9be2a7099019ef52d17cbc2b3e6ba15cd638ec2c drm-intel
15079da233a6 drm/xe: avoid plain 64-bit division
-:8: WARNING:COMMIT_LOG_LONG_LINE: Prefer a maximum 75 chars per line (possible unwrapped commit description?)
#8: 
x86_64-linux-ld: drivers/gpu/drm/xe/xe_migrate.o: in function `xe_migrate_vram':

total: 0 errors, 1 warnings, 0 checks, 16 lines checked




More information about the Intel-xe mailing list