treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / arm64 / include / asm / kvm_ras.h
blob8ac6ee77437c78a49b342e8a551ea866b05e935e
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright (C) 2018 - Arm Ltd */
4 #ifndef __ARM64_KVM_RAS_H__
5 #define __ARM64_KVM_RAS_H__
7 #include <linux/acpi.h>
8 #include <linux/errno.h>
9 #include <linux/types.h>
11 #include <asm/acpi.h>
14 * Was this synchronous external abort a RAS notification?
15 * Returns '0' for errors handled by some RAS subsystem, or -ENOENT.
17 static inline int kvm_handle_guest_sea(phys_addr_t addr, unsigned int esr)
19 /* apei_claim_sea(NULL) expects to mask interrupts itself */
20 lockdep_assert_irqs_enabled();
22 return apei_claim_sea(NULL);
25 #endif /* __ARM64_KVM_RAS_H__ */