Commit 9c6b876c authored by Randy Dunlap's avatar Randy Dunlap Committed by Thomas Zimmermann

drm: ast: fix double __iomem sparse warning

sparse complains about having 2 "__iomem" attributes on the same line
where only one is needed since the first one applies to everything
up to the ending ';'.
However, to make it clear(er) that both of these pointers are
"__iomem", use separate lines for them.

../drivers/gpu/drm/ast/ast_cursor.c:256:26: CK: warning: duplicate [noderef]
../drivers/gpu/drm/ast/ast_cursor.c:256:26: CK: error: multiple address space given: __iomem & __iomem
Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Reviewed-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Cc: Dave Airlie <airlied@redhat.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/a8185578-a69a-16b0-6fdf-f4e46bc4f61f@infradead.org
parent 9fe2f897
...@@ -253,7 +253,8 @@ void ast_cursor_show(struct ast_private *ast, int x, int y, ...@@ -253,7 +253,8 @@ void ast_cursor_show(struct ast_private *ast, int x, int y,
unsigned int offset_x, unsigned int offset_y) unsigned int offset_x, unsigned int offset_y)
{ {
u8 x_offset, y_offset; u8 x_offset, y_offset;
u8 __iomem *dst, __iomem *sig; u8 __iomem *dst;
u8 __iomem *sig;
u8 jreg; u8 jreg;
dst = ast->cursor.vaddr[ast->cursor.next_index]; dst = ast->cursor.vaddr[ast->cursor.next_index];
......
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