diff options
author | Arnd Bergmann <[email protected]> | 2024-04-08 09:34:24 +0200 |
---|---|---|
committer | Jean Delvare <[email protected]> | 2024-04-08 09:34:24 +0200 |
commit | cf770af5645a41a753c55a053fa1237105b0964a (patch) | |
tree | 09da32eeebf694e38afdbe1b2f60dec8cea15600 /tools/testing/selftests/net/lib | |
parent | e8f897f4afef0031fe618a8e94127a0934896aba (diff) |
firmware: dmi-id: add a release callback function
dmi_class uses kfree() as the .release function, but that now causes
a warning with clang-16 as it violates control flow integrity (KCFI)
rules:
drivers/firmware/dmi-id.c:174:17: error: cast from 'void (*)(const void *)' to 'void (*)(struct device *)' converts to incompatible function type [-Werror,-Wcast-function-type-strict]
174 | .dev_release = (void(*)(struct device *)) kfree,
Add an explicit function to call kfree() instead.
Fixes: 4f5c791a850e ("DMI-based module autoloading")
Link: https://lore.kernel.org/lkml/[email protected]/
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Jean Delvare <[email protected]>
Diffstat (limited to 'tools/testing/selftests/net/lib')
0 files changed, 0 insertions, 0 deletions