Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2100881ybl; Thu, 30 Jan 2020 11:22:08 -0800 (PST) X-Google-Smtp-Source: APXvYqzLYgffvv5TLvjxul9m14TCy1N+O9ZbXHFaPrTXbs1lOmQtgQBOLpmxch6zlP/1yj/0b+zA X-Received: by 2002:a9d:6a85:: with SMTP id l5mr4961272otq.231.1580412128621; Thu, 30 Jan 2020 11:22:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580412128; cv=none; d=google.com; s=arc-20160816; b=PBIFc1iBZbrD9Tnp+C0ZUU4hAF1V9F8hZ573Pjoikhlq7aOhK1mhs4PGmjve3b2VYS rxvdAls4mrt+pDijfOn26wN0DjiEaEtBVl5hdP0eZOCZ5fJFArDigHyXRp6/dTr2Bnxi /5JOvUAWxTNz1yn4QyUxiD0zG8DQjM3dBKPFmEUM9cgW7iHyvWnUUSWzX6Zu4dEFwuSf g7VtdpZM0heuWtfQGV+fIi1OeQNR9tYZwn5s+wIETSDuGhyn8LGdXAUKCc0LwS+XDfJl Y/IIzG8qqEVGIur2fHgKkCOsSywLVAAk/xzsLo10EILMr9LdtzDslTsJL9pXj8xzJCYK j0Dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=WhzGwepDBiNI3pwGt4CHU7tc4ebeFn9JC/BfvgKfy5Y=; b=eZ+pfHMUYmZPXfa0vkPLpAikL44kkVuiIkwsvsokMnTYg/p371YBrqpiNdDH9hGjyu 6NoKKqYEIvQNjW7CCSZzQf8HZjrGUvgFQo3VgwA7VAQAzhhhxYKceyr66GmSZWpX66HH mgonswf/eiUc3vFhpJTSnrCU35tdrPBOE/Tiwp/XH6ccTVHPXtuOkZj2k7l6SPQkNlUE fAcLMHipfQZ03ueqUhaKh6zVNNeRihM7aSctcU/Id76M5RS7cKv4u79dFCQ6csChhPgf aBniWMJyV3z4E4C+mdn430ZC+QHK24PwSLLHgym0Zc7JsF5Xtl7hLW7TAd/aWnvBzANh 8o4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=UyFNeLst; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a194si455138oib.227.2020.01.30.11.21.57; Thu, 30 Jan 2020 11:22:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=UyFNeLst; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731734AbgA3Svv (ORCPT + 99 others); Thu, 30 Jan 2020 13:51:51 -0500 Received: from mail.kernel.org ([198.145.29.99]:53770 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730580AbgA3Sof (ORCPT ); Thu, 30 Jan 2020 13:44:35 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C655C214AF; Thu, 30 Jan 2020 18:44:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580409874; bh=EC6QQiIYGsK8EcLjTfUdiC4ff2xg3vzkssFEfamPy7A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UyFNeLst++znf0A7zDFUrLF93fciRe0aF0+GYIMfkPq4iC4CqkxZDAq3ysUzcNCpf OWg/HX5+dW3qAQChTEC5zQ+zgsQ17iaCpt7EuD4CrkFrQSVdzU7GEKY5NUrvkCLQnk FjogmUCacXH0QaNoW57IqEYCtGQrDAV5xF6orUaw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Krzysztof Kozlowski , "David S. Miller" , Sasha Levin Subject: [PATCH 5.4 068/110] net: wan: sdla: Fix cast from pointer to integer of different size Date: Thu, 30 Jan 2020 19:38:44 +0100 Message-Id: <20200130183622.662917201@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200130183613.810054545@linuxfoundation.org> References: <20200130183613.810054545@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Krzysztof Kozlowski [ Upstream commit 00c0688cecadbf7ac2f5b4cdb36d912a2d3f0cca ] Since net_device.mem_start is unsigned long, it should not be cast to int right before casting to pointer. This fixes warning (compile testing on alpha architecture): drivers/net/wan/sdla.c: In function ‘sdla_transmit’: drivers/net/wan/sdla.c:711:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] Signed-off-by: Krzysztof Kozlowski Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/wan/sdla.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wan/sdla.c b/drivers/net/wan/sdla.c index e2e679a01b65a..77ccf3672ede7 100644 --- a/drivers/net/wan/sdla.c +++ b/drivers/net/wan/sdla.c @@ -708,7 +708,7 @@ static netdev_tx_t sdla_transmit(struct sk_buff *skb, spin_lock_irqsave(&sdla_lock, flags); SDLA_WINDOW(dev, addr); - pbuf = (void *)(((int) dev->mem_start) + (addr & SDLA_ADDR_MASK)); + pbuf = (void *)(dev->mem_start + (addr & SDLA_ADDR_MASK)); __sdla_write(dev, pbuf->buf_addr, skb->data, skb->len); SDLA_WINDOW(dev, addr); pbuf->opp_flag = 1; -- 2.20.1