]> git.baikalelectronics.ru Git - kernel.git/commit
media: cx18: make array mapping static, makes object smaller
authorColin Ian King <colin.king@canonical.com>
Mon, 7 Oct 2019 09:52:40 +0000 (06:52 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 10 Oct 2019 10:21:28 +0000 (07:21 -0300)
commitc9c8073a6ce068349020f775a72aeed66324d8dd
tree2a3658d8ebd9524f1b53febabf3612f444590ce6
parent8da514d6c43936de01721383e41bdcafb1356666
media: cx18: make array mapping static, makes object smaller

Don't populate the array mapping on the stack but instead make it
static. Makes the object code smaller by 79 bytes.

Before:
   text    data     bss     dec     hex filename
  27572    2096       0   29668    73e4 drivers/media/pci/cx18/cx18-ioctl.o

After:
   text    data     bss     dec     hex filename
  27429    2160       0   29589    7395 drivers/media/pci/cx18/cx18-ioctl.o

(gcc version 9.2.1, amd64)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/pci/cx18/cx18-ioctl.c