Skip to content

Commit 8f68659

Browse files
rikardfalkebornherbertx
authored andcommitted
crypto: hisilicon/zip - constify struct debugfs_reg32
hzip_dfx_regs is never changed and can 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 15236 6160 480 21876 5574 drivers/crypto/hisilicon/zip/zip_main.o After: text data bss dec hex filename 15620 5776 480 21876 5574 drivers/crypto/hisilicon/zip/zip_main.o Signed-off-by: Rikard Falkeborn <[email protected]> Reviewed-by: Zhou Wang <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 2c2207a commit 8f68659

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/crypto/hisilicon/zip/zip_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ static const u64 core_offsets[] = {
165165
[HZIP_DECOMP_CORE5] = 0x309000,
166166
};
167167

168-
static struct debugfs_reg32 hzip_dfx_regs[] = {
168+
static const struct debugfs_reg32 hzip_dfx_regs[] = {
169169
{"HZIP_GET_BD_NUM ", 0x00ull},
170170
{"HZIP_GET_RIGHT_BD ", 0x04ull},
171171
{"HZIP_GET_ERROR_BD ", 0x08ull},

0 commit comments

Comments
 (0)