]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: perf: Constify static attribute_group structs
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Sun, 31 Jan 2021 14:36:15 +0000 (15:36 +0100)
committerWill Deacon <will@kernel.org>
Tue, 2 Feb 2021 18:46:05 +0000 (18:46 +0000)
commita053977c11c918880d2d06c1bf103d3f35690635
tree7af5a42f23ae9ad14d4b9f9cd648b41a2e9dca2c
parentffa879b7f6c41f95cd19000ca1c28a7ac96d2ace
arm64: perf: Constify static attribute_group structs

The only usage of these is to put their addresses in an array of
pointers to const attribute_group structs. Make them const to allow the
compiler to put them in read-only memory.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/perf_event.c