OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c764268
)
drm: include kernel.h and agp_backend.h from intel-gtt.h
author
Jani Nikula
<jani.nikula@intel.com>
Thu, 27 Dec 2018 12:56:37 +0000
(14:56 +0200)
committer
Jani Nikula
<jani.nikula@intel.com>
Wed, 2 Jan 2019 09:37:47 +0000
(11:37 +0200)
intel-gtt.h uses kernel and agp pointers, make it self-contained by
including the relevant headers. This prepares for dropping drmP.h from
files including intel-gtt.h.
[Updated commit message per Laurent's review while applying.]
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/9414800f89d6f326c6e9173233bf6c4dee254d9a.1545915059.git.jani.nikula@intel.com
include/drm/intel-gtt.h
patch
|
blob
|
history
diff --git
a/include/drm/intel-gtt.h
b/include/drm/intel-gtt.h
index
2324c84
..
71d8192
100644
(file)
--- a/
include/drm/intel-gtt.h
+++ b/
include/drm/intel-gtt.h
@@
-4,6
+4,9
@@
#ifndef _DRM_INTEL_GTT_H
#define _DRM_INTEL_GTT_H
+#include <linux/agp_backend.h>
+#include <linux/kernel.h>
+
void intel_gtt_get(u64 *gtt_total,
phys_addr_t *mappable_base,
resource_size_t *mappable_end);