diff options
| author | Al Viro <viro@zeniv.linux.org.uk> | 2014-08-31 15:06:09 -0400 |
|---|---|---|
| committer | Al Viro <viro@zeniv.linux.org.uk> | 2014-10-09 02:39:11 -0400 |
| commit | 3cfb2face6205d30ecfc0145d68cd9e0c3dfe6f1 (patch) | |
| tree | e58dca930dfbf7c824761bbda4bb1fb57ad1d545 | |
| parent | e983094d6dce524f3890edfec44b7ca6dbfa1183 (diff) | |
nouveau: __iomem misannotations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
| -rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_nvif.c | 4 | ||||
| -rw-r--r-- | drivers/gpu/drm/nouveau/nvif/driver.h | 4 | ||||
| -rw-r--r-- | drivers/gpu/drm/nouveau/nvif/object.h | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_nvif.c b/drivers/gpu/drm/nouveau/nouveau_nvif.c index 47ca88623753..6544b84f0303 100644 --- a/drivers/gpu/drm/nouveau/nouveau_nvif.c +++ b/drivers/gpu/drm/nouveau/nouveau_nvif.c | |||
| @@ -40,12 +40,12 @@ | |||
| 40 | #include "nouveau_usif.h" | 40 | #include "nouveau_usif.h" |
| 41 | 41 | ||
| 42 | static void | 42 | static void |
| 43 | nvkm_client_unmap(void *priv, void *ptr, u32 size) | 43 | nvkm_client_unmap(void *priv, void __iomem *ptr, u32 size) |
| 44 | { | 44 | { |
| 45 | iounmap(ptr); | 45 | iounmap(ptr); |
| 46 | } | 46 | } |
| 47 | 47 | ||
| 48 | static void * | 48 | static void __iomem * |
| 49 | nvkm_client_map(void *priv, u64 handle, u32 size) | 49 | nvkm_client_map(void *priv, u64 handle, u32 size) |
| 50 | { | 50 | { |
| 51 | return ioremap(handle, size); | 51 | return ioremap(handle, size); |
diff --git a/drivers/gpu/drm/nouveau/nvif/driver.h b/drivers/gpu/drm/nouveau/nvif/driver.h index b72a8f0c2758..ac4bdb3ea506 100644 --- a/drivers/gpu/drm/nouveau/nvif/driver.h +++ b/drivers/gpu/drm/nouveau/nvif/driver.h | |||
| @@ -9,8 +9,8 @@ struct nvif_driver { | |||
| 9 | int (*suspend)(void *priv); | 9 | int (*suspend)(void *priv); |
| 10 | int (*resume)(void *priv); | 10 | int (*resume)(void *priv); |
| 11 | int (*ioctl)(void *priv, bool super, void *data, u32 size, void **hack); | 11 | int (*ioctl)(void *priv, bool super, void *data, u32 size, void **hack); |
| 12 | void *(*map)(void *priv, u64 handle, u32 size); | 12 | void __iomem *(*map)(void *priv, u64 handle, u32 size); |
| 13 | void (*unmap)(void *priv, void *ptr, u32 size); | 13 | void (*unmap)(void *priv, void __iomem *ptr, u32 size); |
| 14 | bool keep; | 14 | bool keep; |
| 15 | }; | 15 | }; |
| 16 | 16 | ||
diff --git a/drivers/gpu/drm/nouveau/nvif/object.h b/drivers/gpu/drm/nouveau/nvif/object.h index fac3a3bbec44..fe519179b76c 100644 --- a/drivers/gpu/drm/nouveau/nvif/object.h +++ b/drivers/gpu/drm/nouveau/nvif/object.h | |||
| @@ -14,7 +14,7 @@ struct nvif_object { | |||
| 14 | void *priv; /*XXX: hack */ | 14 | void *priv; /*XXX: hack */ |
| 15 | void (*dtor)(struct nvif_object *); | 15 | void (*dtor)(struct nvif_object *); |
| 16 | struct { | 16 | struct { |
| 17 | void *ptr; | 17 | void __iomem *ptr; |
| 18 | u32 size; | 18 | u32 size; |
| 19 | } map; | 19 | } map; |
| 20 | }; | 20 | }; |
| @@ -42,7 +42,7 @@ void nvif_object_unmap(struct nvif_object *); | |||
| 42 | struct nvif_object *_object = nvif_object(a); \ | 42 | struct nvif_object *_object = nvif_object(a); \ |
| 43 | u32 _data; \ | 43 | u32 _data; \ |
| 44 | if (likely(_object->map.ptr)) \ | 44 | if (likely(_object->map.ptr)) \ |
| 45 | _data = ioread##b##_native((u8 *)_object->map.ptr + (c)); \ | 45 | _data = ioread##b##_native((u8 __iomem *)_object->map.ptr + (c)); \ |
| 46 | else \ | 46 | else \ |
| 47 | _data = nvif_object_rd(_object, (b) / 8, (c)); \ | 47 | _data = nvif_object_rd(_object, (b) / 8, (c)); \ |
| 48 | _data; \ | 48 | _data; \ |
| @@ -50,7 +50,7 @@ void nvif_object_unmap(struct nvif_object *); | |||
| 50 | #define nvif_wr(a,b,c,d) ({ \ | 50 | #define nvif_wr(a,b,c,d) ({ \ |
| 51 | struct nvif_object *_object = nvif_object(a); \ | 51 | struct nvif_object *_object = nvif_object(a); \ |
| 52 | if (likely(_object->map.ptr)) \ | 52 | if (likely(_object->map.ptr)) \ |
| 53 | iowrite##b##_native((d), (u8 *)_object->map.ptr + (c)); \ | 53 | iowrite##b##_native((d), (u8 __iomem *)_object->map.ptr + (c)); \ |
| 54 | else \ | 54 | else \ |
| 55 | nvif_object_wr(_object, (b) / 8, (c), (d)); \ | 55 | nvif_object_wr(_object, (b) / 8, (c), (d)); \ |
| 56 | }) | 56 | }) |
