Commit eab37607 authored by Kirill A. Shutemov's avatar Kirill A. Shutemov Committed by Dave Airlie

gma500: gtt: fix __iomem sparse warnings

Signed-off-by: default avatarKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent f728bd1a
...@@ -61,7 +61,7 @@ static inline uint32_t psb_gtt_mask_pte(uint32_t pfn, int type) ...@@ -61,7 +61,7 @@ static inline uint32_t psb_gtt_mask_pte(uint32_t pfn, int type)
* Given a gtt_range object return the GTT offset of the page table * Given a gtt_range object return the GTT offset of the page table
* entries for this gtt_range * entries for this gtt_range
*/ */
static u32 *psb_gtt_entry(struct drm_device *dev, struct gtt_range *r) static u32 __iomem *psb_gtt_entry(struct drm_device *dev, struct gtt_range *r)
{ {
struct drm_psb_private *dev_priv = dev->dev_private; struct drm_psb_private *dev_priv = dev->dev_private;
unsigned long offset; unsigned long offset;
...@@ -82,7 +82,8 @@ static u32 *psb_gtt_entry(struct drm_device *dev, struct gtt_range *r) ...@@ -82,7 +82,8 @@ static u32 *psb_gtt_entry(struct drm_device *dev, struct gtt_range *r)
*/ */
static int psb_gtt_insert(struct drm_device *dev, struct gtt_range *r) static int psb_gtt_insert(struct drm_device *dev, struct gtt_range *r)
{ {
u32 *gtt_slot, pte; u32 __iomem *gtt_slot;
u32 pte;
struct page **pages; struct page **pages;
int i; int i;
...@@ -126,7 +127,8 @@ static int psb_gtt_insert(struct drm_device *dev, struct gtt_range *r) ...@@ -126,7 +127,8 @@ static int psb_gtt_insert(struct drm_device *dev, struct gtt_range *r)
static void psb_gtt_remove(struct drm_device *dev, struct gtt_range *r) static void psb_gtt_remove(struct drm_device *dev, struct gtt_range *r)
{ {
struct drm_psb_private *dev_priv = dev->dev_private; struct drm_psb_private *dev_priv = dev->dev_private;
u32 *gtt_slot, pte; u32 __iomem *gtt_slot;
u32 pte;
int i; int i;
WARN_ON(r->stolen); WARN_ON(r->stolen);
...@@ -152,7 +154,8 @@ static void psb_gtt_remove(struct drm_device *dev, struct gtt_range *r) ...@@ -152,7 +154,8 @@ static void psb_gtt_remove(struct drm_device *dev, struct gtt_range *r)
*/ */
void psb_gtt_roll(struct drm_device *dev, struct gtt_range *r, int roll) void psb_gtt_roll(struct drm_device *dev, struct gtt_range *r, int roll)
{ {
u32 *gtt_slot, pte; u32 __iomem *gtt_slot;
u32 pte;
int i; int i;
if (roll >= r->npage) { if (roll >= r->npage) {
......
...@@ -507,7 +507,7 @@ struct drm_psb_private { ...@@ -507,7 +507,7 @@ struct drm_psb_private {
/* GTT Memory manager */ /* GTT Memory manager */
struct psb_gtt_mm *gtt_mm; struct psb_gtt_mm *gtt_mm;
struct page *scratch_page; struct page *scratch_page;
u32 *gtt_map; u32 __iomem *gtt_map;
uint32_t stolen_base; uint32_t stolen_base;
void *vram_addr; void *vram_addr;
unsigned long vram_stolen_size; unsigned long vram_stolen_size;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment