Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754138AbcLICbI (ORCPT ); Thu, 8 Dec 2016 21:31:08 -0500 Received: from shards.monkeyblade.net ([184.105.139.130]:47900 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753032AbcLICbH (ORCPT ); Thu, 8 Dec 2016 21:31:07 -0500 Date: Thu, 08 Dec 2016 21:31:04 -0500 (EST) Message-Id: <20161208.213104.76575961025040529.davem@davemloft.net> To: arnd@arndb.de Cc: saeedm@mellanox.com, matanb@mellanox.com, leonro@mellanox.com, danielj@mellanox.com, tariqt@mellanox.com, netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next 1/3] net/mlx5e: use %pad format string for dma_addr_t From: David Miller In-Reply-To: <20161208215727.44841-1-arnd@arndb.de> References: <20161208215727.44841-1-arnd@arndb.de> X-Mailer: Mew version 6.7 on Emacs 25.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-7 X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Thu, 08 Dec 2016 17:31:45 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id uB92VEaE028877 Content-Length: 758 Lines: 17 From: Arnd Bergmann Date: Thu, 8 Dec 2016 22:57:03 +0100 > On 32-bit ARM with 64-bit dma_addr_t I get this warning about an > incorrect format string: > > In file included from /git/arm-soc/drivers/net/ethernet/mellanox/mlx5/core/alloc.c:42:0: > drivers/net/ethernet/mellanox/mlx5/core/alloc.c: In function ?mlx5_frag_buf_alloc_node?: > drivers/net/ethernet/mellanox/mlx5/core/alloc.c:134:12: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] > > We have the special %pad format for printing dma_addr_t, so use that > to print the correct address and avoid the warning. > > Fixes: 1c1b522808a1 ("net/mlx5e: Implement Fragmented Work Queue (WQ)") > Signed-off-by: Arnd Bergmann Applied.