lkml.org 
[lkml]   [2018]   [Feb]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH][next] HID: asus: make array 'buf' static const, shrinks object size
On Sat, 6 Jan 2018, Colin King wrote:

> From: Colin Ian King <colin.king@canonical.com>
>
> Don't populate the const read-only array 'buf' on the stack but instead
> make it stati. Makes the object code smaller by 26 bytes:
>
> Before:
> text data bss dec hex filename
> 14378 2384 64 16826 41ba linux/drivers/hid/hid-asus.o
>
> After:
> text data bss dec hex filename
> 14296 2440 64 16800 41a0 linux/drivers/hid/hid-asus.o
>
> (gcc version 7.2.0 x86_64)
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>

Applied to for-4.17/upstream.

--
Jiri Kosina
SUSE Labs

\
 
 \ /
  Last update: 2018-02-16 13:35    [W:0.119 / U:0.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site