Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1632288 > unrolled thread

[PATCH] goldfish_pipe: make pipe_dev static

Started byColin King <colin.king@canonical.com>
First post2017-04-27 19:50 +0200
Last post2017-04-27 19:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] goldfish_pipe: make pipe_dev static Colin King <colin.king@canonical.com> - 2017-04-27 19:50 +0200

#1632288 — [PATCH] goldfish_pipe: make pipe_dev static

FromColin King <colin.king@canonical.com>
Date2017-04-27 19:50 +0200
Subject[PATCH] goldfish_pipe: make pipe_dev static
Message-ID<tAVIe-3OA-17@gated-at.bofh.it>
From: Colin Ian King <colin.king@canonical.com>

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>
---
 drivers/platform/goldfish/goldfish_pipe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)
 {
-- 
2.11.0

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web