lkml.org 
[lkml]   [2012]   [Aug]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 26/74] lto, sound: Fix export symbols for !CONFIG_MODULES
    Date
    From: Andi Kleen <ak@linux.intel.com>

    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.

    Cc: tiwai@suse.de
    Signed-off-by: Andi Kleen <ak@linux.intel.com>
    ---
    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 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
    --
    1.7.7.6


    \
     
     \ /
      Last update: 2012-08-19 06:01    [W:0.022 / U:1.648 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site