[Devel] [PATCH 1/6] venet: make veip_find() helper static

Stanislav Kinsburskiy skinsbursky at virtuozzo.com
Fri Apr 21 08:04:22 PDT 2017


This one is used only in one place.

Signed-off-by: Stanislav Kinsburskiy <skinsbursky at virtuozzo.com>
---
 drivers/net/venetdev.c |    3 +--
 include/linux/venet.h  |    1 -
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/net/venetdev.c b/drivers/net/venetdev.c
index 4a7876f..a4388fd 100644
--- a/drivers/net/venetdev.c
+++ b/drivers/net/venetdev.c
@@ -203,7 +203,7 @@ static void venet_ext_clean(struct ve_struct *ve)
 	spin_unlock(&veip_lock);
 }
 
-struct veip_struct *veip_find(envid_t veid)
+static struct veip_struct *veip_find(envid_t veid)
 {
 	struct veip_struct *ptr;
 
@@ -1226,7 +1226,6 @@ EXPORT_SYMBOL(ip_entry_unhash);
 EXPORT_SYMBOL(sockaddr_to_veaddr);
 EXPORT_SYMBOL(veaddr_print);
 EXPORT_SYMBOL(venet_entry_lookup);
-EXPORT_SYMBOL(veip_find);
 EXPORT_SYMBOL(veip_findcreate);
 EXPORT_SYMBOL(veip_put);
 EXPORT_SYMBOL(venet_ext_lookup);
diff --git a/include/linux/venet.h b/include/linux/venet.h
index dd7d9ff..7562996 100644
--- a/include/linux/venet.h
+++ b/include/linux/venet.h
@@ -77,7 +77,6 @@ void ip_entry_unhash(struct ip_entry_struct *entry);
 void ip_entry_unhash(struct ip_entry_struct *entry);
 struct ip_entry_struct *venet_entry_lookup(struct ve_addr_struct *);
 
-struct veip_struct *veip_find(envid_t veid);
 struct veip_struct *veip_findcreate(envid_t veid);
 int veip_put(struct veip_struct *veip);
 void veip_cleanup(void);



More information about the Devel mailing list