Skip to content

Commit

Permalink
drm/xe: Cleanup xe_mmio.h
Browse files Browse the repository at this point in the history
We don't need <linux/delay.h> include since commit 5c09bd6
("drm/xe/mmio: Move xe_mmio_wait32() to xe_mmio.c").

We don't need <linux/io-64-nonatomic-lo-hi.h> include since commit
54c6596 ("drm/xe: Make xe_mmio_read|write() functions non-inline").

And since commit 924e6a9 ("drm/xe/uapi: Remove MMIO ioctl")
we don't need forward declarations of drm_device and drm_file.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240520181814.2392-4-michal.wajdeczko@intel.com
  • Loading branch information
Michal Wajdeczko committed May 22, 2024
1 parent 26a2295 commit f7e20cf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
7 changes: 5 additions & 2 deletions drivers/gpu/drm/xe/xe_mmio.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
* Copyright © 2021-2023 Intel Corporation
*/

#include <linux/minmax.h>

#include "xe_mmio.h"

#include <linux/delay.h>
#include <linux/io-64-nonatomic-lo-hi.h>
#include <linux/minmax.h>

#include <drm/drm_managed.h>
#include <drm/xe_drm.h>

Expand All @@ -19,6 +21,7 @@
#include "xe_ggtt.h"
#include "xe_gt.h"
#include "xe_gt_mcr.h"
#include "xe_gt_printk.h"
#include "xe_macros.h"
#include "xe_module.h"
#include "xe_sriov.h"
Expand Down
9 changes: 1 addition & 8 deletions drivers/gpu/drm/xe/xe_mmio.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,10 @@
#ifndef _XE_MMIO_H_
#define _XE_MMIO_H_

#include <linux/delay.h>
#include <linux/io-64-nonatomic-lo-hi.h>

#include "regs/xe_reg_defs.h"
#include "xe_device_types.h"
#include "xe_gt_printk.h"
#include "xe_gt_types.h"

struct drm_device;
struct drm_file;
struct xe_device;
struct xe_reg;

#define LMEM_BAR 2

Expand Down

0 comments on commit f7e20cf

Please sign in to comment.