From patchwork Wed Nov 26 22:07:24 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Lad, Prabhakar" X-Patchwork-Id: 5388891 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 222899F319 for ; Wed, 26 Nov 2014 22:07:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 64E1B201EC for ; Wed, 26 Nov 2014 22:07:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8C13F2011B for ; Wed, 26 Nov 2014 22:07:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750770AbaKZWHg (ORCPT ); Wed, 26 Nov 2014 17:07:36 -0500 Received: from mail-wi0-f176.google.com ([209.85.212.176]:62831 "EHLO mail-wi0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750895AbaKZWHc (ORCPT ); Wed, 26 Nov 2014 17:07:32 -0500 Received: by mail-wi0-f176.google.com with SMTP id ex7so13945410wid.9 for ; Wed, 26 Nov 2014 14:07:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=cx8r72s0lGw7WjBxvYWwGduum7loP2WL5dF5e4YpTAw=; b=S9u6O335UD+WFPmPbWX1ihHxAKb/FBKLiOYJ7D9AI+QEtT6Hb8H2VKWAQ6bGRG1Frh fVoX86tPQMJBSBiKRX7AFNqa58w8C8HIwu+kEaHK2OyCKRuc2fLHfyIw0Bpt6ut+tWcx hVJWEKwcbcKrTrsd6+RaxKXHdTjeLnYIW+bxBRBlLZDxhs22/zLcCjQ95Ph0XnnWtU8z DQkDIKCdLZBZCs7UYh2jsB4PmMTcGNy1tju5n5S6iYDW07r55+I/OVx/3KV5KF3hykD0 0h8yyusU8R6fFatNw/IJUFAE9JlIgTd73Nj5X+T3vTjq+Wx2in+kdVAqE3aEuPbgwzax 5aiw== X-Received: by 10.194.203.105 with SMTP id kp9mr52844536wjc.81.1417039651187; Wed, 26 Nov 2014 14:07:31 -0800 (PST) Received: from tango-charlie.Home ([90.208.178.234]) by mx.google.com with ESMTPSA id wa10sm8065980wjc.8.2014.11.26.14.07.29 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 26 Nov 2014 14:07:30 -0800 (PST) From: "Lad, Prabhakar" To: Tomi Valkeinen , Jean-Christophe Plagniol-Villard Cc: linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, "Lad, Prabhakar" Subject: [PATCH 2/3] video: fbdev: s3fb: suppress build warning Date: Wed, 26 Nov 2014 22:07:24 +0000 Message-Id: <1417039645-5313-2-git-send-email-prabhakar.csengg@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1417039645-5313-1-git-send-email-prabhakar.csengg@gmail.com> References: <1417039645-5313-1-git-send-email-prabhakar.csengg@gmail.com> MIME-Version: 1.0 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP this patch fixes following build warning: drivers/video/fbdev/s3fb.c: In function ‘s3_pci_probe’: drivers/video/fbdev/s3fb.c:1185:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] par->state.vgabase = (void __iomem *) vga_res.start; ^ Signed-off-by: Lad, Prabhakar --- drivers/video/fbdev/s3fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/s3fb.c b/drivers/video/fbdev/s3fb.c index c43b969..f0ae61a 100644 --- a/drivers/video/fbdev/s3fb.c +++ b/drivers/video/fbdev/s3fb.c @@ -1182,7 +1182,7 @@ static int s3_pci_probe(struct pci_dev *dev, const struct pci_device_id *id) pcibios_bus_to_resource(dev->bus, &vga_res, &bus_reg); - par->state.vgabase = (void __iomem *) vga_res.start; + par->state.vgabase = (void __iomem *) (unsigned long) vga_res.start; /* Unlock regs */ cr38 = vga_rcrt(par->state.vgabase, 0x38);