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

Submitted by Stanislav Kinsburskiy on April 21, 2017, 3:04 p.m.

Details

Message ID 20170421150422.31147.64439.stgit@localhost.localdomain
State New
Series "Fix VEIP object handling on container destroy"
Headers show

Commit Message

Stanislav Kinsburskiy April 21, 2017, 3:04 p.m.
This one is used only in one place.

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

Patch hide | download patch | download mbox

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);