Re: [PATCH 5/5] virtio_console: Constify some static variables

2020-07-05 Thread Joe Perches
On Sun, 2020-07-05 at 20:30 +0200, Amit Shah wrote: > On (Wed) 01 Jul 2020 [22:09:50], Rikard Falkeborn wrote: > > 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

Re: [PATCH 5/5] virtio_console: Constify some static variables

2020-07-05 Thread Amit Shah
On (Wed) 01 Jul 2020 [22:09:50], Rikard Falkeborn wrote: > 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: >textdata bss dec

[PATCH 5/5] virtio_console: Constify some static variables

2020-07-01 Thread Rikard Falkeborn
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: textdata bss dec hex filename 25447 713 76 26236667c