mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-08-28 00:19:36 +00:00
![]() 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. Signed-off-by: Kees Cook <kees@kernel.org> Link: https://lore.kernel.org/r/20250426062040.work.047-kees@kernel.org Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu> |
||
---|---|---|
.. | ||
bman_ccsr.c | ||
bman_portal.c | ||
bman_priv.h | ||
bman_test_api.c | ||
bman_test.c | ||
bman_test.h | ||
bman.c | ||
dpaa_sys.c | ||
dpaa_sys.h | ||
Kconfig | ||
Makefile | ||
qman_ccsr.c | ||
qman_portal.c | ||
qman_priv.h | ||
qman_test_api.c | ||
qman_test_stash.c | ||
qman_test.c | ||
qman_test.h | ||
qman.c |