summaryrefslogtreecommitdiff
path: root/drivers/platform/goldfish
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-04-27 20:41:34 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-05-25 19:24:03 +0300
commit70caf709164b7347326205ea19cfafea7d002f81 (patch)
tree967eea6acec2a8fd5ee88c4dded217fcaefc5d25 /drivers/platform/goldfish
parentb6a38565e6d783a16854654b3cfb3a178768b37a (diff)
downloadlinux-70caf709164b7347326205ea19cfafea7d002f81.tar.xz
goldfish_pipe: make pipe_dev static
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>
Diffstat (limited to 'drivers/platform/goldfish')
-rw-r--r--drivers/platform/goldfish/goldfish_pipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/goldfish/goldfish_pipe.c b/drivers/platform/goldfish/goldfish_pipe.c
index 2de1e603bd2b..8a4b088c52a7 100644
--- a/drivers/platform/goldfish/goldfish_pipe.c
+++ b/drivers/platform/goldfish/goldfish_pipe.c
@@ -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)
{