platform: goldfish: pipe: Make symbol 'goldfish_pipe_dev' static
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 20 Sep 2018 06:22:05 +0000 (06:22 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Sep 2018 18:38:57 +0000 (20:38 +0200)
Fixes the following sparse warning:

drivers/platform/goldfish/goldfish_pipe.c:214:26: warning:
 symbol 'goldfish_pipe_dev' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/platform/goldfish/goldfish_pipe.c

index fe01ef8..56665e8 100644 (file)
@@ -210,7 +210,7 @@ struct goldfish_pipe_dev {
        unsigned char __iomem *base;
 };
 
-struct goldfish_pipe_dev goldfish_pipe_dev;
+static struct goldfish_pipe_dev goldfish_pipe_dev;
 
 static int goldfish_pipe_cmd_locked(struct goldfish_pipe *pipe,
                                    enum PipeCmdCode cmd)