From: Andi Kleen Date: Sun, 19 Aug 2012 02:56:22 +0000 (-0700) Subject: ALSA: lto, sound: Fix export symbols for !CONFIG_MODULES X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8dea9d382a7aca9ebb48a80a34d7e1cf4ac8dcb2;p=linux-beck.git 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 Signed-off-by: Takashi Iwai --- 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