[PATCH] nvme-apple: stop casting function pointer signatures

Chaitanya Kulkarni chaitanyak at nvidia.com
Mon Jul 18 14:37:46 PDT 2022


On 7/17/22 22:05, Christoph Hellwig wrote:
> Casting function pointers breaks control flow enforcement and is
> generally a horrible coding style.
> 
> Add two wrapper to get rid of these casts.
> 
> Signed-off-by: Christoph Hellwig <hch at lst.de>

totally, this should be avoided.

Looks good.

Reviewed-by: Chaitanya Kulkarni <kch at nvidia.com>

-ck




More information about the Linux-nvme mailing list