rte_virtio: make vhost_msg_strings static

The array of message strings is now only used in vhost_user.c, so it
doesn't need to be exported.

Change-Id: I40163b95a52a1762eb3639db5553814bf1299959
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/389652
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
Daniel Verkamp 2017-11-29 16:18:56 -07:00
parent f3e0bfd7ef
commit 24c8d965b0
2 changed files with 1 additions and 3 deletions

View File

@ -67,8 +67,6 @@ enum vhost_user_request {
VHOST_USER_MAX
};
extern const char *const vhost_msg_strings[VHOST_USER_MAX];
struct virtio_user_backend_ops;
struct virtio_user_dev {

View File

@ -261,7 +261,7 @@ prepare_vhost_memory_user(struct vhost_user_msg *msg, int fds[])
return 0;
}
const char *const vhost_msg_strings[] = {
static const char *const vhost_msg_strings[VHOST_USER_MAX] = {
[VHOST_USER_SET_OWNER] = "VHOST_SET_OWNER",
[VHOST_USER_RESET_OWNER] = "VHOST_RESET_OWNER",
[VHOST_USER_SET_FEATURES] = "VHOST_SET_FEATURES",