From patchwork Wed May 15 03:12:37 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geoff Levand X-Patchwork-Id: 2569701 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id D4D7D3FD85 for ; Wed, 15 May 2013 03:12:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756104Ab3EODMq (ORCPT ); Tue, 14 May 2013 23:12:46 -0400 Received: from 173-166-109-252-newengland.hfc.comcastbusiness.net ([173.166.109.252]:51335 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756061Ab3EODMq (ORCPT ); Tue, 14 May 2013 23:12:46 -0400 Received: from [218.17.215.175] (helo=[192.168.204.52]) by bombadil.infradead.org with esmtpsa (Exim 4.80.1 #2 (Red Hat Linux)) id 1UcS8w-0003Pa-Vp; Wed, 15 May 2013 03:12:43 +0000 Message-ID: <1368587557.4004.3.camel@clam> Subject: [PATCH] ps3fb: Fix compile warning From: Geoff Levand To: Florian Tobias Schandinat Cc: linux-fbdev@vger.kernel.org Date: Wed, 15 May 2013 11:12:37 +0800 X-Mailer: Evolution 3.6.4-0ubuntu1 Mime-Version: 1.0 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org Fix the following compile warning when -Wparentheses is set: drivers/video/ps3fb.c: warning: suggest parentheses around ‘+’ inside ‘<<’ Signed-off-by: Geoff Levand --- Hi Florian, Please apply. -Geoff drivers/video/ps3fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/ps3fb.c b/drivers/video/ps3fb.c index d9f08c6..a397271d 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;