goldfish_pipe: make pipe_dev static
authorColin Ian King <colin.king@canonical.com>
Thu, 27 Apr 2017 17:41:34 +0000 (18:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 May 2017 16:24:03 +0000 (18:24 +0200)
Make this static as it's only referenced in this source and
it does not need global scope.

Cleans up a sparse warning:

drivers/platform/goldfish/goldfish_pipe.c: warning: symbol
  'pipe_dev' 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 2de1e603bd2b1d60afdf4261ce6b8c265c630d01..8a4b088c52a7568d0599fadb14f9d50f4c5cd47c 100644 (file)
@@ -266,7 +266,7 @@ struct goldfish_pipe_dev {
        unsigned char __iomem *base;
 };
 
-struct goldfish_pipe_dev pipe_dev[1] = {};
+static struct goldfish_pipe_dev pipe_dev[1] = {};
 
 static int goldfish_cmd_locked(struct goldfish_pipe *pipe, enum PipeCmdCode cmd)
 {