Commit d81a6d71760c4d8323f1f9a506c64084caa09063

Authored by Paul Gortmaker
1 parent da155d5b40

sound: Add export.h for THIS_MODULE/EXPORT_SYMBOL where needed

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>

Showing 45 changed files with 45 additions and 0 deletions Side-by-side Diff

... ... @@ -21,6 +21,7 @@
21 21  
22 22 #include <linux/slab.h>
23 23 #include <linux/time.h>
  24 +#include <linux/export.h>
24 25 #include <linux/errno.h>
25 26 #include <sound/core.h>
26 27  
sound/core/info_oss.c
... ... @@ -22,6 +22,7 @@
22 22 #include <linux/slab.h>
23 23 #include <linux/time.h>
24 24 #include <linux/string.h>
  25 +#include <linux/export.h>
25 26 #include <sound/core.h>
26 27 #include <sound/minors.h>
27 28 #include <sound/info.h>
... ... @@ -26,6 +26,7 @@
26 26  
27 27 #undef HAVE_REALLY_SLOW_DMA_CONTROLLER
28 28  
  29 +#include <linux/export.h>
29 30 #include <sound/core.h>
30 31 #include <asm/dma.h>
31 32  
... ... @@ -20,6 +20,7 @@
20 20 *
21 21 */
22 22  
  23 +#include <linux/export.h>
23 24 #include <asm/io.h>
24 25 #include <asm/uaccess.h>
25 26 #include <sound/core.h>
... ... @@ -20,6 +20,7 @@
20 20 */
21 21  
22 22 #include <linux/init.h>
  23 +#include <linux/export.h>
23 24 #include <linux/moduleparam.h>
24 25 #include <linux/time.h>
25 26 #include <linux/slab.h>
sound/core/pcm_lib.c
... ... @@ -23,6 +23,7 @@
23 23 #include <linux/slab.h>
24 24 #include <linux/time.h>
25 25 #include <linux/math64.h>
  26 +#include <linux/export.h>
26 27 #include <sound/core.h>
27 28 #include <sound/control.h>
28 29 #include <sound/info.h>
sound/core/pcm_memory.c
... ... @@ -25,6 +25,7 @@
25 25 #include <linux/slab.h>
26 26 #include <linux/moduleparam.h>
27 27 #include <linux/vmalloc.h>
  28 +#include <linux/export.h>
28 29 #include <sound/core.h>
29 30 #include <sound/pcm.h>
30 31 #include <sound/info.h>
sound/core/pcm_misc.c
... ... @@ -20,6 +20,7 @@
20 20 */
21 21  
22 22 #include <linux/time.h>
  23 +#include <linux/export.h>
23 24 #include <sound/core.h>
24 25 #include <sound/pcm.h>
25 26 #define SND_PCM_FORMAT_UNKNOWN (-1)
sound/core/seq/oss/seq_oss_init.c
... ... @@ -28,6 +28,7 @@
28 28 #include "seq_oss_timer.h"
29 29 #include "seq_oss_event.h"
30 30 #include <linux/init.h>
  31 +#include <linux/export.h>
31 32 #include <linux/moduleparam.h>
32 33 #include <linux/slab.h>
33 34  
sound/core/seq/seq_clientmgr.c
... ... @@ -22,6 +22,7 @@
22 22 */
23 23  
24 24 #include <linux/init.h>
  25 +#include <linux/export.h>
25 26 #include <linux/slab.h>
26 27 #include <sound/core.h>
27 28 #include <sound/minors.h>
sound/core/seq/seq_info.c
... ... @@ -20,6 +20,7 @@
20 20 */
21 21  
22 22 #include <linux/init.h>
  23 +#include <linux/export.h>
23 24 #include <sound/core.h>
24 25  
25 26 #include "seq_info.h"
sound/core/seq/seq_lock.c
... ... @@ -19,6 +19,7 @@
19 19 *
20 20 */
21 21  
  22 +#include <linux/export.h>
22 23 #include <sound/core.h>
23 24 #include "seq_lock.h"
24 25  
sound/core/seq/seq_memory.c
... ... @@ -21,6 +21,7 @@
21 21 */
22 22  
23 23 #include <linux/init.h>
  24 +#include <linux/export.h>
24 25 #include <linux/slab.h>
25 26 #include <linux/vmalloc.h>
26 27 #include <sound/core.h>
sound/core/seq/seq_system.c
... ... @@ -20,6 +20,7 @@
20 20 */
21 21  
22 22 #include <linux/init.h>
  23 +#include <linux/export.h>
23 24 #include <linux/slab.h>
24 25 #include <sound/core.h>
25 26 #include "seq_system.h"
sound/core/sound_oss.c
... ... @@ -26,6 +26,7 @@
26 26 #endif
27 27  
28 28 #include <linux/init.h>
  29 +#include <linux/export.h>
29 30 #include <linux/slab.h>
30 31 #include <linux/time.h>
31 32 #include <sound/core.h>
sound/core/vmaster.c
... ... @@ -10,6 +10,7 @@
10 10 */
11 11  
12 12 #include <linux/slab.h>
  13 +#include <linux/export.h>
13 14 #include <sound/core.h>
14 15 #include <sound/control.h>
15 16 #include <sound/tlv.h>
sound/drivers/opl3/opl3_oss.c
... ... @@ -18,6 +18,7 @@
18 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 19 */
20 20  
  21 +#include <linux/export.h>
21 22 #include "opl3_voice.h"
22 23  
23 24 static int snd_opl3_open_seq_oss(struct snd_seq_oss_arg *arg, void *closure);
sound/drivers/opl3/opl3_synth.c
... ... @@ -20,6 +20,7 @@
20 20 */
21 21  
22 22 #include <linux/slab.h>
  23 +#include <linux/export.h>
23 24 #include <sound/opl3.h>
24 25 #include <sound/asound_fm.h>
25 26  
sound/drivers/opl4/opl4_proc.c
... ... @@ -19,6 +19,7 @@
19 19  
20 20 #include "opl4_local.h"
21 21 #include <linux/vmalloc.h>
  22 +#include <linux/export.h>
22 23 #include <sound/info.h>
23 24  
24 25 #ifdef CONFIG_PROC_FS
sound/firewire/iso-resources.c
... ... @@ -8,6 +8,7 @@
8 8 #include <linux/device.h>
9 9 #include <linux/firewire.h>
10 10 #include <linux/firewire-constants.h>
  11 +#include <linux/export.h>
11 12 #include <linux/jiffies.h>
12 13 #include <linux/mutex.h>
13 14 #include <linux/sched.h>
sound/firewire/packets-buffer.c
... ... @@ -6,6 +6,7 @@
6 6 */
7 7  
8 8 #include <linux/firewire.h>
  9 +#include <linux/export.h>
9 10 #include <linux/slab.h>
10 11 #include "packets-buffer.h"
11 12  
sound/isa/gus/gus_volume.c
... ... @@ -19,6 +19,7 @@
19 19 */
20 20  
21 21 #include <linux/time.h>
  22 +#include <linux/export.h>
22 23 #include <sound/core.h>
23 24 #include <sound/gus.h>
24 25 #define __GUS_TABLES_ALLOC__
sound/isa/msnd/msnd_midi.c
... ... @@ -29,6 +29,7 @@
29 29 #include <linux/delay.h>
30 30 #include <linux/ioport.h>
31 31 #include <linux/errno.h>
  32 +#include <linux/export.h>
32 33 #include <sound/core.h>
33 34 #include <sound/rawmidi.h>
34 35  
sound/isa/msnd/msnd_pinnacle_mixer.c
... ... @@ -16,6 +16,7 @@
16 16 ***************************************************************************/
17 17  
18 18 #include <linux/io.h>
  19 +#include <linux/export.h>
19 20  
20 21 #include <sound/core.h>
21 22 #include <sound/control.h>
sound/isa/sb/emu8000.c
... ... @@ -24,6 +24,7 @@
24 24 #include <linux/sched.h>
25 25 #include <linux/slab.h>
26 26 #include <linux/ioport.h>
  27 +#include <linux/export.h>
27 28 #include <linux/delay.h>
28 29 #include <sound/core.h>
29 30 #include <sound/emu8000.h>
sound/isa/sb/emu8000_callback.c
... ... @@ -20,6 +20,7 @@
20 20 */
21 21  
22 22 #include "emu8000_local.h"
  23 +#include <linux/export.h>
23 24 #include <sound/asoundef.h>
24 25  
25 26 /*
sound/pci/ac97/ac97_pcm.c
... ... @@ -27,6 +27,7 @@
27 27 #include <linux/init.h>
28 28 #include <linux/slab.h>
29 29 #include <linux/mutex.h>
  30 +#include <linux/export.h>
30 31  
31 32 #include <sound/core.h>
32 33 #include <sound/pcm.h>
sound/pci/au88x0/au88x0_game.c
... ... @@ -34,6 +34,7 @@
34 34 #include <sound/core.h>
35 35 #include "au88x0.h"
36 36 #include <linux/gameport.h>
  37 +#include <linux/export.h>
37 38  
38 39 #if defined(CONFIG_GAMEPORT) || (defined(MODULE) && defined(CONFIG_GAMEPORT_MODULE))
39 40  
sound/pci/cs46xx/cs46xx_lib.c
... ... @@ -53,6 +53,7 @@
53 53 #include <linux/slab.h>
54 54 #include <linux/gameport.h>
55 55 #include <linux/mutex.h>
  56 +#include <linux/export.h>
56 57  
57 58  
58 59 #include <sound/core.h>
sound/pci/emu10k1/emu10k1_callback.c
... ... @@ -18,6 +18,7 @@
18 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 19 */
20 20  
  21 +#include <linux/export.h>
21 22 #include "emu10k1_synth_local.h"
22 23 #include <sound/asoundef.h>
23 24  
sound/pci/emu10k1/io.c
... ... @@ -29,6 +29,7 @@
29 29 #include <sound/core.h>
30 30 #include <sound/emu10k1.h>
31 31 #include <linux/delay.h>
  32 +#include <linux/export.h>
32 33 #include "p17v.h"
33 34  
34 35 unsigned int snd_emu10k1_ptr_read(struct snd_emu10k1 * emu, unsigned int reg, unsigned int chn)
sound/pci/emu10k1/memory.c
... ... @@ -25,6 +25,7 @@
25 25 #include <linux/gfp.h>
26 26 #include <linux/time.h>
27 27 #include <linux/mutex.h>
  28 +#include <linux/export.h>
28 29  
29 30 #include <sound/core.h>
30 31 #include <sound/emu10k1.h>
sound/pci/emu10k1/voice.c
... ... @@ -29,6 +29,7 @@
29 29 */
30 30  
31 31 #include <linux/time.h>
  32 +#include <linux/export.h>
32 33 #include <sound/core.h>
33 34 #include <sound/emu10k1.h>
34 35  
sound/pci/hda/hda_beep.c
... ... @@ -23,6 +23,7 @@
23 23 #include <linux/pci.h>
24 24 #include <linux/slab.h>
25 25 #include <linux/workqueue.h>
  26 +#include <linux/export.h>
26 27 #include <sound/core.h>
27 28 #include "hda_beep.h"
28 29 #include "hda_local.h"
sound/pci/hda/hda_generic.c
... ... @@ -22,6 +22,7 @@
22 22  
23 23 #include <linux/init.h>
24 24 #include <linux/slab.h>
  25 +#include <linux/export.h>
25 26 #include <sound/core.h>
26 27 #include "hda_codec.h"
27 28 #include "hda_local.h"
sound/pci/hda/hda_hwdep.c
... ... @@ -26,6 +26,7 @@
26 26 #include <linux/ctype.h>
27 27 #include <linux/string.h>
28 28 #include <linux/firmware.h>
  29 +#include <linux/export.h>
29 30 #include <sound/core.h>
30 31 #include "hda_codec.h"
31 32 #include "hda_local.h"
sound/pci/oxygen/oxygen_io.c
... ... @@ -19,6 +19,7 @@
19 19  
20 20 #include <linux/delay.h>
21 21 #include <linux/sched.h>
  22 +#include <linux/export.h>
22 23 #include <sound/core.h>
23 24 #include <sound/mpu401.h>
24 25 #include <asm/io.h>
sound/pci/trident/trident_main.c
... ... @@ -35,6 +35,7 @@
35 35 #include <linux/vmalloc.h>
36 36 #include <linux/gameport.h>
37 37 #include <linux/dma-mapping.h>
  38 +#include <linux/export.h>
38 39  
39 40 #include <sound/core.h>
40 41 #include <sound/info.h>
sound/soc/soc-cache.c
... ... @@ -17,6 +17,7 @@
17 17 #include <linux/lzo.h>
18 18 #include <linux/bitmap.h>
19 19 #include <linux/rbtree.h>
  20 +#include <linux/export.h>
20 21  
21 22 #include <trace/events/asoc.h>
22 23  
... ... @@ -14,6 +14,7 @@
14 14 #include <linux/i2c.h>
15 15 #include <linux/spi/spi.h>
16 16 #include <linux/regmap.h>
  17 +#include <linux/export.h>
17 18 #include <sound/soc.h>
18 19  
19 20 #include <trace/events/asoc.h>
sound/soc/soc-jack.c
... ... @@ -17,6 +17,7 @@
17 17 #include <linux/interrupt.h>
18 18 #include <linux/workqueue.h>
19 19 #include <linux/delay.h>
  20 +#include <linux/export.h>
20 21 #include <trace/events/asoc.h>
21 22  
22 23 /**
sound/soc/soc-utils.c
... ... @@ -14,6 +14,7 @@
14 14 */
15 15  
16 16 #include <linux/platform_device.h>
  17 +#include <linux/export.h>
17 18 #include <sound/core.h>
18 19 #include <sound/pcm.h>
19 20 #include <sound/pcm_params.h>
sound/synth/emux/emux_oss.c
... ... @@ -25,6 +25,7 @@
25 25  
26 26 #ifdef CONFIG_SND_SEQUENCER_OSS
27 27  
  28 +#include <linux/export.h>
28 29 #include <asm/uaccess.h>
29 30 #include <sound/core.h>
30 31 #include "emux_voice.h"
sound/synth/emux/emux_synth.c
... ... @@ -22,6 +22,7 @@
22 22 *
23 23 */
24 24  
  25 +#include <linux/export.h>
25 26 #include "emux_voice.h"
26 27 #include <sound/asoundef.h>
27 28  
sound/synth/emux/soundfont.c
... ... @@ -27,6 +27,7 @@
27 27 */
28 28 #include <asm/uaccess.h>
29 29 #include <linux/slab.h>
  30 +#include <linux/export.h>
30 31 #include <sound/core.h>
31 32 #include <sound/soundfont.h>
32 33 #include <sound/seq_oss_legacy.h>