✗ CI.checkpatch: warning for drm/xe: avoid function cast warnings
Patchwork
patchwork at emeril.freedesktop.org
Tue Feb 13 11:27:41 UTC 2024
== Series Details ==
Series: drm/xe: avoid function cast warnings
URL : https://patchwork.freedesktop.org/series/129823/
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 eb6c0bc890219860e3d0224d01be5ccb4e607740
Author: Arnd Bergmann <arnd at arndb.de>
Date: Tue Feb 13 10:56:48 2024 +0100
drm/xe: avoid function cast warnings
clang-16 warns about a cast between incompatible function types:
drivers/gpu/drm/xe/xe_range_fence.c:155:10: error: cast from 'void (*)(const void *)' to 'void (*)(struct xe_range_fence *)' converts to incompatible function type [-Werror,-Wcast-function-type-strict]
155 | .free = (void (*)(struct xe_range_fence *rfence)) kfree,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Avoid this with a trivial helper function that calls kfree() here.
Fixes: 845f64bdbfc9 ("drm/xe: Introduce a range-fence utility")
Signed-off-by: Arnd Bergmann <arnd at arndb.de>
Reviewed-by: Thomas Hellström <thomas.hellstrom at linux.intel.com>
+ /mt/dim checkpatch d395a4fdb0e78537f06bb401a9501b8467c774a3 drm-intel
eb6c0bc89 drm/xe: avoid function cast warnings
-:17: WARNING:UNKNOWN_COMMIT_ID: Unknown commit id '845f64bdbfc9', maybe rebased or not pulled?
#17:
Fixes: 845f64bdbfc9 ("drm/xe: Introduce a range-fence utility")
-:29: ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
#29: FILE: drivers/gpu/drm/xe/xe_range_fence.c:154:
+static void xe_range_fence_free(struct xe_range_fence * rfence)
total: 1 errors, 1 warnings, 0 checks, 12 lines checked
More information about the Intel-xe
mailing list