drm/qxl: drop use of drmP.h

Drop use of the deprecated drmP.h header file.
While touching the files divided includes in blocks,
and when needed sort the blocks.
Fix fallout.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Emil Velikov <emil.velikov@collabora.com>
Cc: Dave Airlie <airlied@redhat.com>
Cc: virtualization@lists.linux-foundation.org
Cc: spice-devel@lists.freedesktop.org
Link: https://patchwork.freedesktop.org/patch/msgid/20190630061922.7254-10-sam@ravnborg.org
This commit is contained in:
Sam Ravnborg 2019-06-30 08:18:58 +02:00
parent b4b21c8395
commit c0f4b75c06
12 changed files with 50 additions and 25 deletions

View File

@ -25,6 +25,8 @@
/* QXL cmd/ring handling */
#include <linux/delay.h>
#include <drm/drm_util.h>
#include "qxl_drv.h"

View File

@ -28,9 +28,9 @@
* Alon Levy <alevy@redhat.com>
*/
#include <linux/debugfs.h>
#include <drm/drm_debugfs.h>
#include <drm/drm_file.h>
#include <drm/drmP.h>
#include "qxl_drv.h"
#include "qxl_object.h"

View File

@ -24,11 +24,14 @@
*/
#include <linux/crc32.h>
#include <linux/delay.h>
#include <drm/drm_atomic.h>
#include <drm/drm_atomic_helper.h>
#include <drm/drm_gem_framebuffer_helper.h>
#include <drm/drm_plane_helper.h>
#include <drm/drm_probe_helper.h>
#include <drm/drm_vblank.h>
#include "qxl_drv.h"
#include "qxl_object.h"

View File

@ -20,6 +20,8 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <drm/drm_fourcc.h>
#include "qxl_drv.h"
#include "qxl_object.h"

View File

@ -28,14 +28,18 @@
* Alon Levy <alevy@redhat.com>
*/
#include <linux/module.h>
#include <linux/console.h>
#include <drm/drmP.h>
#include <drm/drm.h>
#include <drm/drm_modeset_helper.h>
#include <drm/drm_probe_helper.h>
#include "qxl_drv.h"
#include <linux/console.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <drm/drm.h>
#include <drm/drm_drv.h>
#include <drm/drm_file.h>
#include <drm/drm_modeset_helper.h>
#include <drm/drm_prime.h>
#include <drm/drm_probe_helper.h>
#include "qxl_object.h"
static const struct pci_device_id pciidlist[] = {

View File

@ -31,22 +31,21 @@
*/
#include <linux/dma-fence.h>
#include <linux/workqueue.h>
#include <linux/firmware.h>
#include <linux/platform_device.h>
#include <linux/workqueue.h>
#include <drm/drm_crtc.h>
#include <drm/drm_encoder.h>
#include <drm/drm_fb_helper.h>
#include <drm/drm_ioctl.h>
#include <drm/drm_gem.h>
#include <drm/drmP.h>
#include <drm/qxl_drm.h>
#include <drm/ttm/ttm_bo_api.h>
#include <drm/ttm/ttm_bo_driver.h>
/* just for ttm_validate_buffer */
#include <drm/ttm/ttm_execbuf_util.h>
#include <drm/ttm/ttm_module.h>
#include <drm/ttm/ttm_placement.h>
#include <drm/qxl_drm.h>
#include "qxl_dev.h"

View File

@ -23,7 +23,6 @@
* Alon Levy
*/
#include <drm/drmP.h>
#include <drm/drm.h>
#include "qxl_drv.h"

View File

@ -23,6 +23,9 @@
* Alon Levy
*/
#include <linux/pci.h>
#include <linux/uaccess.h>
#include "qxl_drv.h"
#include "qxl_object.h"

View File

@ -23,6 +23,10 @@
* Alon Levy
*/
#include <linux/pci.h>
#include <drm/drm_irq.h>
#include "qxl_drv.h"
irqreturn_t qxl_irq_handler(int irq, void *arg)

View File

@ -23,12 +23,15 @@
* Alon Levy
*/
#include <linux/io-mapping.h>
#include <linux/pci.h>
#include <drm/drm_drv.h>
#include <drm/drm_probe_helper.h>
#include "qxl_drv.h"
#include "qxl_object.h"
#include <drm/drm_probe_helper.h>
#include <linux/io-mapping.h>
int qxl_log_level;
static bool qxl_check_device(struct qxl_device *qdev)

View File

@ -19,9 +19,13 @@
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <linux/delay.h>
#include <trace/events/dma_fence.h>
#include "qxl_drv.h"
#include "qxl_object.h"
#include <trace/events/dma_fence.h>
/*
* drawable cmd cache - allocate a bunch of VRAM pages, suballocate

View File

@ -23,19 +23,21 @@
* Alon Levy
*/
#include <linux/delay.h>
#include <drm/drm.h>
#include <drm/drm_file.h>
#include <drm/drm_debugfs.h>
#include <drm/qxl_drm.h>
#include <drm/ttm/ttm_bo_api.h>
#include <drm/ttm/ttm_bo_driver.h>
#include <drm/ttm/ttm_placement.h>
#include <drm/ttm/ttm_page_alloc.h>
#include <drm/ttm/ttm_module.h>
#include <drm/drmP.h>
#include <drm/drm.h>
#include <drm/qxl_drm.h>
#include <drm/ttm/ttm_page_alloc.h>
#include <drm/ttm/ttm_placement.h>
#include "qxl_drv.h"
#include "qxl_object.h"
#include <linux/delay.h>
static struct qxl_device *qxl_get_qdev(struct ttm_bo_device *bdev)
{
struct qxl_mman *mman;