linux/drivers/platform/x86
Yang Li c70b9758ee platform/x86/amd/pmf: Fix unsigned comparison with less than zero
[ Upstream commit 785c00993d ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-09-13 09:42:24 +02:00
..
amd platform/x86/amd/pmf: Fix unsigned comparison with less than zero 2023-09-13 09:42:24 +02:00
dell platform/x86/dell/dell-rbtn: Fix resources leaking on error path 2023-07-19 16:21:38 +02:00
hp platform/x86: hp-wmi: Fix cast to smaller integer type warning 2023-05-30 14:03:17 +01:00
intel platform/x86/intel/hid: Add HP Dragonfly G2 to VGBS DMI quirks 2023-09-13 09:42:22 +02:00
acer-wireless.c
acer-wmi.c platform/x86: acer-wmi: Enable SW_TABLET_MODE on Switch V 10 (SW5-017) 2022-11-15 17:16:40 +01:00
acerhdf.c platform/x86: use PLATFORM_DEVID_NONE instead of -1 2022-10-03 09:40:04 +02:00
adv_swbutton.c
amilo-rfkill.c platform/x86: use PLATFORM_DEVID_NONE instead of -1 2022-10-03 09:40:04 +02:00
apple-gmux.c platform/x86: apple-gmux: Add apple_gmux_detect() helper 2023-02-01 08:34:46 +01:00
asus-laptop.c platform/x86: use PLATFORM_DEVID_NONE instead of -1 2022-10-03 09:40:04 +02:00
asus-nb-wmi.c platform/x86: asus-wmi: Ignore WMI events with codes 0x7B, 0xC0 2023-06-21 16:00:52 +02:00
asus-tf103c-dock.c i2c: Make remove callback return void 2022-08-16 12:46:26 +02:00
asus-wireless.c
asus-wmi.c platform/x86: asus-wmi: Fix setting RGB mode on some TUF laptops 2023-09-13 09:42:22 +02:00
asus-wmi.h platform/x86: asus-wmi: Add quirk wmi_ignore_fan 2023-02-01 08:34:33 +01:00
barco-p50-gpio.c platform/x86: barco-p50-gpio: Add check for platform_driver_register 2022-06-10 21:59:08 +02:00
classmate-laptop.c
compal-laptop.c platform/x86: use PLATFORM_DEVID_NONE instead of -1 2022-10-03 09:40:04 +02:00
dual_accel_detect.h
eeepc-laptop.c platform/x86: use PLATFORM_DEVID_NONE instead of -1 2022-10-03 09:40:04 +02:00
eeepc-wmi.c platform/x86: asus-wmi: Move acpi_backlight=vendor quirks to ACPI video_detect.c 2022-09-03 12:17:27 +02:00
firmware_attributes_class.c
firmware_attributes_class.h
fujitsu-laptop.c platform/x86: use PLATFORM_DEVID_NONE instead of -1 2022-10-03 09:40:04 +02:00
fujitsu-tablet.c
gigabyte-wmi.c platform/x86: gigabyte-wmi: add support for X570S AORUS ELITE 2023-04-26 14:28:37 +02:00
gpd-pocket-fan.c
hdaps.c platform/x86: use PLATFORM_DEVID_NONE instead of -1 2022-10-03 09:40:04 +02:00
huawei-wmi.c platform/x86: huawei-wmi: Silence ambient light sensor 2023-09-13 09:42:22 +02:00
ibm_rtl.c
ideapad-laptop.c platform/x86: ideapad-laptop: Add support for new hotkeys found on ThinkBook 14s Yoga ITL 2023-08-30 16:11:05 +02:00
intel_ips.c
intel_ips.h
intel_scu_ipc.c platform/x86: intel_scu_ipc: fix possible name leak in __intel_scu_ipc_register() 2022-12-31 13:32:00 +01:00
intel_scu_ipcutil.c
intel_scu_pcidrv.c platform/x86: intel_scu_pcidrv: Add back PCI ID for Medfield 2023-06-09 10:34:08 +02:00
intel_scu_pltdrv.c
intel_scu_wdt.c
Kconfig platform/x86: Move existing HP drivers to a new hp subdir 2023-05-24 17:32:42 +01:00
lenovo-yogabook-wmi.c platform/x86: lenovo-yogabook: Set default keyboard backligh brightness on probe() 2023-07-19 16:21:35 +02:00
lg-laptop.c
Makefile platform/x86: Move existing HP drivers to a new hp subdir 2023-05-24 17:32:42 +01:00
meraki-mx100.c
mlx-platform.c platform/x86: use PLATFORM_DEVID_NONE instead of -1 2022-10-03 09:40:04 +02:00
msi-laptop.c platform/x86: msi-laptop: Fix rfkill out-of-sync on MSI Wind U100 2023-08-03 10:24:01 +02:00
msi-wmi.c
mxm-wmi.c platform/x86: mxm-wmi: fix memleak in mxm_wmi_call_mx[ds|mx]() 2022-12-31 13:32:00 +01:00
nvidia-wmi-ec-backlight.c platform/x86: nvidia-wmi-ec-backlight: Add force module parameter 2023-02-25 11:25:43 +01:00
p2sb.c platform/x86: p2sb: Don't fail if unknown CPU is found 2022-11-07 12:33:49 +01:00
panasonic-laptop.c platform/x86: use PLATFORM_DEVID_NONE instead of -1 2022-10-03 09:40:04 +02:00
pcengines-apuv2.c
peaq-wmi.c
pmc_atom.c platform/x86: pmc_atom: Amend comment style and grammar 2022-08-25 16:23:52 +02:00
samsung-laptop.c platform/x86: use PLATFORM_DEVID_NONE instead of -1 2022-10-03 09:40:04 +02:00
samsung-q10.c
serial-multi-instantiate.c ACPI: scan: Create platform device for CS35L56 2023-08-16 18:27:31 +02:00
simatic-ipc.c platform/x86: simatic-ipc: add another model 2023-02-01 08:34:33 +01:00
sony-laptop.c platform/x86: sony-laptop: Don't turn off 0x153 keyboard backlight during probe 2023-01-18 11:58:18 +01:00
system76_acpi.c platform/x86: system76_acpi: Use dev_get_drvdata 2022-06-12 14:41:22 +02:00
think-lmi.c platform/x86: think-lmi: Use kfree_sensitive instead of kfree 2023-09-13 09:42:22 +02:00
think-lmi.h platform/x86: think-lmi: certificate support clean ups 2022-04-04 15:20:53 +02:00
thinkpad_acpi.c platform/x86: thinkpad_acpi: Fix lkp-tests warnings for platform profiles 2023-07-19 16:21:37 +02:00
topstar-laptop.c platform/x86: use PLATFORM_DEVID_NONE instead of -1 2022-10-03 09:40:04 +02:00
toshiba_acpi.c platform/x86: toshiba_acpi: change turn_on_panel_on_resume to static 2022-09-22 15:54:23 +02:00
toshiba_bluetooth.c
toshiba_haps.c
toshiba-wmi.c
touchscreen_dmi.c platform/x86: touchscreen_dmi: Add info for the Dexp Ursus KX210i 2023-05-17 11:53:43 +02:00
uv_sysfs.c
winmate-fm07-keys.c platform/x86: use PLATFORM_DEVID_NONE instead of -1 2022-10-03 09:40:04 +02:00
wireless-hotkey.c
wmi-bmof.c
wmi.c platform/x86: wmi: Break possible infinite loop when parsing GUID 2023-07-23 13:49:24 +02:00
x86-android-tablets.c platform/x86: x86-android-tablets: Add Acer Iconia One 7 B1-750 data 2023-05-24 17:32:34 +01:00
xiaomi-wmi.c
xo1-rfkill.c
xo15-ebook.c