linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] cxl: static-ify variables to fix sparse warnings
@ 2016-04-18  5:03 Andrew Donnellan
  2016-04-18  8:32 ` Frederic Barrat
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Andrew Donnellan @ 2016-04-18  5:03 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: imunsie, clombard, fbarrat

Make a couple more variables static. Found by sparse.

Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
---
 drivers/misc/cxl/flash.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/misc/cxl/flash.c b/drivers/misc/cxl/flash.c
index 68dd0b7..c63d61e 100644
--- a/drivers/misc/cxl/flash.c
+++ b/drivers/misc/cxl/flash.c
@@ -24,8 +24,8 @@ struct ai_header {
 };
 
 static struct semaphore sem;
-unsigned long *buffer[CXL_AI_MAX_ENTRIES];
-struct sg_list *le;
+static unsigned long *buffer[CXL_AI_MAX_ENTRIES];
+static struct sg_list *le;
 static u64 continue_token;
 static unsigned int transfer;
 
-- 
Andrew Donnellan              OzLabs, ADL Canberra
andrew.donnellan@au1.ibm.com  IBM Australia Limited

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-06-21  0:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-18  5:03 [PATCH] cxl: static-ify variables to fix sparse warnings Andrew Donnellan
2016-04-18  8:32 ` Frederic Barrat
2016-04-18 15:37 ` Matthew R. Ochs
2016-04-19  6:16 ` Ian Munsie
2016-06-21  0:40 ` Michael Ellerman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).