linux-loongson/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
..
bman_ccsr.c soc: fsl: qbman: Remove RESERVEDMEM_OF_DECLARE usage 2024-03-06 18:30:59 -06:00
bman_portal.c cpumask: replace cpumask_next_* with cpumask_first_* where appropriate 2022-01-15 08:47:31 -08:00
bman_priv.h
bman_test_api.c
bman_test.c
bman_test.h
bman.c
dpaa_sys.c soc: fsl: qbman: Remove RESERVEDMEM_OF_DECLARE usage 2024-03-06 18:30:59 -06:00
dpaa_sys.h soc: fsl: qbman: Remove RESERVEDMEM_OF_DECLARE usage 2024-03-06 18:30:59 -06:00
Kconfig soc: fsl: qbman: FSL_DPAA depends on COMPILE_TEST 2024-07-14 20:26:16 -07:00
Makefile
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_api.c
qman_test_stash.c soc/qman: test: Use kthread_run_on_cpu() 2025-01-02 22:12:12 +01:00
qman_test.c
qman_test.h
qman.c soc: fsl: qbman: Remove const from portal->cgrs allocation type 2025-05-13 01:38:56 +02:00