summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2008-07-18 12:42:43 -0700
committerIan Romanick <ian.d.romanick@intel.com>2008-07-18 12:42:43 -0700
commit4d83a751b421ec3f3e0c572070c3bc295b9adbcc (patch)
tree4c568b9261a906acbcd71abf4532259f56ece144
parentf5c2f00e2f99732311c9a35a91b6adc93047c51b (diff)
drm-gem: Fix build
On some distros missing prototypes cause kernel builds to fail. These are hack to make the code build.
-rw-r--r--linux-core/i915_gem.c1
-rw-r--r--linux-core/i915_gem_tiling.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/linux-core/i915_gem.c b/linux-core/i915_gem.c
index 236203a5..fff2074e 100644
--- a/linux-core/i915_gem.c
+++ b/linux-core/i915_gem.c
@@ -30,6 +30,7 @@
#include "drm_compat.h"
#include "i915_drm.h"
#include "i915_drv.h"
+#include <linux/swap.h>
#define WATCH_COHERENCY 0
#define WATCH_BUF 0
diff --git a/linux-core/i915_gem_tiling.c b/linux-core/i915_gem_tiling.c
index 2841ff1f..c8177a7e 100644
--- a/linux-core/i915_gem_tiling.c
+++ b/linux-core/i915_gem_tiling.c
@@ -30,6 +30,9 @@
#include "i915_drm.h"
#include "i915_drv.h"
+extern int pci_read_base(struct pci_dev *dev, unsigned int reg,
+ struct resource *res);
+
/** @file i915_gem_tiling.c
*
* Support for managing tiling state of buffer objects.