To be able to compile properly exton kernel modules, you need to apply aufs patches and apply you current kernel config. git clone https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable.git -b linux-4.10.y linux-4.10.2 cd linux-4.10.2 git reset --hard v4.10.2 git am 000*.patch # make modules M=drivers/...