lkml.org 
[lkml]   [2018]   [Aug]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] block/DAC960.c: make some arrays static const, shrinks object size
From
Date
On 8/21/18 3:12 AM, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> Don't populate the arrays ReadCacheStatus, WriteCacheStatus and
> SenseErrors on the stack but instead make them static const. Makes
> the object code smaller by 47 bytes:
>
> Before:
> text data bss dec hex filename
> 160974 34628 832 196434 2ff52 drivers/block/DAC960.o
>
> After:
> text data bss dec hex filename
> 160671 34884 832 196387 2ff23 drivers/block/DAC960.o
>
> (gcc version 8.2.0 x86_64)

Applied, thanks.

--
Jens Axboe

\
 
 \ /
  Last update: 2018-08-21 19:01    [W:0.032 / U:0.956 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site