[Devel] [PATCH 5/5] ve/net_core: fix build error with owner_ve->ve_netns

Dmitry Safonov dsafonov at odin.com
Mon Jan 18 02:27:53 PST 2016


Fixes the following error:
net/core/dev.c: In function ‘dev_change_name’:
net/core/dev.c:1101:29: error: dereferencing pointer to incomplete type ‘struct ve_struct’
  if (!dev_net(dev)->owner_ve->ve_netns ||
                             ^

Signed-off-by: Dmitry Safonov <dsafonov at odin.com>
---
 net/core/dev.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net/core/dev.c b/net/core/dev.c
index a8dd551..24f7c7f 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -134,6 +134,7 @@
 
 #include "net-sysfs.h"
 
+#include <linux/ve.h>
 #include <bc/beancounter.h>
 
 /* Instead of increasing this, you should create a hash table. */
-- 
2.7.0



More information about the Devel mailing list