diff options
author | Andi Kleen <ak@linux.intel.com> | 2012-08-19 04:56:22 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-08-20 11:53:10 +0200 |
commit | 8dea9d382a7aca9ebb48a80a34d7e1cf4ac8dcb2 (patch) | |
tree | 58fbfc10128b9eded4cec05915d577b1b6b223dc /sound | |
parent | ALSA: hda - Check the power state when power_save option is changed (diff) | |
download | linux-8dea9d382a7aca9ebb48a80a34d7e1cf4ac8dcb2.tar.xz linux-8dea9d382a7aca9ebb48a80a34d7e1cf4ac8dcb2.zip |
ALSA: lto, sound: Fix export symbols for !CONFIG_MODULES
The new LTO EXPORT_SYMBOL references symbols even without CONFIG_MODULES.
Since these functions are macros in this case this doesn't work.
Add a ifdef to fix the build.
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/core/seq/seq_device.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/core/seq/seq_device.c b/sound/core/seq/seq_device.c index 5cf8d65ed5ef..60e8fc1b3440 100644 --- a/sound/core/seq/seq_device.c +++ b/sound/core/seq/seq_device.c @@ -569,5 +569,7 @@ EXPORT_SYMBOL(snd_seq_device_load_drivers); EXPORT_SYMBOL(snd_seq_device_new); EXPORT_SYMBOL(snd_seq_device_register_driver); EXPORT_SYMBOL(snd_seq_device_unregister_driver); +#ifdef CONFIG_MODULES EXPORT_SYMBOL(snd_seq_autoload_lock); EXPORT_SYMBOL(snd_seq_autoload_unlock); +#endif |