ALSA: lto, sound: Fix export symbols for !CONFIG_MODULES
authorAndi Kleen <ak@linux.intel.com>
Sun, 19 Aug 2012 02:56:22 +0000 (19:56 -0700)
committerTakashi Iwai <tiwai@suse.de>
Mon, 20 Aug 2012 09:53:10 +0000 (11:53 +0200)
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>
sound/core/seq/seq_device.c

index 5cf8d65ed5ef2cc9fe8cbce1d7275fc7b0745b14..60e8fc1b344041d27086d4dfde7786b8d8ac85ec 100644 (file)
@@ -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