From patchwork Thu Jun 27 14:44:42 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: naresh.bhat@linaro.org X-Patchwork-Id: 18161 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f199.google.com (mail-qc0-f199.google.com [209.85.216.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B768B23910 for ; Thu, 27 Jun 2013 14:45:54 +0000 (UTC) Received: by mail-qc0-f199.google.com with SMTP id a1sf1239233qcx.6 for ; Thu, 27 Jun 2013 07:45:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-beenthere:x-forwarded-to:x-forwarded-for:delivered-to:from:to:cc :subject:date:message-id:x-mailer:mime-version:x-gm-message-state :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-google-group-id:list-post:list-help :list-archive:list-unsubscribe:content-type :content-transfer-encoding; bh=rD4DR/bWAP7D6kjfi8Q1u2aS44uE04m3ST3XW6m6x6Y=; b=fwo1IgBtyde0wXQ3pSGqlS3XrqOloiptfSam2xa4K/57ECroYwbPd6IZXDNMkj8O7e ACiJskZeSQtdhu4zxyHzA+IanxfnYNhGi4pkJda38IZ+ROlgAtEXhMgjGnAOJD6DUp57 W+46qyZW8TiQFI8atNNPBm+O3BpJvMOyW8+v0qKPijlH6KYuThUd+fEo2Cc86eyc8sRM wl32IoYAsZfmXXHQBTM7QDdSHse7sK9V+gbbM14Q2CesZKNCox1e2r2dSW7v+nnwarHg +no45tcXPYNGLnr80GCi8dWBnE+p9qArRDDgCwUj5fI880Nq646oxzgqpTb2BQoHxlJM CdZA== X-Received: by 10.224.29.76 with SMTP id p12mr8388185qac.5.1372344354112; Thu, 27 Jun 2013 07:45:54 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.82.74 with SMTP id g10ls893916qey.60.gmail; Thu, 27 Jun 2013 07:45:53 -0700 (PDT) X-Received: by 10.220.101.138 with SMTP id c10mr3615133vco.19.1372344353866; Thu, 27 Jun 2013 07:45:53 -0700 (PDT) Received: from mail-ve0-f175.google.com (mail-ve0-f175.google.com [209.85.128.175]) by mx.google.com with ESMTPS id ya5si855202vec.95.2013.06.27.07.45.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Jun 2013 07:45:53 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.175; Received: by mail-ve0-f175.google.com with SMTP id da11so752140veb.34 for ; Thu, 27 Jun 2013 07:45:53 -0700 (PDT) X-Received: by 10.220.53.7 with SMTP id k7mr3574625vcg.52.1372344353790; Thu, 27 Jun 2013 07:45:53 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.58.165.8 with SMTP id yu8csp151388veb; Thu, 27 Jun 2013 07:45:53 -0700 (PDT) X-Received: by 10.66.252.194 with SMTP id zu2mr6487922pac.71.1372344352909; Thu, 27 Jun 2013 07:45:52 -0700 (PDT) Received: from mail-pa0-f44.google.com (mail-pa0-f44.google.com [209.85.220.44]) by mx.google.com with ESMTPS id vv9si1665253pbc.25.2013.06.27.07.45.52 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Jun 2013 07:45:52 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.44 is neither permitted nor denied by best guess record for domain of naresh.bhat@linaro.org) client-ip=209.85.220.44; Received: by mail-pa0-f44.google.com with SMTP id lj1so1146237pab.3 for ; Thu, 27 Jun 2013 07:45:52 -0700 (PDT) X-Received: by 10.68.34.165 with SMTP id a5mr6348718pbj.156.1372344352378; Thu, 27 Jun 2013 07:45:52 -0700 (PDT) Received: from Latitude-E6430.mvista.com ([115.119.134.194]) by mx.google.com with ESMTPSA id v7sm3444637pbq.32.2013.06.27.07.45.48 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Jun 2013 07:45:51 -0700 (PDT) From: Naresh Bhat To: linux-kernel@vger.kernel.org Cc: linaro-kernel@lists.linaro.org, patches@linaro.org, linux-arm-kernel@lists.infradead.org, linux@arm.linux.org.uk, nico@fluxnic.net, dnevil@snmc.com, pc@denkart.be, erik@vt.edu, nicolas.pitre@linaro.org, naresh.bhat@linaro.org Subject: [PATCH 3/3] smc91x: Fix cast from pointer to integer Date: Thu, 27 Jun 2013 20:14:42 +0530 Message-Id: <1372344282-6608-1-git-send-email-naresh.bhat@linaro.org> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-Gm-Message-State: ALoCoQmaVu0tVkOR9h2TXTDqpD5ZayVZBR8THNq7WWtw8nghlljKmvDassdYz2UWk9HulB39NJhx X-Original-Sender: naresh.bhat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The patch fix the following warning which is occured while compiling the kernel for aarch64 bit architecture CC drivers/net/ethernet/smsc/smc91x.o drivers/net/ethernet/smsc/smc91x.c: In function ‘smc_probe’: drivers/net/ethernet/smsc/smc91x.c:1901:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] --- drivers/net/ethernet/smsc/smc91x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/smsc/smc91x.c b/drivers/net/ethernet/smsc/smc91x.c index 591650a..1011ecc 100644 --- a/drivers/net/ethernet/smsc/smc91x.c +++ b/drivers/net/ethernet/smsc/smc91x.c @@ -1898,7 +1898,7 @@ static int smc_probe(struct net_device *dev, void __iomem *ioaddr, SMC_SELECT_BANK(lp, 1); val = SMC_GET_BASE(lp); val = ((val & 0x1F00) >> 3) << SMC_IO_SHIFT; - if (((unsigned int)ioaddr & (0x3e0 << SMC_IO_SHIFT)) != val) { + if (((unsigned long)ioaddr & (0x3e0 << SMC_IO_SHIFT)) != val) { printk("%s: IOADDR %p doesn't match configuration (%x).\n", CARDNAME, ioaddr, val); }