Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1617404ybv; Fri, 21 Feb 2020 00:22:26 -0800 (PST) X-Google-Smtp-Source: APXvYqzWsXW22QPtizqtaqD5eRp0jr7AObhKrZmukqA72XNKquCH1Mp8QKGybDUBHvNO243lTzFg X-Received: by 2002:aca:dd05:: with SMTP id u5mr1004632oig.91.1582273345958; Fri, 21 Feb 2020 00:22:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582273345; cv=none; d=google.com; s=arc-20160816; b=SlQsXPJ9iP9+QQJaar1HawjPwYD2fhUGn4eG8rpByoghOLM9RbEx6XTNgfJVM2tNwl ijsa29W4iI0fWCva/Vcf3MdKtIRXhSvdSlgJyvAy1fYr1j+w/Iyg7q/HP/EVU1i8yNgW QmWctRexj+vGcwU5VLdqaOrfpXRiP88a60ZYeO/BaObv8b+iq408N1CQFUALUti7NcVe mRluGyZPjRMUwds7i2SiEUuzqUXZn5UKv4o9BPiydjwET6Y3S434RMEJmED9q6tdqsz/ QzkJW1nNQvgPXf1oki/HKtvjTAE9gqmL2o9jAJiUs4ap+PH93TI5KgJcx5b/LM1488K2 e3pA== 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=oOf/t+I0tAaF+UYjHBCYIMi53JvbchgA0uVAVDfaev4=; b=dPmr+WjBNELbvZ+2ymxM9jCO0EvLlYePO1Sqlsc9ceSkik+7KsY0DVkyk8cLL6cvN3 KApjwSfBErylSlkiQlOKyblVBaOlBacLYeRX+eiamqTjshSyKw0OPhutjEcbJL+M9dUi +ZHuP2vwffnV/eVEMxjua1f6VMNs4cufhqnWjHgbwaIIlbx+uVeDh94lBXeVe0BpH6L3 SIioIN/3MtjFyIVQsl+4cBleSlBGL1LDX0AlZ7QR4Y5amTh8978FyPaiyRRwWP7X5die edWLID+cNv4p70B1mC4VydXJacw5rabbadf3aYGw2gqupH9pfQOkQrcodgojM6S2VICN jvfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=htKwdQjN; 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 w17si1107612oti.75.2020.02.21.00.22.13; Fri, 21 Feb 2020 00:22:25 -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=htKwdQjN; 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 S1730884AbgBUIVb (ORCPT + 99 others); Fri, 21 Feb 2020 03:21:31 -0500 Received: from mail.kernel.org ([198.145.29.99]:60884 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387873AbgBUIVZ (ORCPT ); Fri, 21 Feb 2020 03:21:25 -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 D8408222C4; Fri, 21 Feb 2020 08:21:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582273284; bh=7d2HlSTu28tCyC8lFDF6nFQvL3dmP8YskVis4QaibWI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=htKwdQjNRWtynoSLVn38+Qjz0xRRCF4U7B3QjWP/eZwONIKsPNWXl9U8Zyqhilbf7 s9UzPnEBEx2ZpWeml8MoSK+nWBaHTJlrONXj6sHABopdTjIcnHl2++x77pLLhe7OdK /eG7TU+IheKYB6e9KKjGH4iuJ3jRIZ2PWuxVaqgI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Linus Walleij , Jakub Kicinski , Sasha Levin Subject: [PATCH 4.19 113/191] wan: ixp4xx_hss: fix compile-testing on 64-bit Date: Fri, 21 Feb 2020 08:41:26 +0100 Message-Id: <20200221072304.486072294@linuxfoundation.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200221072250.732482588@linuxfoundation.org> References: <20200221072250.732482588@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: Arnd Bergmann [ Upstream commit 504c28c853ec5c626900b914b5833daf0581a344 ] Change the driver to use portable integer types to avoid warnings during compile testing: drivers/net/wan/ixp4xx_hss.c:863:21: error: cast to 'u32 *' (aka 'unsigned int *') from smaller integer type 'int' [-Werror,-Wint-to-pointer-cast] memcpy_swab32(mem, (u32 *)((int)skb->data & ~3), bytes / 4); ^ drivers/net/wan/ixp4xx_hss.c:979:12: error: incompatible pointer types passing 'u32 *' (aka 'unsigned int *') to parameter of type 'dma_addr_t *' (aka 'unsigned long long *') [-Werror,-Wincompatible-pointer-types] &port->desc_tab_phys))) ^~~~~~~~~~~~~~~~~~~~ include/linux/dmapool.h:27:20: note: passing argument to parameter 'handle' here dma_addr_t *handle); ^ Signed-off-by: Arnd Bergmann Signed-off-by: Linus Walleij Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- drivers/net/wan/ixp4xx_hss.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wan/ixp4xx_hss.c b/drivers/net/wan/ixp4xx_hss.c index 6a505c26a3e74..a269ed63d90f7 100644 --- a/drivers/net/wan/ixp4xx_hss.c +++ b/drivers/net/wan/ixp4xx_hss.c @@ -261,7 +261,7 @@ struct port { struct hss_plat_info *plat; buffer_t *rx_buff_tab[RX_DESCS], *tx_buff_tab[TX_DESCS]; struct desc *desc_tab; /* coherent */ - u32 desc_tab_phys; + dma_addr_t desc_tab_phys; unsigned int id; unsigned int clock_type, clock_rate, loopback; unsigned int initialized, carrier; @@ -861,7 +861,7 @@ static int hss_hdlc_xmit(struct sk_buff *skb, struct net_device *dev) dev->stats.tx_dropped++; return NETDEV_TX_OK; } - memcpy_swab32(mem, (u32 *)((int)skb->data & ~3), bytes / 4); + memcpy_swab32(mem, (u32 *)((uintptr_t)skb->data & ~3), bytes / 4); dev_kfree_skb(skb); #endif -- 2.20.1