]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Staging: line6: static function cleanups
authorGreg Kroah-Hartman <gregkh@suse.de>
Sat, 28 Feb 2009 04:45:03 +0000 (20:45 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Apr 2009 21:54:25 +0000 (14:54 -0700)
This fixes all of the static function warnings that sparse complains
about.

Cc: Markus Grabner <grabner@icg.tugraz.at>
Cc: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/line6/audio.c
drivers/staging/line6/capture.c
drivers/staging/line6/midibuf.c
drivers/staging/line6/playback.c
drivers/staging/line6/pod.c
drivers/staging/line6/variax.c

index f6ad27412797327dcf08c28fa4d1b9926f8098d7..d035420c7bfbf1e6d076d7302ac663ee56b1e1c4 100644 (file)
@@ -10,6 +10,7 @@
  */
 
 #include "driver.h"
+#include "audio.h"
 
 #include <sound/core.h>
 #include <sound/initval.h>
index 6660c0b4cc5c094e966cac3bed29232e1447ba1d..a4628bd61cacbffc7384f4b190645118118182aa 100644 (file)
@@ -18,6 +18,7 @@
 #include "audio.h"
 #include "pcm.h"
 #include "pod.h"
+#include "capture.h"
 
 
 /*
index 2f86c66925165d7342026b508b3f42570541c6a7..1f5934e32124d0a1aadcb1de49bf313c362052c5 100644 (file)
@@ -16,7 +16,7 @@
 #include "midibuf.h"
 
 
-int midibuf_message_length(unsigned char code)
+static int midibuf_message_length(unsigned char code)
 {
        if(code < 0x80)
                return -1;
@@ -59,12 +59,12 @@ void midibuf_status(struct MidiBuffer *this)
                                 this->size, this->split, this->pos_read, this->pos_write, this->full, this->command_prev);
 }
 
-int midibuf_is_empty(struct MidiBuffer *this)
+static int midibuf_is_empty(struct MidiBuffer *this)
 {
        return (this->pos_read == this->pos_write) && !this->full;
 }
 
-int midibuf_is_full(struct MidiBuffer *this)
+static int midibuf_is_full(struct MidiBuffer *this)
 {
        return this->full;
 }
index c86e89c59f0792a041f17eafbfb936f1f6bc7de8..c30c627efdd78894b5fe8a18a72dda520e99fa4d 100644 (file)
@@ -18,6 +18,7 @@
 #include "audio.h"
 #include "pcm.h"
 #include "pod.h"
+#include "playback.h"
 
 
 /*
index eba804f2b17c8ac0a6c8fee23e302be8b251635a..614e9dc2ad19d8d732e1db87756a43c05c0f7450 100644 (file)
@@ -398,7 +398,7 @@ void pod_midi_postprocess(struct usb_line6_pod *pod, unsigned char *data, int le
 /*
        Send channel number (i.e., switch to a different sound).
 */
-void pod_send_channel(struct usb_line6_pod *pod, int value)
+static void pod_send_channel(struct usb_line6_pod *pod, int value)
 {
        line6_invalidate_current(&pod->dumpreq);
 
@@ -951,7 +951,7 @@ static void pod_destruct(struct usb_interface *interface)
 /*
        Create sysfs entries.
 */
-int pod_create_files2(struct device *dev)
+static int pod_create_files2(struct device *dev)
 {
        int err;
 
index b27764769296d85012662e63522a39db570a70a0..f25493dde797b70a2d16d53dd6650839b9a36b36 100644 (file)
@@ -392,7 +392,7 @@ static void variax_destruct(struct usb_interface *interface)
 /*
        Create sysfs entries.
 */
-int variax_create_files2(struct device *dev)
+static int variax_create_files2(struct device *dev)
 {
        int err;
        CHECK_RETURN(device_create_file(dev, &dev_attr_model));