]> git.baikalelectronics.ru Git - kernel.git/commit
media: mxl692: make a const array static, makes object smaller
authorColin Ian King <colin.king@canonical.com>
Wed, 5 May 2021 19:06:18 +0000 (21:06 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 8 Jun 2021 13:50:38 +0000 (15:50 +0200)
commit333c47ed4aa0cb63a8db10ad3c7d367976b20ddb
treea06cc717fc42d99cfa17ae6dd4686b4fd50fdce4
parentcf5a6fd04d87cd2df514fda6d5cd8583d3ba41cc
media: mxl692: make a const array static, makes object smaller

Don't populate the const array fw_hdr on the stack but instead it
static. Makes the object code smaller by 5 bytes:

Before:
   text    data    bss     dec    hex filename
  31948   12072     64   44084   ac34 drivers/media/dvb-frontends/mxl692.o

After:
   text    data    bss     dec    hex filename
  31879   12136     64   44079   ac2f drivers/media/dvb-frontends/mxl692.o

(gcc version 10.3.0)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/dvb-frontends/mxl692.c