Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FROMLIST: arm64: fix alternatives with LLVM's integrated assembler
LLVM's integrated assembler fails with the following error when building KVM: <inline asm>:12:6: error: expected absolute expression .if kvm_update_va_mask == 0 ^ <inline asm>:21:6: error: expected absolute expression .if kvm_update_va_mask == 0 ^ <inline asm>:24:2: error: unrecognized instruction mnemonic NOT_AN_INSTRUCTION ^ LLVM ERROR: Error parsing inline asm These errors come from ALTERNATIVE_CB and __ALTERNATIVE_CFG, which test for the existence of the callback parameter in inline assembly using the following expression: " .if " __stringify(cb) " == 0\n" This works with GNU as, but isn't supported by LLVM. This change splits __ALTERNATIVE_CFG and ALTINSTR_ENTRY into separate macros to fix the LLVM build. Bug: 145210207 Change-Id: I62dd786277bcaf3c730a7489c4b5a2b437f722ce (am from https://lore.kernel.org/patchwork/patch/1136803/) Link: ClangBuiltLinux/linux#472 Signed-off-by: Sami Tolvanen <samitolvanen@google.com> Signed-off-by: Dakkshesh <dakkshesh5@gmail.com>
- Loading branch information