diff options
| author | Rikard Falkeborn <[email protected]> | 2020-11-24 23:01:09 +0000 |
|---|---|---|
| committer | Jiri Kosina <[email protected]> | 2020-11-25 13:17:22 +0000 |
| commit | 2a6a35a9ecddb2b1d58f4948f471b3be8c506640 (patch) | |
| tree | 43a5f77dd5e48a96d60e3f3e21d3cc5cd51618a3 /net/switchdev/switchdev.c | |
| parent | Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/hid... (diff) | |
| download | kernel-2a6a35a9ecddb2b1d58f4948f471b3be8c506640.tar.gz kernel-2a6a35a9ecddb2b1d58f4948f471b3be8c506640.zip | |
HID: wacom: Constify attribute_groups
These are never modified, so make them const to allow the compiler to put
them in read-only memory. It also allows the compiler to shrink the
resulting module with ~900 bytes, test-built with gcc 10.2 on x86_64.
text data bss dec hex filename
204377 42832 576 247785 3c7e9 drivers/hid/wacom_old.ko
204240 42064 576 246880 3c460 drivers/hid/wacom_new.ko
Signed-off-by: Rikard Falkeborn <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
