mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Fix declarations of non-global variables
This patch inserts the `static` keyword to non-global variables, which where found by the analysis tool smatch. Reviewed-by: Matthew Ahrens <mahrens@delphix.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Tino Reichardt <milky-zfs@mcmilk.de> Closes #13970
This commit is contained in:
+1
-1
@@ -3360,7 +3360,7 @@ zio_ddt_write(zio_t *zio)
|
||||
return (zio);
|
||||
}
|
||||
|
||||
ddt_entry_t *freedde; /* for debugging */
|
||||
static ddt_entry_t *freedde; /* for debugging */
|
||||
|
||||
static zio_t *
|
||||
zio_ddt_free(zio_t *zio)
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
* If nonzero, every 1/X decompression attempts will fail, simulating
|
||||
* an undetected memory error.
|
||||
*/
|
||||
unsigned long zio_decompress_fail_fraction = 0;
|
||||
static unsigned long zio_decompress_fail_fraction = 0;
|
||||
|
||||
/*
|
||||
* Compression vectors.
|
||||
|
||||
Reference in New Issue
Block a user