nvme-apple: stop casting function pointer signatures
authorChristoph Hellwig <hch@lst.de>
Fri, 15 Jul 2022 09:54:36 +0000 (11:54 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 26 Jul 2022 20:04:22 +0000 (16:04 -0400)
commita66c53b5bae20ef860179b9af8ab52ff1368ee4e
tree8129e2110e8008916bc7172a4a42d70d10c184b0
parent23bf1b1a2225168052b97bf03b916f4b3a4f933b
nvme-apple: stop casting function pointer signatures

Casting function pointers breaks control flow enforcement and is
generally a horrible coding style.

Add two wrappers to get rid of these casts.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Sven Peter <sven@svenpeter.dev>
drivers/nvme/host/apple.c