]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vmwgfx: use *_32_bits() macros
authorPaul Bolle <pebolle@tiscali.nl>
Thu, 3 Mar 2016 10:26:10 +0000 (11:26 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 15 Jun 2016 11:10:38 +0000 (13:10 +0200)
commit2e2ad499c6dcd65aa41c27264f7998b4bfb0b7b8
tree32cba26397007f319e175d443362a2eeba01a979
parent809e1d1a7fb62888ef139052d306ba3cd1a2a8c8
drm/vmwgfx: use *_32_bits() macros

Use the upper_32_bits() macro instead of the four line equivalent that
triggers a GCC warning on 32 bits x86:
    drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c: In function 'vmw_cmdbuf_header_submit':
    drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c:297:25: warning: right shift count >= width of type [-Wshift-count-overflow]
       val = (header->handle >> 32);
                             ^

And use the lower_32_bits() macro instead of and-ing with a 32 bits
mask.

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Acked-by: Joe Perches <joe@perches.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1457000770-2317-1-git-send-email-pebolle@tiscali.nl
drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c