Exclude unneeded code from the kernel patch generation