mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
platform/x86: hp-wmi: Fix cast to smaller integer type warning
commit ce95010ef6 upstream.
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 <lkp@intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20230123132824.660062-1-hdegoede@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
0dbc898f59
commit
66ede2e423
@@ -552,7 +552,7 @@ static int __init hp_wmi_enable_hotkeys(void)
|
|||||||
|
|
||||||
static int hp_wmi_set_block(void *data, bool blocked)
|
static int hp_wmi_set_block(void *data, bool blocked)
|
||||||
{
|
{
|
||||||
enum hp_wmi_radio r = (enum hp_wmi_radio) data;
|
enum hp_wmi_radio r = (long)data;
|
||||||
int query = BIT(r + 8) | ((!blocked) << r);
|
int query = BIT(r + 8) | ((!blocked) << r);
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user