Skip to contentSkip to conversation

raid6test: change dataoffs from global to static

PATCH New Tom Rix 1 participant 1 message Apr 3, 2022

Subsystems (2)
lore
Share & tools
lore

Tom Rix

author
#0 lore raw

PATCH 1/1 raid6test: change dataoffs from global to static

Smatch reports this issue raid6test.c:21:14: warning: symbol 'dataoffs'
was not declared. Should it be static?

dataoffs is only used in raid6test.c. File scope variables used only in one file should be static. Change dataoffs' storage-class-specifier from global to static.

---
 crypto/async_tx/raid6test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
crypto/async_tx/raid6test.c +1 -1
index c9d218e53bcb..d2d5fb154cda 100644
@@ -18,7 +18,7 @@
 #define NDISKS 64 /* Including P and Q */
 
 static struct page *dataptrs[NDISKS];
-unsigned int dataoffs[NDISKS];
+static unsigned int dataoffs[NDISKS];
 static addr_conv_t addr_conv[NDISKS];
 static struct page *data[NDISKS+3];
 static struct page *spare;
Signature · 1 line
2.27.0