lkml.org 
[lkml]   [2020]   [Nov]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] HID: wacom: Constify attribute_groups
    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.
    >
    > 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

    Applied, thanks Rikard.

    --
    Jiri Kosina
    SUSE Labs

    \
     
     \ /
      Last update: 2020-11-25 14:19    [W:4.092 / U:0.888 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site