]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: hp-wmi: Fix cast to smaller integer type warning
authorHans de Goede <hdegoede@redhat.com>
Mon, 23 Jan 2023 13:28:24 +0000 (14:28 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 May 2023 13:03:17 +0000 (14:03 +0100)
commit99704698c998f9822f9f82379f56674c172f9b79
tree800124bb3c42906fcb9c029e99cdc65aa3085241
parent6aaa9651d84dc3adb8ff5db8bee6a73c5f894f76
platform/x86: hp-wmi: Fix cast to smaller integer type warning

commit ce95010ef62d4bf470928969bafc9070ae98cbb1 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>
drivers/platform/x86/hp/hp-wmi.c