]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
media: atomisp: make const arrays static, makes object smaller
authorColin Ian King <colin.king@canonical.com>
Thu, 11 Jun 2020 14:08:31 +0000 (16:08 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sat, 18 Jul 2020 06:58:26 +0000 (08:58 +0200)
commitfb2595456d75d688305690fb555fe8d31b18f673
treedc9f23eb2f98b2b490a6d629528f29878ac1bf47
parent3a0744603a042fc2dae70845923bce0e50d634fb
media: atomisp: make const arrays static, makes object smaller

Don't populate const arrays on the stack but instead make them
static. Makes the object code smaller by 150 bytes.

Before:
   text    data     bss     dec     hex filename
 111083   23692      64  134839   20eb7 atomisp/pci/atomisp_compat_css20.o

After:
   text    data     bss     dec     hex filename
 110773   23852      64  134689   20e21 atomisp/pci/atomisp_compat_css20.o

After:

(gcc version 9.3.0, amd64)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c