OSDN Git Service

drm/amdgpu: fix location of prototype for amdgpu_kms_compat_ioctl
authorIsabella Basso <isabbasso@riseup.net>
Wed, 8 Dec 2021 01:25:27 +0000 (22:25 -0300)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 13 Dec 2021 21:32:34 +0000 (16:32 -0500)
commite105b64a364adb0fd0b780050441eb05468fee33
tree962baa6eb9a3401ea80fcedeff9b5bd01db796b4
parent64cf26f04ad05ac7b4fc7d3339d893f21a06cab1
drm/amdgpu: fix location of prototype for amdgpu_kms_compat_ioctl

This fixes the warning below by changing the prototype to a location
that's actually included by the .c files that call
amdgpu_kms_compat_ioctl:

 warning: no previous prototype for ‘amdgpu_kms_compat_ioctl’
 [-Wmissing-prototypes]
 37 | long amdgpu_kms_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
    |      ^~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Isabella Basso <isabbasso@riseup.net>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.h