]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
lib: make a few symbols static
authorEric Sandeen <sandeen@redhat.com>
Mon, 10 Mar 2025 18:29:08 +0000 (13:29 -0500)
committerZorro Lang <zlang@kernel.org>
Tue, 11 Mar 2025 20:04:54 +0000 (04:04 +0800)
There are a few symbols in lib/tlibio.c which should be static,
and sparse notices this so fix it.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Zorro Lang <zlang@kernel.org>
lib/tlibio.c

index 9d852ff095c45183ddac4bf46321054ca17b4626..73851fd87f2b7584484cddda57d1337818f5c1be 100644 (file)
@@ -82,6 +82,7 @@ static void lio_async_signal_handler(int sig);
 /*
  * Define the structure as used in lio_parse_arg1 and lio_help1
  */
+static
 struct lio_info_type  Lio_info1[] = {
     { "s", LIO_IO_SYNC, "sync i/o" },
     { "p", LIO_IO_ASYNC|LIO_WAIT_SIGACTIVE, "async i/o using a loop to wait for a signal" },
@@ -101,6 +102,7 @@ struct lio_info_type  Lio_info1[] = {
 /*
  * Define the structure used by lio_parse_arg2 and lio_help2
  */
+static
 struct lio_info_type  Lio_info2[] = {
     { "sync",      LIO_IO_SYNC,                "sync i/o (read/write)"},
     { "async",     LIO_IO_ASYNC,       "async i/o (reada/writea/aio_read/aio_write)" },
@@ -120,7 +122,7 @@ struct lio_info_type  Lio_info2[] = {
        "all random i/o types and wait methods (except nowait)" },
 };
 
-char Lio_SysCall[PATH_MAX];    /* string containing last i/o system call */
+static char Lio_SysCall[PATH_MAX];     /* string containing last i/o system call */
 
 static volatile int Received_signal = 0;       /* number of signals received */
 static volatile int Rec_signal;