I have some other compile errors with kernel >=4.6 (kernel 4.9.49) and it is strange you didn't get them...
First, skb_sender_cpu_clear has been removed in kernel 4.6:
make[1]: Entering directory '/nix/store/8isavlq67qrhd9xqb672h4p4waymyj24-linux-4.9.49-dev/lib/modules/4.9.49/build'
CC [M] /tmp/nix-build-contrail-vrouter-linux-4.9.49.drv-0/contrail-workspace/vrouter/linux/vrouter_mod.o
CC [M] /tmp/nix-build-contrail-vrouter-linux-4.9.49.drv-0/contrail-workspace/vrouter/linux/vr_host_interface.o
/tmp/nix-build-contrail-vrouter-linux-4.9.49.drv-0/contrail-workspace/vrouter/linux/vr_host_interface.c: In function ‘linux_if_tx’:
/tmp/nix-build-contrail-vrouter-linux-4.9.49.drv-0/contrail-workspace/vrouter/linux/vr_host_interface.c:819:5: error: implicit declaration of function ‘skb_sender_cpu_clear’ [-Werror=implicit-function-declaration]
skb_sender_cpu_clear(skb);
^
Later, I also have some errors in vr_mem.c:
/tmp/nix-build-contrail-vrouter-linux-4.9.49.drv-0/contrail-workspace/vrouter/linux/vr_mem.c:132:14: error: too many arguments to function ‘get_user_pages’
spages = get_user_pages(current, current->mm, uspace_vmem,
^
In file included from /tmp/nix-build-contrail-vrouter-linux-4.9.49.drv-0/contrail-workspace/vrouter/linux/vr_mem.c:12:0:
/nix/store/8isavlq67qrhd9xqb672h4p4waymyj24-linux-4.9.49-dev/lib/modules/4.9.49/source/include/linux/mm.h:1280:6: note: declared here
long get_user_pages(unsigned long start, unsigned long nr_pages,
^
/tmp/nix-build-contrail-vrouter-linux-4.9.49.drv-0/contrail-workspace/vrouter/linux/vr_mem.c:144:13: error: implicit declaration of function ‘page_cache_release’ [-Werror=implicit-function-declaration] page_cache_release(pmem[i]);
^
cc1: some warnings being treated as errors
I have some other compile errors with kernel >=4.6 (kernel 4.9.49) and it is strange you didn't get them...
First, skb_sender_ cpu_clear has been removed in kernel 4.6: 8isavlq67qrhd9x qb672h4p4waymyj 24-linux- 4.9.49- dev/lib/ modules/ 4.9.49/ build' build-contrail- vrouter- linux-4. 9.49.drv- 0/contrail- workspace/ vrouter/ linux/vrouter_ mod.o build-contrail- vrouter- linux-4. 9.49.drv- 0/contrail- workspace/ vrouter/ linux/vr_ host_interface. o build-contrail- vrouter- linux-4. 9.49.drv- 0/contrail- workspace/ vrouter/ linux/vr_ host_interface. c: In function ‘linux_if_tx’: build-contrail- vrouter- linux-4. 9.49.drv- 0/contrail- workspace/ vrouter/ linux/vr_ host_interface. c:819:5: error: implicit declaration of function ‘skb_sender_ cpu_clear’ [-Werror= implicit- function- declaration] sender_ cpu_clear( skb);
make[1]: Entering directory '/nix/store/
CC [M] /tmp/nix-
CC [M] /tmp/nix-
/tmp/nix-
/tmp/nix-
skb_
^
Later, I also have some errors in vr_mem.c: build-contrail- vrouter- linux-4. 9.49.drv- 0/contrail- workspace/ vrouter/ linux/vr_ mem.c:132: 14: error: too many arguments to function ‘get_user_pages’ pages(current, current->mm, uspace_vmem, build-contrail- vrouter- linux-4. 9.49.drv- 0/contrail- workspace/ vrouter/ linux/vr_ mem.c:12: 0: 8isavlq67qrhd9x qb672h4p4waymyj 24-linux- 4.9.49- dev/lib/ modules/ 4.9.49/ source/ include/ linux/mm. h:1280: 6: note: declared here pages(unsigned long start, unsigned long nr_pages, build-contrail- vrouter- linux-4. 9.49.drv- 0/contrail- workspace/ vrouter/ linux/vr_ mem.c:144: 13: error: implicit declaration of function ‘page_cache_ release’ [-Werror= implicit- function- declaration]
page_ cache_release( pmem[i] );
/tmp/nix-
spages = get_user_
^
In file included from /tmp/nix-
/nix/store/
long get_user_
^
/tmp/nix-
^
cc1: some warnings being treated as errors