Re: [PATCH] coresight: cti: Add const to con_groups allocation type

From: Leo Yan

Date: Mon Sep 28 2026 - 04:46:53 EST


On Thu, Sep 17, 2026 at 02:14:29PM -0700, Kees Cook wrote:
> From: Kees Cook <kees+treewide@xxxxxxxxxx>

> ... As there is no general way to
> safely add const qualifiers, take the size from the assignment target
> instead. No change in allocation size results.
>
> Build tested ARCH=arm64 allmodconfig with GCC aarch64-linux-gnu 16.1.0:
> drivers/hwtracing/coresight/coresight-cti-sysfs.o
>
> Assisted-by: LLM coccinelle
> Signed-off-by: Kees Cook <kees+treewide@xxxxxxxxxx>

Reviewed-by: Leo Yan <leo.yan@xxxxxxx>