]> git.baikalelectronics.ru Git - kernel.git/commit
media: gspca: make array st6422_bridge_init static, makes object smaller
authorColin Ian King <colin.king@canonical.com>
Mon, 7 Oct 2019 10:18:48 +0000 (07:18 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 10 Oct 2019 10:21:46 +0000 (07:21 -0300)
commitc51b4b0d55f705cfc7758b5f088e6ef75f30fa60
treee03af6e6c1e05f1cfb2f296dc1329191c7239bc8
parentc9c8073a6ce068349020f775a72aeed66324d8dd
media: gspca: make array st6422_bridge_init static, makes object smaller

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

Before:
   text    data     bss     dec     hex filename
   3419     752      64    4235    108b gspca/stv06xx/stv06xx_st6422.o

After:
   text    data     bss     dec     hex filename
   3124     816      64    4004     fa4 gspca/stv06xx/stv06xx_st6422.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/usb/gspca/stv06xx/stv06xx_st6422.c