]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/gpu/drm/i915/i915_gem.c
fix CONFIG_HIGHMEM compile error in drivers/gpu/drm/i915/i915_gem.c
[linux-2.6-omap-h63xx.git] / drivers / gpu / drm / i915 / i915_gem.c
index 49c5a1798ac4db409a0072daa7923dee89dce277..dc2e6fdb6ca33b7b6930f049d41495da0c8b17ef 100644 (file)
@@ -182,7 +182,8 @@ i915_gem_pread_ioctl(struct drm_device *dev, void *data,
  * happens to let us map card memory without taking IPIs.  When the vmap
  * rework lands we should be able to dump this hack.
  */
-static inline int fast_user_write(unsigned long pfn, char __user *user_data, int l)
+static inline int fast_user_write(unsigned long pfn, char __user *user_data,
+                                 int l, int o)
 {
 #ifdef CONFIG_HIGHMEM
        unsigned long unwritten;
@@ -251,7 +252,7 @@ i915_gem_gtt_pwrite(struct drm_device *dev, struct drm_gem_object *obj,
 
                pfn = (dev->agp->base >> PAGE_SHIFT) + i;
 
-               if (!fast_user_write(pfn, user_data, l)) {
+               if (!fast_user_write(pfn, user_data, l, o)) {
                        unsigned long unwritten;
                        char __iomem *vaddr;