[PATCH 2/3] xfsprogs: make a couple of structures static

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Eric Sandeen <sandeen@xxxxxxxxxx>

Eliminates 2 sparse warnings.

Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxx>
---

diff --git a/db/btheight.c b/db/btheight.c
index 8aa17c89..fdb19a6d 100644
--- a/db/btheight.c
+++ b/db/btheight.c
@@ -22,7 +22,7 @@ static int rmap_maxrecs(struct xfs_mount *mp, int blocklen, int leaf)
 	return libxfs_rmapbt_maxrecs(blocklen, leaf);
 }
 
-struct btmap {
+static struct btmap {
 	const char	*tag;
 	int		(*maxrecs)(struct xfs_mount *mp, int blocklen,
 				   int leaf);
diff --git a/io/bulkstat.c b/io/bulkstat.c
index 201470b2..05a3d6d6 100644
--- a/io/bulkstat.c
+++ b/io/bulkstat.c
@@ -230,7 +230,7 @@ struct single_map {
 	uint64_t		code;
 };
 
-struct single_map tags[] = {
+static struct single_map tags[] = {
 	{"root", XFS_BULK_IREQ_SPECIAL_ROOT},
 	{NULL, 0},
 };




[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux