summaryrefslogtreecommitdiffstats
path: root/sound/core
diff options
context:
space:
mode:
authorAndi Kleen <ak@linux.intel.com>2012-08-18 19:56:22 -0700
committerTakashi Iwai <tiwai@suse.de>2012-08-20 11:53:10 +0200
commit8dea9d382a7aca9ebb48a80a34d7e1cf4ac8dcb2 (patch)
tree58fbfc10128b9eded4cec05915d577b1b6b223dc /sound/core
parent65fcd41d371f4464c3f5a0433a8056cc3d739397 (diff)
downloadop-kernel-dev-8dea9d382a7aca9ebb48a80a34d7e1cf4ac8dcb2.zip
op-kernel-dev-8dea9d382a7aca9ebb48a80a34d7e1cf4ac8dcb2.tar.gz
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/core')
-rw-r--r--sound/core/seq/seq_device.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/core/seq/seq_device.c b/sound/core/seq/seq_device.c
index 5cf8d65..60e8fc1 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
OpenPOWER on IntegriCloud