From patchwork Tue Apr 19 09:47:15 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konstantin Khlebnikov X-Patchwork-Id: 717711 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p3J9lI6w032240 for ; Tue, 19 Apr 2011 09:47:18 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753550Ab1DSJrS (ORCPT ); Tue, 19 Apr 2011 05:47:18 -0400 Received: from relay.parallels.com ([195.214.232.42]:58161 "EHLO relay.parallels.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753197Ab1DSJrR (ORCPT ); Tue, 19 Apr 2011 05:47:17 -0400 Received: from msk-exch1.sw.swsoft.com ([10.30.1.231] helo=mail.sw.ru) by relay.parallels.com with esmtps (TLSv1:RC4-MD5:128) (Exim 4.74) (envelope-from ) id 1QC7XD-0005fD-Jc; Tue, 19 Apr 2011 13:47:51 +0400 Received: from localhost (10.30.20.58) by mail.sw.ru (10.30.1.231) with Microsoft SMTP Server id 8.3.83.0; Tue, 19 Apr 2011 13:47:15 +0400 Subject: [PATCH] efifb: fix int to pointer cast warning To: Peter Jones From: Konstantin Khlebnikov CC: Date: Tue, 19 Apr 2011 13:47:15 +0400 Message-ID: <20110419094715.7888.84515.stgit@localhost6> User-Agent: StGit/0.15 MIME-Version: 1.0 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 19 Apr 2011 09:47:18 +0000 (UTC) drivers/video/efifb.c:247: warning: cast to pointer from integer of different size Signed-off-by: Konstantin Khlebnikov Signed-off-by: Peter Jones --- drivers/video/efifb.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/video/efifb.c b/drivers/video/efifb.c index 4eb38db..fb20584 100644 --- a/drivers/video/efifb.c +++ b/drivers/video/efifb.c @@ -242,9 +242,9 @@ static int set_system(const struct dmi_system_id *id) return 0; } - printk(KERN_INFO "efifb: dmi detected %s - framebuffer at %p " + printk(KERN_INFO "efifb: dmi detected %s - framebuffer at 0x%08x " "(%dx%d, stride %d)\n", id->ident, - (void *)screen_info.lfb_base, screen_info.lfb_width, + screen_info.lfb_base, screen_info.lfb_width, screen_info.lfb_height, screen_info.lfb_linelength);