bus: ti-sysc: Fix cast to enum warning
Tony Lindgren
maintainerPATCH 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]>
Reported-by kernel test robot <[email protected]>
Fixes e1e1e9bb9d94 ("bus: ti-sysc: Fix build warning for 64-bit build")
Signed-off-by Tony Lindgren <[email protected]>
--- 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