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

Konstantin Khorenko khorenko at virtuozzo.com
Sat Jan 23 05:35:31 PST 2016


The commit is pushed to "branch-rh7-3.10.0-327.3.1-vz7.10.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-327.3.1.vz7.10.3
------>
commit 20e37965ea32595d1097f65e1d72d980fd76d0a1
Author: Dmitry Safonov <dsafonov at virtuozzo.com>
Date:   Sat Jan 23 17:35:31 2016 +0400

    ve/net_core: fix build error with owner_ve->ve_netns
    
    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 ||
                                 ^
    Fixes a8771e524a1065457100771700e1f47c3c9ba340
    ("ve/net: allow to rename devices in non-ve namespaces").
    
    Signed-off-by: Dmitry Safonov <dsafonov at virtuozzo.com>
---
 net/core/dev.c | 1 +
 1 file changed, 1 insertion(+)

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


More information about the Devel mailing list