]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: venus: Constify struct dec_bufsize_ops and enc_bufsize_ops
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 2 Jun 2024 14:27:34 +0000 (16:27 +0200)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Sun, 25 Aug 2024 07:16:07 +0000 (09:16 +0200)
commitcd7a060df5b7b03966af0f3474571bf85fadafaf
treee7366b41c32cdcbe55e2b9386c7e9282c214b3a7
parentc5a85ed88e043474161bbfe54002c89c1cb50ee2
media: venus: Constify struct dec_bufsize_ops and enc_bufsize_ops

"struct dec_bufsize_ops and "struct enc_bufsize_ops" are not modified in
this driver.

Constifying these structures moves some data to a read-only section, so
increase overall security.

On a x86_64, with allmodconfig:
Before:
   text    data     bss     dec     hex filename
  12494     822       0   13316    3404 drivers/media/platform/qcom/venus/hfi_plat_bufs_v6.o

After:
   text    data     bss     dec     hex filename
  12766     566       0   13332    3414 drivers/media/platform/qcom/venus/hfi_plat_bufs_v6.o

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Stanimir Varbanov <stanimir.k.varbanov@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/platform/qcom/venus/hfi_plat_bufs_v6.c