Re: [PATCH] HID: wacom: Constify attribute_groups

2020-11-25 Thread Jiri Kosina
On Wed, 25 Nov 2020, Rikard Falkeborn wrote: > 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. > >textdata bss de

[PATCH] HID: wacom: Constify attribute_groups

2020-11-24 Thread Rikard Falkeborn
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. textdata bss dec hex filename 204377 42832 576 247785 3c7