Skip to contentSkip to conversation

ps3fb: Fix compile warning

PATCH New Geoff Levand 1 participant 1 message May 15, 2013

Subsystems (3)
lore
Share & tools
lore

Geoff Levand

author maintainer
#0 lore raw

PATCH 1/1 ps3fb: Fix compile warning

Fix the following compile warning when -Wparentheses is set:

drivers/video/ps3fb.c: warning: suggest parentheses around ‘+’ inside ‘<<’

---
Hi Florian,

Please apply.

-Geoff

 drivers/video/ps3fb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/ps3fb.c +1 -1
index d9f08c6..a397271d 100644
@@ -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;
Signature · 1 line
1.8.1.2