mirror-linux/drivers/soc/fsl/qbman
Kees Cook 5ddac92be4 soc: fsl: qbman: Remove const from portal->cgrs allocation type
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>
2025-05-13 01:38:56 +02:00
..
Kconfig soc: fsl: qbman: FSL_DPAA depends on COMPILE_TEST 2024-07-14 20:26:16 -07:00
Makefile
bman.c
bman_ccsr.c
bman_portal.c
bman_priv.h
bman_test.c
bman_test.h
bman_test_api.c
dpaa_sys.c
dpaa_sys.h
qman.c soc: fsl: qbman: Remove const from portal->cgrs allocation type 2025-05-13 01:38:56 +02:00
qman_ccsr.c soc: fsl: qbman: Remove redundant warnings 2024-09-03 07:50:57 +02:00
qman_portal.c soc: fsl: qbman: Use iommu_paging_domain_alloc() 2024-09-03 07:50:57 +02:00
qman_priv.h
qman_test.c
qman_test.h
qman_test_api.c
qman_test_stash.c soc/qman: test: Use kthread_run_on_cpu() 2025-01-02 22:12:12 +01:00