Whamcloud - gitweb
LU-13805 clio: bounce buffer for unaligned DIO
[fs/lustre-release.git] / lustre / tests / test_brw.c
index 855ee8e..a15cbc1 100644 (file)
@@ -27,7 +27,6 @@
  */
 /*
  * This file is part of Lustre, http://www.lustre.org/
- * Lustre is a trademark of Sun Microsystems, Inc.
  */
 
 /* for O_DIRECT */
@@ -51,7 +50,7 @@
 #define WRITE 2
 
 #define LPDS sizeof(uint64_t)
-int block_debug_setup(void *addr, int len, uint64_t off, uint64_t id)
+static int block_debug_setup(void *addr, int len, uint64_t off, uint64_t id)
 {
        off = htole64(off);
        id = htole64(id);
@@ -65,7 +64,7 @@ int block_debug_setup(void *addr, int len, uint64_t off, uint64_t id)
        return 0;
 }
 
-int block_debug_check(char *who, void *addr, int size, uint64_t off,
+static int block_debug_check(char *who, void *addr, int size, uint64_t off,
                      uint64_t id)
 {
        uint64_t ne_off;
@@ -101,7 +100,7 @@ int block_debug_check(char *who, void *addr, int size, uint64_t off,
 
 #undef LPDS
 
-void usage(char *prog)
+static void usage(char *prog)
 {
        fprintf(stderr,
                "usage: %s file count [[d]{r|w|rw} [pages_per_vec [objid]]]\n",
@@ -114,7 +113,7 @@ int main(int argc, char **argv)
        int fd;
        char *buf;
        long long count, last;
-       long pg_vec, len;
+       size_t pg_vec, len;
        uint64_t objid, offset;
        struct stat st;
        int flags = 0;