@@ -43,7 +43,7 @@
#include <rdma/rdma_cma.h>
#include <infiniband/ib.h>
-struct rdma_addrinfo nohints;
+static struct rdma_addrinfo nohints;
static void ucma_convert_to_ai(struct addrinfo *ai, struct rdma_addrinfo *rai)
{
@@ -59,8 +59,8 @@ static char *src_file;
static struct timeval start, end;
//static void buf[1024 * 1024];
static uint64_t bytes;
-int fd;
-void *file_addr;
+static int fd;
+static void *file_addr;
enum {
CMD_NOOP,
@@ -39,11 +39,11 @@
static char *server = "127.0.0.1";
static char *port = "7471";
-struct rdma_cm_id *id;
-struct ibv_mr *mr, *send_mr;
-int send_flags;
-uint8_t send_msg[16];
-uint8_t recv_msg[16];
+static struct rdma_cm_id *id;
+static struct ibv_mr *mr, *send_mr;
+static int send_flags;
+static uint8_t send_msg[16];
+static uint8_t recv_msg[16];
static int run(void)
{
@@ -38,11 +38,11 @@
static char *port = "7471";
-struct rdma_cm_id *listen_id, *id;
-struct ibv_mr *mr, *send_mr;
-int send_flags;
-uint8_t send_msg[16];
-uint8_t recv_msg[16];
+static struct rdma_cm_id *listen_id, *id;
+static struct ibv_mr *mr, *send_mr;
+static int send_flags;
+static uint8_t send_msg[16];
+static uint8_t recv_msg[16];
static int run(void)
{
@@ -40,12 +40,12 @@
static char *server = "127.0.0.1";
static char port[6] = "7471";
-struct rdma_cm_id *id;
-struct ibv_mr *mr;
-struct rdma_addrinfo hints;
+static struct rdma_cm_id *id;
+static struct ibv_mr *mr;
+static struct rdma_addrinfo hints;
-uint8_t send_msg[16];
-uint32_t srqn;
+static uint8_t send_msg[16];
+static uint32_t srqn;
static int post_send(void)
{
@@ -40,12 +40,12 @@
static char *port = "7471";
-struct rdma_cm_id *listen_id, *id;
-struct ibv_mr *mr;
-struct rdma_addrinfo hints;
+static struct rdma_cm_id *listen_id, *id;
+static struct ibv_mr *mr;
+static struct rdma_addrinfo hints;
-uint8_t recv_msg[16];
-uint32_t srqn;
+static uint8_t recv_msg[16];
+static uint32_t srqn;
static int create_srq(void)
{
@@ -505,7 +505,7 @@ static int rs_scale_to_value(int value, int bits)
(void) rc; \
}
-void rs_configure(void)
+static void rs_configure(void)
{
FILE *f;
static int init;
Signed-off-by: Christoph Hellwig <hch@lst.de> --- librdmacm/addrinfo.c | 2 +- librdmacm/examples/rcopy.c | 4 ++-- librdmacm/examples/rdma_client.c | 10 +++++----- librdmacm/examples/rdma_server.c | 10 +++++----- librdmacm/examples/rdma_xclient.c | 10 +++++----- librdmacm/examples/rdma_xserver.c | 10 +++++----- librdmacm/rsocket.c | 2 +- 7 files changed, 24 insertions(+), 24 deletions(-)