staging: vboxvideo: Cleanup header use
authorHans de Goede <hdegoede@redhat.com>
Mon, 22 Oct 2018 14:57:45 +0000 (16:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 7 Nov 2018 11:59:50 +0000 (12:59 +0100)
Stop adding -Iinclude/drm to the CFLAGS and stop using the obsolete
"include-all" drm/drmP.h header.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vboxvideo/Makefile
drivers/staging/vboxvideo/vbox_drv.c
drivers/staging/vboxvideo/vbox_drv.h
drivers/staging/vboxvideo/vbox_fb.c
drivers/staging/vboxvideo/vbox_ttm.c

index 3f6094aa9cdf1c9a965825ca69f69b53136a1721..1224f313af0c00e1e0ec6a98cd874c4f3674eee5 100644 (file)
@@ -1,6 +1,4 @@
 # SPDX-License-Identifier: GPL-2.0
-ccflags-y := -Iinclude/drm
-
 vboxvideo-y :=  hgsmi_base.o modesetting.o vbva_base.o \
                vbox_drv.o vbox_fb.o vbox_hgsmi.o vbox_irq.o vbox_main.o \
                vbox_mode.o vbox_prime.o vbox_ttm.o
index d7440b9e5eea4e5f148ae22adbd503e011d41751..9997beac00fb5a8de952cdaf3aed82ad2567132f 100644 (file)
@@ -11,7 +11,6 @@
 #include <linux/console.h>
 #include <linux/vt_kern.h>
 
-#include <drm/drmP.h>
 #include <drm/drm_crtc_helper.h>
 
 #include "vbox_drv.h"
index f82e594eca4bc9b848e420e3a7f5eb5dbe0cb5c8..cb0bc9201a7f7511c5c781f3aeab1631631eae9c 100644 (file)
 
 #include <linux/genalloc.h>
 #include <linux/io.h>
+#include <linux/irqreturn.h>
 #include <linux/string.h>
 #include <linux/version.h>
 
-#include <drm/drmP.h>
 #include <drm/drm_encoder.h>
 #include <drm/drm_fb_helper.h>
 #include <drm/drm_gem.h>
index b98c76b38f282d0b30890005a8cc20ce581522bb..9a2afe74bef21da2fb7df6fde33f151c06e05ce0 100644 (file)
@@ -17,7 +17,6 @@
 #include <linux/fb.h>
 #include <linux/init.h>
 
-#include <drm/drmP.h>
 #include <drm/drm_crtc.h>
 #include <drm/drm_fb_helper.h>
 #include <drm/drm_crtc_helper.h>
index 74f2d271ddac4dc21d6778001ad1d1e5bd81867e..edc8686454bf5cb1ed7e22617320bbdc35da3680 100644 (file)
@@ -6,8 +6,10 @@
  * Authors: Dave Airlie <airlied@redhat.com>
  *          Michael Thayer <michael.thayer@oracle.com>
  */
+#include <linux/pci.h>
+#include <drm/drm_file.h>
+#include <drm/ttm/ttm_page_alloc.h>
 #include "vbox_drv.h"
-#include <ttm/ttm_page_alloc.h>
 
 static inline struct vbox_private *vbox_bdev(struct ttm_bo_device *bd)
 {