]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-apple: stop casting function pointer signatures
authorChristoph Hellwig <hch@lst.de>
Fri, 15 Jul 2022 09:54:36 +0000 (11:54 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 2 Aug 2022 23:22:51 +0000 (17:22 -0600)
commit2fec1dfc28c993fe0ff8b72754e0b60a9338486e
treeafc9775a0342acf05388f17fa7f16cf751769c29
parent2f7a7e5d85f646d8b0756bd5cd9855322bd805a7
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>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/apple.c