diff options
| author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-07-23 15:31:07 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-07-30 07:35:28 -0700 |
| commit | 3637c46032515fe975f652d315ccd2076026c522 (patch) | |
| tree | a1376c1a3992b59a05a26d96496dcc9a4838ae4f /tools/perf/scripts/python/stackcollapse.py | |
| parent | tty: moxa: constify pci_device_id. (diff) | |
| download | linux-3637c46032515fe975f652d315ccd2076026c522.tar.gz linux-3637c46032515fe975f652d315ccd2076026c522.zip | |
tty: serial: exar: constify pci_device_id.
pci_device_id are not supposed to change at runtime. All functions
working with pci_device_id provided by <linux/pci.h> work with
const pci_device_id. So mark the non-const structs as const.
File size before:
text data bss dec hex filename
4030 1280 0 5310 14be tty/serial/8250/8250_exar.o
File size After adding 'const':
text data bss dec hex filename
4958 352 0 5310 14be tty/serial/8250/8250_exar.o
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
