Skip to content

Commit db996e6

Browse files
srishanmalexdeucher
authored andcommitted
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 <[email protected]> Cc: Alex Deucher <[email protected]> Signed-off-by: Srinivasan Shanmugam <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent efd9d06 commit db996e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/radeon/radeon_gem.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,15 +316,15 @@ int radeon_gem_pread_ioctl(struct drm_device *dev, void *data,
316316
{
317317
/* TODO: implement */
318318
DRM_ERROR("unimplemented %s\n", __func__);
319-
return -ENOSYS;
319+
return -EOPNOTSUPP;
320320
}
321321

322322
int radeon_gem_pwrite_ioctl(struct drm_device *dev, void *data,
323323
struct drm_file *filp)
324324
{
325325
/* TODO: implement */
326326
DRM_ERROR("unimplemented %s\n", __func__);
327-
return -ENOSYS;
327+
return -EOPNOTSUPP;
328328
}
329329

330330
int radeon_gem_create_ioctl(struct drm_device *dev, void *data,

0 commit comments

Comments
 (0)