]> git.baikalelectronics.ru Git - kernel.git/commit
media: ti-vpe: avoid gcc-9 warning
authorArnd Bergmann <arnd@arndb.de>
Tue, 28 Apr 2020 21:34:19 +0000 (23:34 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 5 May 2020 15:24:35 +0000 (17:24 +0200)
commitfcb14c5f653c9e49d6ca74c2127b692a06a348fd
tree3da7108ac72d487a8c8afa8c6bda77798f1f86de
parent9e1df9cfc97caa6b2136991aa10bc97d39d5a3fc
media: ti-vpe: avoid gcc-9 warning

gcc warns about empty array declarations, which we get in this driver
when compile-testing without CONFIG_OF:

drivers/media/platform/ti-vpe/cal.c:2194:34: warning: array 'cal_of_match' assumed to have one element
 2194 | static const struct of_device_id cal_of_match[];

Since all users of this driver do need CONFIG_OF anyway, there is no
point in making the array definition conditional to save space, so
just remove the #ifdef and move the array up a little.

Fixes: 5af8bdff419c ("[media] media: ti-vpe: Add CAL v4l2 camera capture driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Benoit Parrot <bparrot@ti.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/ti-vpe/cal.c