diff options
author | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-06-24 08:46:54 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-06-24 08:46:54 -0400 |
commit | 114e877a8f89113ffdef8c6a751048c660a6c9f3 (patch) | |
tree | d821af7ad3c8762216e66980ba0713ca99d61918 /drivers/media/pci | |
parent | 123818ee8c401d62af272e139c7ca04ee886f720 (diff) |
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>
Diffstat (limited to 'drivers/media/pci')
-rw-r--r-- | drivers/media/pci/cx25821/cx25821-alsa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/cx25821/cx25821-alsa.c b/drivers/media/pci/cx25821/cx25821-alsa.c index b602eba2b601..df189b16af12 100644 --- a/drivers/media/pci/cx25821/cx25821-alsa.c +++ b/drivers/media/pci/cx25821/cx25821-alsa.c | |||
@@ -693,7 +693,7 @@ static int snd_cx25821_pcm(struct cx25821_audio_dev *chip, int device, | |||
693 | * Only boards with eeprom and byte 1 at eeprom=1 have it | 693 | * Only boards with eeprom and byte 1 at eeprom=1 have it |
694 | */ | 694 | */ |
695 | 695 | ||
696 | static const struct pci_device_id cx25821_audio_pci_tbl[] = { | 696 | static const struct pci_device_id __maybe_unused cx25821_audio_pci_tbl[] = { |
697 | {0x14f1, 0x0920, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, | 697 | {0x14f1, 0x0920, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, |
698 | {0,} | 698 | {0,} |
699 | }; | 699 | }; |