From f198b8ca20e3b85a5d5a7eb44d8e67bd4056c6a9 Mon Sep 17 00:00:00 2001 From: Changpeng Liu Date: Mon, 9 Dec 2019 23:41:55 -0500 Subject: [PATCH] vhost: make g_spdk_vhost_ops as static variable Change-Id: Ifee31e73aadea770b84d29ef8a569282d2b1cbb9 Signed-off-by: Changpeng Liu Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/477391 Tested-by: SPDK CI Jenkins Community-CI: SPDK CI Jenkins Reviewed-by: Paul Luse Reviewed-by: Ben Walker Reviewed-by: Vitaliy Mysak Reviewed-by: Shuhei Matsumoto Reviewed-by: Jim Harris --- lib/vhost/rte_vhost_compat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vhost/rte_vhost_compat.c b/lib/vhost/rte_vhost_compat.c index da5fc198d..607f1004c 100644 --- a/lib/vhost/rte_vhost_compat.c +++ b/lib/vhost/rte_vhost_compat.c @@ -136,7 +136,7 @@ destroy_connection(int vid) vhost_destroy_connection_cb(vid); } -const struct vhost_device_ops g_spdk_vhost_ops = { +static const struct vhost_device_ops g_spdk_vhost_ops = { .new_device = start_device, .destroy_device = stop_device, .new_connection = new_connection,