Skip to content

Commit

Permalink
sound: Add export.h for THIS_MODULE/EXPORT_SYMBOL where needed
Browse files Browse the repository at this point in the history
These aren't modules, but they do make use of these macros, so
they will need export.h to get that definition.  Previously,
they got it via the implicit module.h inclusion.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
  • Loading branch information
paulgortmaker committed Oct 31, 2011
1 parent da155d5 commit d81a6d7
Show file tree
Hide file tree
Showing 45 changed files with 45 additions and 0 deletions.
1 change: 1 addition & 0 deletions sound/core/device.c
Expand Up @@ -21,6 +21,7 @@


#include <linux/slab.h> #include <linux/slab.h>
#include <linux/time.h> #include <linux/time.h>
#include <linux/export.h>
#include <linux/errno.h> #include <linux/errno.h>
#include <sound/core.h> #include <sound/core.h>


Expand Down
1 change: 1 addition & 0 deletions sound/core/info_oss.c
Expand Up @@ -22,6 +22,7 @@
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/time.h> #include <linux/time.h>
#include <linux/string.h> #include <linux/string.h>
#include <linux/export.h>
#include <sound/core.h> #include <sound/core.h>
#include <sound/minors.h> #include <sound/minors.h>
#include <sound/info.h> #include <sound/info.h>
Expand Down
1 change: 1 addition & 0 deletions sound/core/isadma.c
Expand Up @@ -26,6 +26,7 @@


#undef HAVE_REALLY_SLOW_DMA_CONTROLLER #undef HAVE_REALLY_SLOW_DMA_CONTROLLER


#include <linux/export.h>
#include <sound/core.h> #include <sound/core.h>
#include <asm/dma.h> #include <asm/dma.h>


Expand Down
1 change: 1 addition & 0 deletions sound/core/memory.c
Expand Up @@ -20,6 +20,7 @@
* *
*/ */


#include <linux/export.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <sound/core.h> #include <sound/core.h>
Expand Down
1 change: 1 addition & 0 deletions sound/core/misc.c
Expand Up @@ -20,6 +20,7 @@
*/ */


#include <linux/init.h> #include <linux/init.h>
#include <linux/export.h>
#include <linux/moduleparam.h> #include <linux/moduleparam.h>
#include <linux/time.h> #include <linux/time.h>
#include <linux/slab.h> #include <linux/slab.h>
Expand Down
1 change: 1 addition & 0 deletions sound/core/pcm_lib.c
Expand Up @@ -23,6 +23,7 @@
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/time.h> #include <linux/time.h>
#include <linux/math64.h> #include <linux/math64.h>
#include <linux/export.h>
#include <sound/core.h> #include <sound/core.h>
#include <sound/control.h> #include <sound/control.h>
#include <sound/info.h> #include <sound/info.h>
Expand Down
1 change: 1 addition & 0 deletions sound/core/pcm_memory.c
Expand Up @@ -25,6 +25,7 @@
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/moduleparam.h> #include <linux/moduleparam.h>
#include <linux/vmalloc.h> #include <linux/vmalloc.h>
#include <linux/export.h>
#include <sound/core.h> #include <sound/core.h>
#include <sound/pcm.h> #include <sound/pcm.h>
#include <sound/info.h> #include <sound/info.h>
Expand Down
1 change: 1 addition & 0 deletions sound/core/pcm_misc.c
Expand Up @@ -20,6 +20,7 @@
*/ */


#include <linux/time.h> #include <linux/time.h>
#include <linux/export.h>
#include <sound/core.h> #include <sound/core.h>
#include <sound/pcm.h> #include <sound/pcm.h>
#define SND_PCM_FORMAT_UNKNOWN (-1) #define SND_PCM_FORMAT_UNKNOWN (-1)
Expand Down
1 change: 1 addition & 0 deletions sound/core/seq/oss/seq_oss_init.c
Expand Up @@ -28,6 +28,7 @@
#include "seq_oss_timer.h" #include "seq_oss_timer.h"
#include "seq_oss_event.h" #include "seq_oss_event.h"
#include <linux/init.h> #include <linux/init.h>
#include <linux/export.h>
#include <linux/moduleparam.h> #include <linux/moduleparam.h>
#include <linux/slab.h> #include <linux/slab.h>


Expand Down
1 change: 1 addition & 0 deletions sound/core/seq/seq_clientmgr.c
Expand Up @@ -22,6 +22,7 @@
*/ */


#include <linux/init.h> #include <linux/init.h>
#include <linux/export.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <sound/core.h> #include <sound/core.h>
#include <sound/minors.h> #include <sound/minors.h>
Expand Down
1 change: 1 addition & 0 deletions sound/core/seq/seq_info.c
Expand Up @@ -20,6 +20,7 @@
*/ */


#include <linux/init.h> #include <linux/init.h>
#include <linux/export.h>
#include <sound/core.h> #include <sound/core.h>


#include "seq_info.h" #include "seq_info.h"
Expand Down
1 change: 1 addition & 0 deletions sound/core/seq/seq_lock.c
Expand Up @@ -19,6 +19,7 @@
* *
*/ */


#include <linux/export.h>
#include <sound/core.h> #include <sound/core.h>
#include "seq_lock.h" #include "seq_lock.h"


Expand Down
1 change: 1 addition & 0 deletions sound/core/seq/seq_memory.c
Expand Up @@ -21,6 +21,7 @@
*/ */


#include <linux/init.h> #include <linux/init.h>
#include <linux/export.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/vmalloc.h> #include <linux/vmalloc.h>
#include <sound/core.h> #include <sound/core.h>
Expand Down
1 change: 1 addition & 0 deletions sound/core/seq/seq_system.c
Expand Up @@ -20,6 +20,7 @@
*/ */


#include <linux/init.h> #include <linux/init.h>
#include <linux/export.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <sound/core.h> #include <sound/core.h>
#include "seq_system.h" #include "seq_system.h"
Expand Down
1 change: 1 addition & 0 deletions sound/core/sound_oss.c
Expand Up @@ -26,6 +26,7 @@
#endif #endif


#include <linux/init.h> #include <linux/init.h>
#include <linux/export.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/time.h> #include <linux/time.h>
#include <sound/core.h> #include <sound/core.h>
Expand Down
1 change: 1 addition & 0 deletions sound/core/vmaster.c
Expand Up @@ -10,6 +10,7 @@
*/ */


#include <linux/slab.h> #include <linux/slab.h>
#include <linux/export.h>
#include <sound/core.h> #include <sound/core.h>
#include <sound/control.h> #include <sound/control.h>
#include <sound/tlv.h> #include <sound/tlv.h>
Expand Down
1 change: 1 addition & 0 deletions sound/drivers/opl3/opl3_oss.c
Expand Up @@ -18,6 +18,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */


#include <linux/export.h>
#include "opl3_voice.h" #include "opl3_voice.h"


static int snd_opl3_open_seq_oss(struct snd_seq_oss_arg *arg, void *closure); static int snd_opl3_open_seq_oss(struct snd_seq_oss_arg *arg, void *closure);
Expand Down
1 change: 1 addition & 0 deletions sound/drivers/opl3/opl3_synth.c
Expand Up @@ -20,6 +20,7 @@
*/ */


#include <linux/slab.h> #include <linux/slab.h>
#include <linux/export.h>
#include <sound/opl3.h> #include <sound/opl3.h>
#include <sound/asound_fm.h> #include <sound/asound_fm.h>


Expand Down
1 change: 1 addition & 0 deletions sound/drivers/opl4/opl4_proc.c
Expand Up @@ -19,6 +19,7 @@


#include "opl4_local.h" #include "opl4_local.h"
#include <linux/vmalloc.h> #include <linux/vmalloc.h>
#include <linux/export.h>
#include <sound/info.h> #include <sound/info.h>


#ifdef CONFIG_PROC_FS #ifdef CONFIG_PROC_FS
Expand Down
1 change: 1 addition & 0 deletions sound/firewire/iso-resources.c
Expand Up @@ -8,6 +8,7 @@
#include <linux/device.h> #include <linux/device.h>
#include <linux/firewire.h> #include <linux/firewire.h>
#include <linux/firewire-constants.h> #include <linux/firewire-constants.h>
#include <linux/export.h>
#include <linux/jiffies.h> #include <linux/jiffies.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/sched.h> #include <linux/sched.h>
Expand Down
1 change: 1 addition & 0 deletions sound/firewire/packets-buffer.c
Expand Up @@ -6,6 +6,7 @@
*/ */


#include <linux/firewire.h> #include <linux/firewire.h>
#include <linux/export.h>
#include <linux/slab.h> #include <linux/slab.h>
#include "packets-buffer.h" #include "packets-buffer.h"


Expand Down
1 change: 1 addition & 0 deletions sound/isa/gus/gus_volume.c
Expand Up @@ -19,6 +19,7 @@
*/ */


#include <linux/time.h> #include <linux/time.h>
#include <linux/export.h>
#include <sound/core.h> #include <sound/core.h>
#include <sound/gus.h> #include <sound/gus.h>
#define __GUS_TABLES_ALLOC__ #define __GUS_TABLES_ALLOC__
Expand Down
1 change: 1 addition & 0 deletions sound/isa/msnd/msnd_midi.c
Expand Up @@ -29,6 +29,7 @@
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/ioport.h> #include <linux/ioport.h>
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/export.h>
#include <sound/core.h> #include <sound/core.h>
#include <sound/rawmidi.h> #include <sound/rawmidi.h>


Expand Down
1 change: 1 addition & 0 deletions sound/isa/msnd/msnd_pinnacle_mixer.c
Expand Up @@ -16,6 +16,7 @@
***************************************************************************/ ***************************************************************************/


#include <linux/io.h> #include <linux/io.h>
#include <linux/export.h>


#include <sound/core.h> #include <sound/core.h>
#include <sound/control.h> #include <sound/control.h>
Expand Down
1 change: 1 addition & 0 deletions sound/isa/sb/emu8000.c
Expand Up @@ -24,6 +24,7 @@
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/ioport.h> #include <linux/ioport.h>
#include <linux/export.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <sound/core.h> #include <sound/core.h>
#include <sound/emu8000.h> #include <sound/emu8000.h>
Expand Down
1 change: 1 addition & 0 deletions sound/isa/sb/emu8000_callback.c
Expand Up @@ -20,6 +20,7 @@
*/ */


#include "emu8000_local.h" #include "emu8000_local.h"
#include <linux/export.h>
#include <sound/asoundef.h> #include <sound/asoundef.h>


/* /*
Expand Down
1 change: 1 addition & 0 deletions sound/pci/ac97/ac97_pcm.c
Expand Up @@ -27,6 +27,7 @@
#include <linux/init.h> #include <linux/init.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/export.h>


#include <sound/core.h> #include <sound/core.h>
#include <sound/pcm.h> #include <sound/pcm.h>
Expand Down
1 change: 1 addition & 0 deletions sound/pci/au88x0/au88x0_game.c
Expand Up @@ -34,6 +34,7 @@
#include <sound/core.h> #include <sound/core.h>
#include "au88x0.h" #include "au88x0.h"
#include <linux/gameport.h> #include <linux/gameport.h>
#include <linux/export.h>


#if defined(CONFIG_GAMEPORT) || (defined(MODULE) && defined(CONFIG_GAMEPORT_MODULE)) #if defined(CONFIG_GAMEPORT) || (defined(MODULE) && defined(CONFIG_GAMEPORT_MODULE))


Expand Down
1 change: 1 addition & 0 deletions sound/pci/cs46xx/cs46xx_lib.c
Expand Up @@ -53,6 +53,7 @@
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/gameport.h> #include <linux/gameport.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/export.h>




#include <sound/core.h> #include <sound/core.h>
Expand Down
1 change: 1 addition & 0 deletions sound/pci/emu10k1/emu10k1_callback.c
Expand Up @@ -18,6 +18,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */


#include <linux/export.h>
#include "emu10k1_synth_local.h" #include "emu10k1_synth_local.h"
#include <sound/asoundef.h> #include <sound/asoundef.h>


Expand Down
1 change: 1 addition & 0 deletions sound/pci/emu10k1/io.c
Expand Up @@ -29,6 +29,7 @@
#include <sound/core.h> #include <sound/core.h>
#include <sound/emu10k1.h> #include <sound/emu10k1.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/export.h>
#include "p17v.h" #include "p17v.h"


unsigned int snd_emu10k1_ptr_read(struct snd_emu10k1 * emu, unsigned int reg, unsigned int chn) unsigned int snd_emu10k1_ptr_read(struct snd_emu10k1 * emu, unsigned int reg, unsigned int chn)
Expand Down
1 change: 1 addition & 0 deletions sound/pci/emu10k1/memory.c
Expand Up @@ -25,6 +25,7 @@
#include <linux/gfp.h> #include <linux/gfp.h>
#include <linux/time.h> #include <linux/time.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/export.h>


#include <sound/core.h> #include <sound/core.h>
#include <sound/emu10k1.h> #include <sound/emu10k1.h>
Expand Down
1 change: 1 addition & 0 deletions sound/pci/emu10k1/voice.c
Expand Up @@ -29,6 +29,7 @@
*/ */


#include <linux/time.h> #include <linux/time.h>
#include <linux/export.h>
#include <sound/core.h> #include <sound/core.h>
#include <sound/emu10k1.h> #include <sound/emu10k1.h>


Expand Down
1 change: 1 addition & 0 deletions sound/pci/hda/hda_beep.c
Expand Up @@ -23,6 +23,7 @@
#include <linux/pci.h> #include <linux/pci.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/workqueue.h> #include <linux/workqueue.h>
#include <linux/export.h>
#include <sound/core.h> #include <sound/core.h>
#include "hda_beep.h" #include "hda_beep.h"
#include "hda_local.h" #include "hda_local.h"
Expand Down
1 change: 1 addition & 0 deletions sound/pci/hda/hda_generic.c
Expand Up @@ -22,6 +22,7 @@


#include <linux/init.h> #include <linux/init.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/export.h>
#include <sound/core.h> #include <sound/core.h>
#include "hda_codec.h" #include "hda_codec.h"
#include "hda_local.h" #include "hda_local.h"
Expand Down
1 change: 1 addition & 0 deletions sound/pci/hda/hda_hwdep.c
Expand Up @@ -26,6 +26,7 @@
#include <linux/ctype.h> #include <linux/ctype.h>
#include <linux/string.h> #include <linux/string.h>
#include <linux/firmware.h> #include <linux/firmware.h>
#include <linux/export.h>
#include <sound/core.h> #include <sound/core.h>
#include "hda_codec.h" #include "hda_codec.h"
#include "hda_local.h" #include "hda_local.h"
Expand Down
1 change: 1 addition & 0 deletions sound/pci/oxygen/oxygen_io.c
Expand Up @@ -19,6 +19,7 @@


#include <linux/delay.h> #include <linux/delay.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/export.h>
#include <sound/core.h> #include <sound/core.h>
#include <sound/mpu401.h> #include <sound/mpu401.h>
#include <asm/io.h> #include <asm/io.h>
Expand Down
1 change: 1 addition & 0 deletions sound/pci/trident/trident_main.c
Expand Up @@ -35,6 +35,7 @@
#include <linux/vmalloc.h> #include <linux/vmalloc.h>
#include <linux/gameport.h> #include <linux/gameport.h>
#include <linux/dma-mapping.h> #include <linux/dma-mapping.h>
#include <linux/export.h>


#include <sound/core.h> #include <sound/core.h>
#include <sound/info.h> #include <sound/info.h>
Expand Down
1 change: 1 addition & 0 deletions sound/soc/soc-cache.c
Expand Up @@ -17,6 +17,7 @@
#include <linux/lzo.h> #include <linux/lzo.h>
#include <linux/bitmap.h> #include <linux/bitmap.h>
#include <linux/rbtree.h> #include <linux/rbtree.h>
#include <linux/export.h>


#include <trace/events/asoc.h> #include <trace/events/asoc.h>


Expand Down
1 change: 1 addition & 0 deletions sound/soc/soc-io.c
Expand Up @@ -14,6 +14,7 @@
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/spi/spi.h> #include <linux/spi/spi.h>
#include <linux/regmap.h> #include <linux/regmap.h>
#include <linux/export.h>
#include <sound/soc.h> #include <sound/soc.h>


#include <trace/events/asoc.h> #include <trace/events/asoc.h>
Expand Down
1 change: 1 addition & 0 deletions sound/soc/soc-jack.c
Expand Up @@ -17,6 +17,7 @@
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/workqueue.h> #include <linux/workqueue.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/export.h>
#include <trace/events/asoc.h> #include <trace/events/asoc.h>


/** /**
Expand Down
1 change: 1 addition & 0 deletions sound/soc/soc-utils.c
Expand Up @@ -14,6 +14,7 @@
*/ */


#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/export.h>
#include <sound/core.h> #include <sound/core.h>
#include <sound/pcm.h> #include <sound/pcm.h>
#include <sound/pcm_params.h> #include <sound/pcm_params.h>
Expand Down
1 change: 1 addition & 0 deletions sound/synth/emux/emux_oss.c
Expand Up @@ -25,6 +25,7 @@


#ifdef CONFIG_SND_SEQUENCER_OSS #ifdef CONFIG_SND_SEQUENCER_OSS


#include <linux/export.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <sound/core.h> #include <sound/core.h>
#include "emux_voice.h" #include "emux_voice.h"
Expand Down
1 change: 1 addition & 0 deletions sound/synth/emux/emux_synth.c
Expand Up @@ -22,6 +22,7 @@
* *
*/ */


#include <linux/export.h>
#include "emux_voice.h" #include "emux_voice.h"
#include <sound/asoundef.h> #include <sound/asoundef.h>


Expand Down
1 change: 1 addition & 0 deletions sound/synth/emux/soundfont.c
Expand Up @@ -27,6 +27,7 @@
*/ */
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/export.h>
#include <sound/core.h> #include <sound/core.h>
#include <sound/soundfont.h> #include <sound/soundfont.h>
#include <sound/seq_oss_legacy.h> #include <sound/seq_oss_legacy.h>
Expand Down

0 comments on commit d81a6d7

Please sign in to comment.