On Mon, Nov 20, 2017 at 03:25:31PM +0000, Ard Biesheuvel wrote: > However, under LTO this all changes, and it is no longer guaranteed > that the NEON registers are only touched between the kernel mode > neon begin/end calls. LTO operates on LLVM IR, so disabling LTO for this file should make sure there won't be any unsafe optimizations. Are there other places in the kernel that might have this issue? > So the correct way to fix this would be to move the asm into its own > .S file, and call it from between the kernel_mode_neon_begin/end > calls. That should also fix your compat issue. Sure, that would also work. Sami -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html