From: Greg Kroah-Hartman Date: Fri, 26 May 2023 16:44:48 +0000 (+0100) Subject: 6.1-stable patches X-Git-Tag: review~83 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6b0e3eb104db1aa2fb8b2bfe0eebc1b0d95ce477;p=thirdparty%2Fkernel%2Fstable-queue.git 6.1-stable patches added patches: platform-x86-hp-wmi-fix-cast-to-smaller-integer-type-warning.patch --- diff --git a/queue-6.1/platform-x86-hp-wmi-fix-cast-to-smaller-integer-type-warning.patch b/queue-6.1/platform-x86-hp-wmi-fix-cast-to-smaller-integer-type-warning.patch new file mode 100644 index 00000000000..4e29ad7520f --- /dev/null +++ b/queue-6.1/platform-x86-hp-wmi-fix-cast-to-smaller-integer-type-warning.patch @@ -0,0 +1,33 @@ +From ce95010ef62d4bf470928969bafc9070ae98cbb1 Mon Sep 17 00:00:00 2001 +From: Hans de Goede +Date: Mon, 23 Jan 2023 14:28:24 +0100 +Subject: platform/x86: hp-wmi: Fix cast to smaller integer type warning + +From: Hans de Goede + +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 +Signed-off-by: Hans de Goede +Link: https://lore.kernel.org/r/20230123132824.660062-1-hdegoede@redhat.com +Signed-off-by: Greg Kroah-Hartman +--- + drivers/platform/x86/hp/hp-wmi.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/drivers/platform/x86/hp/hp-wmi.c ++++ b/drivers/platform/x86/hp/hp-wmi.c +@@ -552,7 +552,7 @@ static int __init hp_wmi_enable_hotkeys( + + 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 ret; + diff --git a/queue-6.1/series b/queue-6.1/series index 99a8c88b0f5..b4f765129a7 100644 --- a/queue-6.1/series +++ b/queue-6.1/series @@ -9,3 +9,4 @@ watchdog-sp5100_tco-immediately-trigger-upon-starting.patch drm-amd-amdgpu-update-mes11-api-def.patch drm-amdgpu-mes11-enable-reg-active-poll.patch skbuff-proactively-round-up-to-kmalloc-bucket-size.patch +platform-x86-hp-wmi-fix-cast-to-smaller-integer-type-warning.patch