Comment 6 for bug 1633387

Revision history for this message
Antoine Eiche (lewo-c) wrote :

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