Commit Diff


commit - c53ff863a7f186fa8f4e287684cc1f2ad0a642c9
commit + 471eefa0baf1bbf9488c6c8b5587c06d3c8ac195
blob - 925ccfb4486e47f53944cce840570c8a37ab8dcc
blob + ae17940fbc80e831767fb6ebd168964c20f3ad21
--- sys/arch/arm64/arm64/cpu.c
+++ sys/arch/arm64/arm64/cpu.c
@@ -1,4 +1,4 @@
-/*	$OpenBSD: cpu.c,v 1.122 2024/07/02 10:25:16 kettenis Exp $	*/
+/*	$OpenBSD: cpu.c,v 1.123 2024/07/02 19:59:54 kettenis Exp $	*/
 
 /*
  * Copyright (c) 2016 Dale Rahn <drahn@dalerahn.com>
@@ -2005,7 +2005,7 @@ cpu_psci_init(struct cpu_info *ci)
 	 */
 
 	len = OF_getproplen(node, "domain-idle-states");
-	if (len < sizeof(uint32_t))
+	if (len < (int)sizeof(uint32_t))
 		return;
 
 	states = malloc(len, M_TEMP, M_WAITOK);