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

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>

authored by

Isabella Basso and committed by
Alex Deucher
e105b64a 64cf26f0

+3 -2
-2
drivers/gpu/drm/amd/amdgpu/amdgpu.h
··· 1360 1360 u32 amdgpu_get_vblank_counter_kms(struct drm_crtc *crtc); 1361 1361 int amdgpu_enable_vblank_kms(struct drm_crtc *crtc); 1362 1362 void amdgpu_disable_vblank_kms(struct drm_crtc *crtc); 1363 - long amdgpu_kms_compat_ioctl(struct file *filp, unsigned int cmd, 1364 - unsigned long arg); 1365 1363 int amdgpu_info_ioctl(struct drm_device *dev, void *data, 1366 1364 struct drm_file *filp); 1367 1365
+3
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.h
··· 45 45 long amdgpu_drm_ioctl(struct file *filp, 46 46 unsigned int cmd, unsigned long arg); 47 47 48 + long amdgpu_kms_compat_ioctl(struct file *filp, 49 + unsigned int cmd, unsigned long arg); 50 + 48 51 #endif