Skip to content

Commit de44bf2

Browse files
committed
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 <nm@ti.com> Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202308150723.ziuGCdM3-lkp@intel.com/ Fixes: e1e1e9b ("bus: ti-sysc: Fix build warning for 64-bit build") Signed-off-by: Tony Lindgren <tony@atomide.com>
1 parent 40a4f49 commit de44bf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/bus/ti-sysc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3107,7 +3107,7 @@ static int sysc_init_static_data(struct sysc *ddata)
31073107

31083108
match = soc_device_match(sysc_soc_match);
31093109
if (match && match->data)
3110-
sysc_soc->soc = (enum sysc_soc)match->data;
3110+
sysc_soc->soc = (enum sysc_soc)(uintptr_t)match->data;
31113111

31123112
/*
31133113
* Check and warn about possible old incomplete dtb. We now want to see

0 commit comments

Comments
 (0)