[PATCH 06/12] nouveau: fix function cast warning

Timur Tabi ttabi at nvidia.com
Tue Mar 26 15:20:18 UTC 2024


On Tue, 2024-03-26 at 15:51 +0100, Arnd Bergmann wrote:
> Calling a function through an incompatible pointer type causes breaks
> kcfi, so clang warns about the assignment:
> 

...

> +static void of_fini(void *p)
> +{
> +       return kfree(p);
> +}
> +

I don't know anything about kfci, but shouldn't this just be "kfree(p)",
without the "return"?



More information about the Nouveau mailing list