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)
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

index c5cfe2926ca182b9c1157a9e4c026b183b7d9740..54c882a6b433926551e4dad8dd8ec4c3b7be70d3 100644 (file)
@@ -1360,8 +1360,6 @@ int amdgpu_device_resume(struct drm_device *dev, bool fbcon);
 u32 amdgpu_get_vblank_counter_kms(struct drm_crtc *crtc);
 int amdgpu_enable_vblank_kms(struct drm_crtc *crtc);
 void amdgpu_disable_vblank_kms(struct drm_crtc *crtc);
-long amdgpu_kms_compat_ioctl(struct file *filp, unsigned int cmd,
-                            unsigned long arg);
 int amdgpu_info_ioctl(struct drm_device *dev, void *data,
                      struct drm_file *filp);
 
index e3a4f704804207e6c0b0af3f7ecfce3cc2a6e5ae..8178323e4beff1d900ef315df347bc810f00012b 100644 (file)
@@ -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