fix compilation for 3.1+ kernels