Skip to content

Commit

Permalink
gpu/drm, x86, PAT: PAT support for io_mapping_*, export symbols for m…
Browse files Browse the repository at this point in the history
…odules

Impact: build fix

 ERROR: "reserve_io_memtype_wc" [drivers/gpu/drm/i915/i915.ko] undefined!
 ERROR: "free_io_memtype" [drivers/gpu/drm/i915/i915.ko] undefined!

Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Ingo Molnar committed Feb 26, 2009
1 parent 2e31add commit 13093cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/x86/mm/iomap_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,15 @@ reserve_io_memtype_wc(u64 base, unsigned long size, pgprot_t *prot)
out_err:
return -EINVAL;
}
EXPORT_SYMBOL_GPL(reserve_io_memtype_wc);

void
free_io_memtype(u64 base, unsigned long size)
{
if (pat_enabled)
free_memtype(base, base + size);
}
EXPORT_SYMBOL_GPL(free_io_memtype);

/* Map 'pfn' using fixed map 'type' and protections 'prot'
*/
Expand Down

0 comments on commit 13093cb

Please sign in to comment.