vrouter kernel compilation is failing in >=4.1 kernels

Bug #1487511 reported by Numan Siddique
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R2.20
Fix Committed
Undecided
Numan Siddique
Trunk
Fix Committed
Undecided
Numan Siddique
OpenContrail
New
Undecided
Numan Siddique

Bug Description

  CC [M] /opt/stack/contrail/vrouter/linux/vr_host_interface.o
/opt/stack/contrail/vrouter/linux/vr_host_interface.c: In function ‘linux_if_notifier’:
/opt/stack/contrail/vrouter/linux/vr_host_interface.c:2264:21: error: invalid operands to binary != (have ‘possible_net_t {aka struct <anonymous>}’ and ‘struct net *’)
     if (dev->nd_net != &init_net) {

The reason for the failure is because in 4.1 version, net_device->nd_net is changed to "possible_net_t nd_net;"
from " struct net *nd_net;"

Tags: vrouter
tags: added: vrouter
Changed in opencontrail:
assignee: nobody → Numan Siddique (numansiddique)
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/13229
Submitter: Numan Siddique (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/13229
Committed: http://github.org/Juniper/contrail-vrouter/commit/3b99fb0e3f56157f0b4fd733f4457fdb9564c04c
Submitter: Zuul
Branch: master

commit 3b99fb0e3f56157f0b4fd733f4457fdb9564c04c
Author: Numan Siddique <email address hidden>
Date: Fri Aug 21 20:32:57 2015 +0530

Fix the compilation error for 4.1+ kernel versions

struct net_device variable nd_net declaration is changed in
4.1 to "possible_net_t nd_net;"

Change-Id: Ifb3dbd4451801465f50e208c8dc11eb631a9ee96
Closes-bug: #1487511

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.20

Review in progress for https://review.opencontrail.org/13763
Submitter: Pedro Marques (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/13763
Committed: http://github.org/Juniper/contrail-vrouter/commit/47035b46643a75afdcafd9c2efb35bb13bd1a4a4
Submitter: Zuul
Branch: R2.20

commit 47035b46643a75afdcafd9c2efb35bb13bd1a4a4
Author: Numan Siddique <email address hidden>
Date: Fri Aug 21 20:32:57 2015 +0530

Fix the compilation error for 4.1+ kernel versions

struct net_device variable nd_net declaration is changed in
4.1 to "possible_net_t nd_net;"

Change-Id: Ifb3dbd4451801465f50e208c8dc11eb631a9ee96
Closes-bug: #1487511

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.