drivers/acpi: Remove function cast
authorOscar Carter <oscar.carter@gmx.com>
Sat, 30 May 2020 14:34:30 +0000 (16:34 +0200)
committerMarc Zyngier <maz@kernel.org>
Sat, 27 Jun 2020 10:55:52 +0000 (11:55 +0100)
commit8ebf642f3d809b59f57d0d408189a2218294e269
tree9001170e24d78ef70f4aa916b0678e8247619f79
parentaba3c7ed3fcf74524b7072615028827d5e5750d7
drivers/acpi: Remove function cast

Remove the function cast in the ACPI_DECLARE_PROBE_ENTRY macro to ensure
that the functions passed as a last parameter to this macro have the
right prototype.

This is an effort to enable -Wcast-function-type in the top-level Makefile
to support Control Flow Integrity builds.

Suggested-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Oscar Carter <oscar.carter@gmx.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://lore.kernel.org/r/20200530143430.5203-4-oscar.carter@gmx.com
include/linux/acpi.h