linux/drivers/accel
Qianfeng Rong 8e0a18d6ee accel/amdxdna: Use int instead of u32 to store error codes
[ Upstream commit 24de3daf61 ]

Change the 'ret' variable from u32 to int to store -EINVAL.  Storing the
negative error codes in unsigned type, doesn't cause an issue at runtime
but it's ugly as pants.

Additionally, assigning -EINVAL to u32 ret (i.e., u32 ret = -EINVAL) may
trigger a GCC warning when the -Wsign-conversion flag is enabled.

Fixes: aac243092b ("accel/amdxdna: Add command execution")
Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com>
Reviewed-by: Lizhi Hou <lizhi.hou@amd.com>
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Link: https://lore.kernel.org/r/20250828033917.113364-1-rongqianfeng@vivo.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-10-15 12:03:48 +02:00
..
amdxdna accel/amdxdna: Use int instead of u32 to store error codes 2025-10-15 12:03:48 +02:00
habanalabs Merge drm/drm-fixes into drm-misc-fixes 2025-08-20 16:08:49 +02:00
ivpu accel/ivpu: Prevent recovery work from being queued during device removal 2025-09-01 12:37:21 +02:00
qaic accel/qaic: Use dev_printk() in RAS 2025-06-11 09:34:05 -06:00
drm_accel.c drm: move drm based debugfs funcs to drm_debugfs.c 2025-07-04 15:58:22 +02:00
Kconfig accel/amdxdna: Add a new driver for AMD AI Engine 2024-11-22 11:41:26 -07:00
Makefile accel/amdxdna: Add a new driver for AMD AI Engine 2024-11-22 11:41:26 -07:00