Skip to contentSkip to conversation

sound/: possible cleanups

PATCH In review Adrian Bunk 2 participants 3 messages Nov 23, 2005 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sound/: possible cleanups

This patch contains the following possible cleanups:
- core/init.c: make the needlessly global snd_generic_device_release() static
- pci/hda/hda_proc.c should #include "hda_local.h" for including the prototype of it's global function snd_hda_codec_proc_new()
- core/rawmidi.c: make the needlessly global and EXPORT_SYMBOL'ed function snd_rawmidi_info() static

---

 sound/core/init.c        |    2 +-
 sound/core/rawmidi.c     |    4 ++--
 sound/pci/hda/hda_proc.c |    1 +
 3 files changed, 4 insertions(+), 3 deletions(-)
sound/core/rawmidi.c renamed from sound/core/rawmidi.c.old +2 -2
@@ -528,7 +528,8 @@
 	return err;
 }
 
-int snd_rawmidi_info(snd_rawmidi_substream_t *substream, snd_rawmidi_info_t *info)
+static int snd_rawmidi_info(snd_rawmidi_substream_t *substream,
+			    snd_rawmidi_info_t *info)
 {
 	snd_rawmidi_t *rmidi;
 	
@@ -1672,7 +1673,6 @@
 EXPORT_SYMBOL(snd_rawmidi_transmit);
 EXPORT_SYMBOL(snd_rawmidi_new);
 EXPORT_SYMBOL(snd_rawmidi_set_ops);
-EXPORT_SYMBOL(snd_rawmidi_info);
 EXPORT_SYMBOL(snd_rawmidi_info_select);
 EXPORT_SYMBOL(snd_rawmidi_kernel_open);
 EXPORT_SYMBOL(snd_rawmidi_kernel_release);
sound/core/init.c renamed from sound/core/init.c.old +1 -1
@@ -694,7 +694,7 @@
 	},
 };
 
-void snd_generic_device_release(struct device *dev)
+static void snd_generic_device_release(struct device *dev)
 {
 }
 
sound/pci/hda/hda_proc.c renamed from sound/pci/hda/hda_proc.c.old +1 -0
@@ -26,6 +26,7 @@
 #include <linux/pci.h>
 #include <sound/core.h>
 #include "hda_codec.h"
+#include "hda_local.h"
 
 static const char *get_wid_type_name(unsigned int wid_value)
 {
#1 lore raw

At Wed, 23 Nov 2005 01:44:06 +0100,

Quoted 11 lines · Adrian Bunk

This patch contains the following possible cleanups:
- core/init.c: make the needlessly global snd_generic_device_release() static
- pci/hda/hda_proc.c should #include "hda_local.h" for including the prototype of it's global function snd_hda_codec_proc_new()
- core/rawmidi.c: make the needlessly global and EXPORT_SYMBOL'ed function snd_rawmidi_info() static

Thanks.

I'll apply manually to the latest ALSA tree since the ALSA kernel code has been changed very much since ALSA-1.0.10 release.

Takashi

#2 lore raw
In reply to Adrian Bunk

At Wed, 23 Nov 2005 01:44:06 +0100,

Quoted 11 lines · Adrian Bunk

This patch contains the following possible cleanups:
- core/init.c: make the needlessly global snd_generic_device_release() static
- pci/hda/hda_proc.c should #include "hda_local.h" for including the prototype of it's global function snd_hda_codec_proc_new()
- core/rawmidi.c: make the needlessly global and EXPORT_SYMBOL'ed function snd_rawmidi_info() static

Thanks.

I'll apply manually to the latest ALSA tree since the ALSA kernel code has been changed very much since ALSA-1.0.10 release.

Takashi

-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click