aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c
diff options
context:
space:
mode:
authorSrinivasan Shanmugam <[email protected]>2023-07-23 06:00:47 +0000
committerAlex Deucher <[email protected]>2023-07-27 18:59:29 +0000
commitb8920e1e0dae10ebe34959bdfc6150383bf8d08c (patch)
tree5f79a5fb59aa9c6cf01728d64f51216d09fc3fd8 /drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c
parentdrm/amdgpu: remove repeat code for mes_add_queue_pkt (diff)
downloadkernel-b8920e1e0dae10ebe34959bdfc6150383bf8d08c.tar.gz
kernel-b8920e1e0dae10ebe34959bdfc6150383bf8d08c.zip
drm/amdgpu: Fix ENOSYS means 'invalid syscall nr' in amdgpu_device.c
ENOSYS should be used for nonexistent syscalls only, replace ENOSYS with EOPNOTSUPP for reset handlers that are not implemented for respective ASIC. WARNING: ENOSYS means 'invalid syscall nr' and nothing else + if (r == -ENOSYS) WARNING: ENOSYS means 'invalid syscall nr' and nothing else + if (r == -ENOSYS) And other following style fixes in amdgpu_device.c: WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'. WARNING: Block comments should align the * on each line WARNING: Missing a blank line after declarations WARNING: braces {} are not necessary for single statement blocks Cc: Lijo Lazar <[email protected]> Cc: Kent Russell <[email protected]> Cc: Christian König <[email protected]> Cc: Alex Deucher <[email protected]> Signed-off-by: Srinivasan Shanmugam <[email protected]> Reviewed-by: Guchun Chen <[email protected]> Reviewed-by: Lijo Lazar <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c')
0 files changed, 0 insertions, 0 deletions