Skip to contentSkip to conversation

bus: ti-sysc: Fix cast to enum warning

PATCH New Tony Lindgren 1 participant 1 message Aug 15, 2023 OMAP2+ support

lore
Share & tools
lore

Tony Lindgren

author maintainer
#0 lore raw

PATCH 1/1 bus: ti-sysc: Fix cast to enum warning

Fix warning for "cast to smaller integer type 'enum sysc_soc' from 'const void *'".

Cc Nishanth Menon <[email protected]>
Fixes e1e1e9bb9d94 ("bus: ti-sysc: Fix build warning for 64-bit build")
---
 drivers/bus/ti-sysc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bus/ti-sysc.c +1 -1
@@ -3107,7 +3107,7 @@ static int sysc_init_static_data(struct sysc *ddata)
 
 	match = soc_device_match(sysc_soc_match);
 	if (match && match->data)
-		sysc_soc->soc = (enum sysc_soc)match->data;
+		sysc_soc->soc = (enum sysc_soc)(uintptr_t)match->data;
 
 	/*
 	 * Check and warn about possible old incomplete dtb. We now want to see
Signature · 6 lines
2.41.0

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel