diff options
author | Rikard Falkeborn <[email protected]> | 2020-07-01 22:09:50 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2020-07-10 14:50:51 +0200 |
commit | 8b66c917c41b966cd230d30c0268795e3f9eb5e4 (patch) | |
tree | 185dfd2242b8ca3a07e24a3ec7a81f325ce9ca70 /tools/perf/scripts/python | |
parent | 729082ed9b9cc242f5030de8f956b4be41150ea7 (diff) |
virtio_console: Constify some static variables
The id_table and feature_table pointers in struct virtio_driver are
pointers to const. Mark the corresponding static variables const to
allow the compiler to put them in read-only memory.
Before:
text data bss dec hex filename
25447 713 76 26236 667c drivers/char/virtio_console.o
After:
text data bss dec hex filename
25488 673 76 26237 667d drivers/char/virtio_console.o
Signed-off-by: Rikard Falkeborn <[email protected]>
Acked-by: Arnd Bergmann <[email protected]>
Reviewed-by: Amit Shah <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions