[PATCH] soc: fsl: qbman: Remove const from portal->cgrs allocation type
Christophe Leroy
christophe.leroy at csgroup.eu
Sat May 17 20:19:35 AEST 2025
On Fri, 25 Apr 2025 23:20:41 -0700, Kees Cook wrote:
> In preparation for making the kmalloc family of allocators type aware,
> we need to make sure that the returned type from the allocation matches
> the type of the variable being assigned. (Before, the allocator would
> always return "void *", which can be implicitly cast to any pointer type.)
>
> The assigned type is "struct qman_cgrs *", but the returned type,
> while technically matching, is const qualified. As there is no general
> way to remove const qualifiers, adjust the allocation type to match
> the assignment.
>
> [...]
Applied, thanks!
[1/1] soc: fsl: qbman: Remove const from portal->cgrs allocation type
commit: 5ddac92be4209f29ec26b3ec59a08fc76afe9ab1
Best regards,
--
Christophe Leroy <christophe.leroy at csgroup.eu>
More information about the Linuxppc-dev
mailing list