aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.h
diff options
context:
space:
mode:
authorIsabella Basso <[email protected]>2021-12-08 01:25:27 +0000
committerAlex Deucher <[email protected]>2021-12-13 21:32:34 +0000
commite105b64a364adb0fd0b780050441eb05468fee33 (patch)
tree962baa6eb9a3401ea80fcedeff9b5bd01db796b4 /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.h
parentdrm/amd: append missing includes (diff)
downloadkernel-e105b64a364adb0fd0b780050441eb05468fee33.tar.gz
kernel-e105b64a364adb0fd0b780050441eb05468fee33.zip
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 <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_drv.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.h
index e3a4f7048042..8178323e4bef 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.h
@@ -45,4 +45,7 @@
long amdgpu_drm_ioctl(struct file *filp,
unsigned int cmd, unsigned long arg);
+long amdgpu_kms_compat_ioctl(struct file *filp,
+ unsigned int cmd, unsigned long arg);
+
#endif