Files
linux/drivers
Arnd Bergmann cf770af564 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: 4f5c791a85 ("DMI-based module autoloading")
Link: https://lore.kernel.org/lkml/20240213100238.456912-1-arnd@kernel.org/
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jean Delvare <jdelvare@suse.de>
2024-04-08 09:34:24 +02:00
..
2024-02-06 14:10:47 +08:00
2024-02-16 18:51:00 -05:00
2024-03-08 13:40:56 +10:00
2024-03-03 02:32:35 +00:00
2023-12-15 17:07:05 +01:00
2024-02-05 16:16:24 +01:00
2024-01-05 15:55:41 +05:30
2023-12-15 17:27:04 +01:00
2024-01-04 17:03:47 +01:00
2024-01-12 12:38:37 +01:00