kernel: cherry pick patch removing __linux__ check