]> 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)
commit21c6f6cc6965ecdf76160e94e606e596ebf2ab58
treeafc9775a0342acf05388f17fa7f16cf751769c29
parentdac3c199fc03e3e302254bd3b722c0b943d821a1
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