From patchwork Tue Apr 19 20:38:03 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Waychison X-Patchwork-Id: 719701 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 p3JKYVjp028231 for ; Tue, 19 Apr 2011 20:38:21 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751981Ab1DSUiU (ORCPT ); Tue, 19 Apr 2011 16:38:20 -0400 Received: from smtp-out.google.com ([216.239.44.51]:15783 "EHLO smtp-out.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751543Ab1DSUiU (ORCPT ); Tue, 19 Apr 2011 16:38:20 -0400 Received: from kpbe18.cbf.corp.google.com (kpbe18.cbf.corp.google.com [172.25.105.82]) by smtp-out.google.com with ESMTP id p3JKc7gq022147; Tue, 19 Apr 2011 13:38:07 -0700 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1303245488; bh=8fxpvrQlT6ENoz0992RO0oNQTuw=; h=From:To:Cc:Subject:Date:Message-Id; b=Pg8NHfFcClffY71bIY1HKTTFG/lp/HOAeO+XRt+98xTHMWCmN4dLUHJe6yqKLdbhM bGzHXn6TWEKeIQy+MJRew== DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=from:to:cc:subject:date:message-id:x-mailer; b=L1zYSWtqV55UVAabCK/kPi4DYF4gVu7jDmiFSpTw8hjm9EKDuJELthjjPCCHjUwxJ /Evs9zDpLnRYklyR1KP4g== Received: from mike.mtv.corp.google.com (mike.mtv.corp.google.com [172.18.96.105]) by kpbe18.cbf.corp.google.com with ESMTP id p3JKc5xJ008659; Tue, 19 Apr 2011 13:38:05 -0700 Received: by mike.mtv.corp.google.com (Postfix, from userid 11438) id 6D231160A18; Tue, 19 Apr 2011 13:38:05 -0700 (PDT) From: Mike Waychison To: Peter Jones , Paul Mundt Cc: linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, Mike Waychison Subject: [PATCH] efifb: Fix "cast to pointer from integer of different size" Date: Tue, 19 Apr 2011 13:38:03 -0700 Message-Id: <1303245483-2799-1-git-send-email-mikew@google.com> X-Mailer: git-send-email 1.7.3.1 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 20:38:21 +0000 (UTC) Fix set_system() to not cause a cast warning when printing a u32 as a pointer: drivers/video/efifb.c: In function 'set_system': drivers/video/efifb.c:247: error: cast to pointer from integer of different size Allow the integer to print as a pointer by first casting to unsigned long which we know will be the width of a pointer and at least as wide as u32. Signed-off-by: Mike Waychison --- drivers/video/efifb.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/video/efifb.c b/drivers/video/efifb.c index 4eb38db..59e9f06 100644 --- a/drivers/video/efifb.c +++ b/drivers/video/efifb.c @@ -244,8 +244,9 @@ static int set_system(const struct dmi_system_id *id) printk(KERN_INFO "efifb: dmi detected %s - framebuffer at %p " "(%dx%d, stride %d)\n", id->ident, - (void *)screen_info.lfb_base, screen_info.lfb_width, - screen_info.lfb_height, screen_info.lfb_linelength); + (void *)(unsigned long)screen_info.lfb_base, + screen_info.lfb_width, screen_info.lfb_height, + screen_info.lfb_linelength); return 1;