You need to sign in or sign up before continuing.
提交 ce95010e 编写于 作者: H Hans de Goede

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: Nkernel test robot <lkp@intel.com>
Signed-off-by: NHans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20230123132824.660062-1-hdegoede@redhat.com
上级 062c1394
...@@ -551,7 +551,7 @@ static int __init hp_wmi_enable_hotkeys(void) ...@@ -551,7 +551,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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册