goldfish_pipe: make tasklet goldfish_interrupt_tasklet static
authorColin Ian King <colin.king@canonical.com>
Sat, 23 Jun 2018 22:26:54 +0000 (23:26 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Jul 2018 11:01:57 +0000 (13:01 +0200)
Tasklet goldfish_interrupt_tasklet is local to the source and
does not need to be in global scope, so make it static.

Cleans up sparse warning:
symbol 'goldfish_interrupt_tasklet' was not declared. Should it be static?

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/platform/goldfish/goldfish_pipe.c

index 3e32a4c..4866a8b 100644 (file)
@@ -645,7 +645,7 @@ static void goldfish_interrupt_task(unsigned long unused)
                wake_up_interruptible(&pipe->wake_queue);
        }
 }
-DECLARE_TASKLET(goldfish_interrupt_tasklet, goldfish_interrupt_task, 0);
+static DECLARE_TASKLET(goldfish_interrupt_tasklet, goldfish_interrupt_task, 0);
 
 /*
  * The general idea of the interrupt handling: