diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-01-30 17:10:58 +0800 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-01-30 10:17:52 +0100 |
commit | 8422fa110334cea79ab16c474902edb21a8b3168 (patch) | |
tree | 9f1406c099192caaaa11b3ff7e7bad3b3cf40a6b /include | |
parent | a389d67cf9849aff1722ed73186a584e2196a873 (diff) | |
download | linux-8422fa110334cea79ab16c474902edb21a8b3168.tar.gz linux-8422fa110334cea79ab16c474902edb21a8b3168.tar.bz2 linux-8422fa110334cea79ab16c474902edb21a8b3168.zip |
ALSA: Add #ifdef CONFIG_PCI guard for snd_pci_quirk_* functions
This fixes below build warning when CONFIG_PCI is not set.
CC sound/sound_core.o
In file included from sound/sound_core.c:15:
include/sound/core.h:454: warning: 'struct pci_dev' declared inside parameter list
include/sound/core.h:454: warning: its scope is only this definition or declaration, which is probably not what you want
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/sound/core.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sound/core.h b/include/sound/core.h index 5ab255f196cc..cea1b5426dfa 100644 --- a/include/sound/core.h +++ b/include/sound/core.h @@ -417,6 +417,7 @@ static inline int __snd_bug_on(int cond) #define gameport_get_port_data(gp) (gp)->port_data #endif +#ifdef CONFIG_PCI /* PCI quirk list helper */ struct snd_pci_quirk { unsigned short subvendor; /* PCI subvendor ID */ @@ -456,5 +457,6 @@ snd_pci_quirk_lookup(struct pci_dev *pci, const struct snd_pci_quirk *list); const struct snd_pci_quirk * snd_pci_quirk_lookup_id(u16 vendor, u16 device, const struct snd_pci_quirk *list); +#endif #endif /* __SOUND_CORE_H */ |