diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-04-30 11:44:51 +0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-05-02 15:59:21 +0400 |
commit | b358c6cf029cb67b3ed9cc367fb46f1fa3228c5b (patch) | |
tree | 05760bfb5d09764cf8da508b2439038768dccdca /drivers/video/ps3fb.c | |
parent | 9bf9d47a29afbf7a43eae74a988a4aefe88ccbfd (diff) | |
download | linux-b358c6cf029cb67b3ed9cc367fb46f1fa3228c5b.tar.xz |
fbdev/ps3fb: fix compile warning
Commit 11bd5933abe0 ("fbdev/ps3fb: use vm_iomap_memory()") introduced
the following warning:
drivers/video/ps3fb.c: In function 'ps3fb_mmap':
drivers/video/ps3fb.c:712:2: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
Fix this by adding the parentheses.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/ps3fb.c')
-rw-r--r-- | drivers/video/ps3fb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/ps3fb.c b/drivers/video/ps3fb.c index d9f08c653d62..dbfe2c18a434 100644 --- a/drivers/video/ps3fb.c +++ b/drivers/video/ps3fb.c @@ -710,7 +710,7 @@ static int ps3fb_mmap(struct fb_info *info, struct vm_area_struct *vma) r = vm_iomap_memory(vma, info->fix.smem_start, info->fix.smem_len); dev_dbg(info->device, "ps3fb: mmap framebuffer P(%lx)->V(%lx)\n", - info->fix.smem_start + vma->vm_pgoff << PAGE_SHIFT, + info->fix.smem_start + (vma->vm_pgoff << PAGE_SHIFT), vma->vm_start); return r; |