Avoid using "-1" to indicate an invalid address. Signed-off-by: Andrea Bastoni <[email protected]> --- hypervisor/arch/arm-common/include/asm/psci.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hypervisor/arch/arm-common/include/asm/psci.h b/hypervisor/arch/arm-common/include/asm/psci.h index 4b724877..a24c0cb8 100644 --- a/hypervisor/arch/arm-common/include/asm/psci.h +++ b/hypervisor/arch/arm-common/include/asm/psci.h @@ -42,7 +42,7 @@ #define IS_PSCI_UBOOT(hvc) (((hvc) >> 8) == 0x95c1ba) -#define PSCI_INVALID_ADDRESS (-1L) +#define PSCI_INVALID_ADDRESS ~(0UL) #define PSCI_VERSION_MAJOR(ver) (u16)((ver) >> 16) #define PSCI_VERSION(major, minor) (((major) << 16) | (minor)) -- 2.28.0 -- You received this message because you are subscribed to the Google Groups "Jailhouse" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jailhouse-dev/20201028210933.138379-10-andrea.bastoni%40tum.de.
