Re: [PATCH] interconnect: qcom: Constify struct qcom_icc_qosbox

From: Konrad Dybcio

Date: Mon Aug 17 2026 - 04:00:20 EST


On 8/12/26 7:08 PM, Christophe JAILLET wrote:
> 'struct qcom_icc_qosbox' are not modified in these drivers.
>
> Constifying these structures moves some data to a read-only section, so
> increases overall security.
>
> On a x86_64, with allmodconfig:
> Before:
> ======
> text data bss dec hex filename
> 7807 18632 0 26439 6747 drivers/interconnect/qcom/eliza.o
> 10027 20176 0 30203 75fb drivers/interconnect/qcom/milos.o
> 8768 22640 0 31408 7ab0 drivers/interconnect/qcom/sm6350.o
> 7626 22000 0 29626 73ba drivers/interconnect/qcom/sm8650.o
>
> After:
> =====
> text data bss dec hex filename
> 8095 18344 0 26439 6747 drivers/interconnect/qcom/eliza.o
> 11079 19120 0 30199 75f7 drivers/interconnect/qcom/milos.o
> 9668 21744 0 31412 7ab4 drivers/interconnect/qcom/sm6350.o
> 8746 20880 0 29626 73ba drivers/interconnect/qcom/sm8650.o
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx>
> ---

Thanks!

Reviewed-by: Konrad Dybcio <konrad.dybcio@xxxxxxxxxxxxxxxx>

Konrad