linux-stable/drivers/platform/x86/amd
Yang Li 785c00993d platform/x86/amd/pmf: Fix unsigned comparison with less than zero
The return value from the call to amd_pmf_get_pprof_modes() is int.
However, the return value is being assigned to an unsigned char
variable 'mode', so making 'mode' an int.

silence the warning:
./drivers/platform/x86/amd/pmf/sps.c:183:5-9: WARNING: Unsigned expression compared with zero: mode < 0

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5995
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Link: https://lore.kernel.org/r/20230727014315.51375-1-yang.lee@linux.alibaba.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2023-07-31 16:01:58 +02:00
..
pmf platform/x86/amd/pmf: Fix unsigned comparison with less than zero 2023-07-31 16:01:58 +02:00
hsmp.c platform/x86: amd: hsmp: Convert to platform remove callback returning void 2023-03-07 12:19:29 +01:00
Kconfig platform/x86/amd: pmc: Utilize SMN index 0 for driver probe 2023-04-11 10:37:27 +02:00
Makefile platform/x86: Move s2idle quirk from thinkpad-acpi to amd-pmc 2023-07-11 11:34:14 +02:00
pmc-quirks.c platform/x86/amd: pmc: Use release_mem_region() to undo request_mem_region_muxed() 2023-07-14 17:47:29 +02:00
pmc.c platform/x86/amd: pmc: Add new ACPI ID AMDI000A 2023-07-11 12:15:20 +02:00
pmc.h platform/x86: Move s2idle quirk from thinkpad-acpi to amd-pmc 2023-07-11 11:34:14 +02:00