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

drivers: gpu: Include appropriate header file in mga_ioc32.c

Include appropriate header file drivers/gpu/drm/mga/mga_drv.h in
drm/mga/mga_ioc32.c because function mga_compat_ioctl() has its
prototype declaration in the header file.

This eliminates the following warning in drm/mga/mga_ioc32.c:
drivers/gpu/drm/mga/mga_ioc32.c:207:6: warning: no previous prototype for ‘mga_compat_ioctl’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>

authored by

Rashika and committed by
Dave Airlie
06a8c650 f242a64b

+1
+1
drivers/gpu/drm/mga/mga_ioc32.c
··· 34 34 35 35 #include <drm/drmP.h> 36 36 #include <drm/mga_drm.h> 37 + #include "mga_drv.h" 37 38 38 39 typedef struct drm32_mga_init { 39 40 int func;