Staging: pi433: declare functions static
authorJoseph Wright <rjosephwright@gmail.com>
Sun, 16 Jul 2017 14:48:57 +0000 (14:48 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Jul 2017 23:57:26 +0000 (16:57 -0700)
Declare functions static to fix sparse warnings:

warning: symbol 'pi433_receive' was not declared. Should it be static?
warning: symbol 'pi433_tx_thread' was not declared. Should it be static?

Signed-off-by: Joseph Wright <rjosephwright@gmail.com>
Reviewed-by: Marcus Wolf <linux@wolf-entwicklungen.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/pi433/pi433_if.c

index 416d7ad..f886bed 100644 (file)
@@ -313,7 +313,7 @@ pi433_start_rx(struct pi433_device *dev)
 
 /*-------------------------------------------------------------------------*/
 
-int
+static int
 pi433_receive(void *data)
 {
        struct pi433_device *dev = data;
@@ -463,7 +463,7 @@ abort:
                return bytes_total;
 }
 
-int
+static int
 pi433_tx_thread(void *data)
 {
        struct pi433_device *device = data;