diff options
author | Andi Kleen <ak@linux.intel.com> | 2012-08-18 19:56:22 -0700 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-08-20 11:53:10 +0200 |
commit | 8dea9d382a7aca9ebb48a80a34d7e1cf4ac8dcb2 (patch) | |
tree | 58fbfc10128b9eded4cec05915d577b1b6b223dc | |
parent | 65fcd41d371f4464c3f5a0433a8056cc3d739397 (diff) |
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>
-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 5cf8d65ed5e..60e8fc1b344 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 |