I always have to change the include #include "dvbdev.h" to #include <media/dvbdev.h> in files dvb_loopback.c and dvblb_internal.h to make it compile on Gentoo 4.x or 5.x kernels.