]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cx25821-alsa: shutup a Gcc 6.1 warning
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 24 Jun 2016 12:46:54 +0000 (09:46 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 24 Jun 2016 12:46:54 +0000 (09:46 -0300)
commit114e877a8f89113ffdef8c6a751048c660a6c9f3
treed821af7ad3c8762216e66980ba0713ca99d61918
parent123818ee8c401d62af272e139c7ca04ee886f720
cx25821-alsa: shutup a Gcc 6.1 warning

The PCI device ID table is only used if compiled with modules
support. When compiled with modules disabled, this is now
producing this bogus warning:

drivers/media/pci/cx25821/cx25821-alsa.c:696:35: warning: 'cx25821_audio_pci_tbl' defined but not used [-Wunused-const-variable=]
 static const struct pci_device_id cx25821_audio_pci_tbl[] = {
                                   ^~~~~~~~~~~~~~~~~~~~~

Fix it by annotating that the function may not be used.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/pci/cx25821/cx25821-alsa.c