OSDN Git Service

drm-gem: Fix build
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 18 Jul 2008 19:42:43 +0000 (12:42 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 18 Jul 2008 19:42:43 +0000 (12:42 -0700)
On some distros missing prototypes cause kernel builds to fail.  These
are hack to make the code build.

linux-core/i915_gem.c
linux-core/i915_gem_tiling.c

index 236203a..fff2074 100644 (file)
@@ -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
index 2841ff1..c8177a7 100644 (file)
@@ -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.