Skip to content

Commit c549e81

Browse files
rikardfalkebornherbertx
authored andcommitted
crypto: hisilicon/sec2 - constify sec_dfx_regs
sec_dfx_regs is never changed and can therefore be made const. This allows the compiler to put it in the text section instead of the data section. Before: text data bss dec hex filename 17982 7312 480 25774 64ae drivers/crypto/hisilicon/sec2/sec_main.o After: text data bss dec hex filename 18366 6928 480 25774 64ae drivers/crypto/hisilicon/sec2/sec_main.o Signed-off-by: Rikard Falkeborn <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 8f68659 commit c549e81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/crypto/hisilicon/sec2/sec_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ static const char * const sec_dbg_file_name[] = {
110110
[SEC_CLEAR_ENABLE] = "clear_enable",
111111
};
112112

113-
static struct debugfs_reg32 sec_dfx_regs[] = {
113+
static const struct debugfs_reg32 sec_dfx_regs[] = {
114114
{"SEC_PF_ABNORMAL_INT_SOURCE ", 0x301010},
115115
{"SEC_SAA_EN ", 0x301270},
116116
{"SEC_BD_LATENCY_MIN ", 0x301600},

0 commit comments

Comments
 (0)