summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorKees Cook <kees+treewide@kernel.org>2026-09-17 14:12:54 -0700
committerKrzysztof Kozlowski <krzk@kernel.org>2026-09-20 17:07:55 +0200
commite3049c9edd4181e5ce4f83bbac4b611d921f45ff (patch)
tree09f343f4c45e273a6685f896044efa0c89b22fb8 /tools/perf/scripts/python/task-analyzer.py
parent771c036d72eefe36aa6c953ecf44bee4c000a368 (diff)
memory: emif: Remove const from min_tck allocation type
In preparation for making the devm_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 size was taken from "*pd->min_tck", so the converted allocation type would be "const struct lpddr2_min_tck *", as "pd->min_tck" points to const. The allocation is a writable copy assigned to a "void *" and then memcpy()ed into, so name the unqualified type directly, for a converted allocation type of "struct lpddr2_min_tck *". As there is no general way to remove const qualifiers, this keeps the allocation type matching how the memory is used. No change in allocation size results. Build tested ARCH=x86_64 allmodconfig with GCC 16.2.0: drivers/memory/emif.o Assisted-by: LLM coccinelle Signed-off-by: Kees Cook <kees+treewide@kernel.org> Link: https://patch.msgid.link/20260917211253.i.532-kees@kernel.org Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions