Skip to content

Commit ce95010

Browse files
committed
platform/x86: hp-wmi: Fix cast to smaller integer type warning
Fix the following compiler warning: drivers/platform/x86/hp/hp-wmi.c:551:24: warning: cast to smaller integer type 'enum hp_wmi_radio' from 'void *' [-Wvoid-pointer-to-enum-cast] Reported-by: kernel test robot <[email protected]> Signed-off-by: Hans de Goede <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 062c139 commit ce95010

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/platform/x86/hp/hp-wmi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ static int __init hp_wmi_enable_hotkeys(void)
551551

552552
static int hp_wmi_set_block(void *data, bool blocked)
553553
{
554-
enum hp_wmi_radio r = (enum hp_wmi_radio) data;
554+
enum hp_wmi_radio r = (long)data;
555555
int query = BIT(r + 8) | ((!blocked) << r);
556556
int ret;
557557

0 commit comments

Comments
 (0)