Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/radeon: Fix ENOSYS with better fitting error codes in radeon_gem.c

Replace the error code from 'ENOSYS' to 'EOPNOTSUPP' for unimplemented
radeon_gem_pread_ioctl & radeon_gem_pwrite_ioctl

Fixes the following:

WARNING: ENOSYS means 'invalid syscall nr' and nothing else.

Cc: Christian König <christian.koenig@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Srinivasan Shanmugam and committed by
Alex Deucher
db996e64 efd9d065

+2 -2
+2 -2
drivers/gpu/drm/radeon/radeon_gem.c
··· 316 316 { 317 317 /* TODO: implement */ 318 318 DRM_ERROR("unimplemented %s\n", __func__); 319 - return -ENOSYS; 319 + return -EOPNOTSUPP; 320 320 } 321 321 322 322 int radeon_gem_pwrite_ioctl(struct drm_device *dev, void *data, ··· 324 324 { 325 325 /* TODO: implement */ 326 326 DRM_ERROR("unimplemented %s\n", __func__); 327 - return -ENOSYS; 327 + return -EOPNOTSUPP; 328 328 } 329 329 330 330 int radeon_gem_create_ioctl(struct drm_device *dev, void *data,