I would like to add, that it really should not do this. I just fell into a rabbit hole of kernels impossible to compile with gcc 6.2.1-5, broken binutils from bugreport https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=845690 and finally, after reverting to binutils 2.27.51.20161118-2 having a bootable kernel whose module-loading always lead to an oops, unable to load any modules.
Then, when reverting to the old kernel, THE LEAST THING you want is some idiot dkms having deleted your nvidia-drivers in the meantime, just because you tried to compile them for that other broken kernel. Kind Regards Peter -- "Those who give up essential liberties for temporary safety deserve neither liberty nor safety." -- Benjamin Franklin "It's also true that those who would give up privacy for security are likely to end up with neither." -- Bruce Schneier