Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2568417ybl; Thu, 19 Dec 2019 16:16:48 -0800 (PST) X-Google-Smtp-Source: APXvYqyFjS4pGEztmY6nXZeNPLe9HpHcPPE0JXgVLHn72tWsecdhlznhQWRjlYxMMFP2ePDUX6G6 X-Received: by 2002:a9d:27a2:: with SMTP id c31mr12385245otb.151.1576801008352; Thu, 19 Dec 2019 16:16:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576801008; cv=none; d=google.com; s=arc-20160816; b=WyW9wT0U2vNDsiKU551ADwRswqO4LmNnm8yaFr7lWaV4Dthm22cldFhp3DTARHGYHt potxP60h6VjXxPIDDVcBi3pEs9MTjLQCam51+mNBnydk3BeIpAYumCKHClUz13ReUhT3 xRUZhipS/oHoxdSyTVikProyBj24agfoNx/CDZWXxGAUv2tL+CY1QcNk6FqY+WCwiXXw KchSd1SlDjrN7mMsxJSz7J/khQWufK4fA4TWi+7pZSYKn14q1YxvS9T4r73wK3UvCl/1 Yhxl6uNoN15Uv8q8/p6M4zTbVjIksUE//2HFZq+1m9TeJar5RfA/aVGpzRwuVw+dP23T zZWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=Xza35VKEvSvjMP8PzRVZ35j7UizUwWQ11TtoEWfsA3Q=; b=ITG+UgPTrDzzwAPE+8QQY/vKXdyLnolvywkIggMofNKzYMUcX5kilf0H0pm7xkQnR4 RA5OdJv3EFSwLTYHrMKmLgtS0cTQWEqfMcJJV4oUrLG4u4mC3ro7IlWiOBOf6XH6DkGY sZGzKPblSldx3l89eQwAi/xh84/DNzSxRfa6NbQfjvBqjDiPXxMu9CgvnJBoQ7EA5Eaa DOq8PamKS1sGTltzbzHE2zcG70jwX1o6+cTyNmh4bCMtECx1/sTxQRTfxjcVE9MCY4cw eO9akll9P/0lVQGu9tYNXeEtbwWc/GoJ7j2cUgLP8r2aUbbzGCMKIFQmyNYQDpZ9wLS0 qGfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=NNy98T7d; 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 s126si4070524oib.84.2019.12.19.16.16.36; Thu, 19 Dec 2019 16:16:48 -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=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=NNy98T7d; 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 S1727181AbfLTAPk (ORCPT + 99 others); Thu, 19 Dec 2019 19:15:40 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:36123 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726952AbfLTAPk (ORCPT ); Thu, 19 Dec 2019 19:15:40 -0500 Received: by mail-pf1-f195.google.com with SMTP id x184so4219020pfb.3 for ; Thu, 19 Dec 2019 16:15:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lixom-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=Xza35VKEvSvjMP8PzRVZ35j7UizUwWQ11TtoEWfsA3Q=; b=NNy98T7dz4IUNnNLaJQft6RAEhtwCcTFXv02GozymvM1Ea1jNkJFQv2PQ+QRRXSLFk Mk5zTLKbBusvQPv+bg/u7qv8XzRqAPNTtdH+4maUWOK8PwJVrv6imA3+TuoGotcjr/rq WeaXXWd19uZ6bdYkMrnQAJmo+Q55zv1IfdYygUO/CGVTxuS5zngvmsySsLuWoGoKa2zG PxqsjNI4ya8KxN5qjphBTmkxJTPQoMpLZ6fLFikgoG2+MMx6ywYVBEYidrg7wqU/s40N 8g6m8CfYBp5/K3xC38QRkgsNQ2VUJEBe9gbcJJnF5RGAFwvBjneY+pxLSV0c3juCFZnW T5JQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Xza35VKEvSvjMP8PzRVZ35j7UizUwWQ11TtoEWfsA3Q=; b=Wl7AP9FLS1qmVj7tjPiMcgFMyD0K9NftQyZu0nVDZjOt15apcUEWlWRrkBfQ3RaboK ET7gdFg9Wf7rA61yWQ6HiP4VQtDzClC6DOIVYNqTfxvs4tKGJj2tC/8o3TUjabLw5kYh W8O+a2dTMEDDNvSQgU94cVjG41b9PQURHbG536Ezmupb8T6y1e6MsdpnhJiPUrTbf+jR aFBFiHryFXF8qIEMWtno+PDypmSoJixPMdmhB66nKj2imOYjOzbyyL4VKMUmZliN0j0h 89VHXy6ckK1hf0+QL/vBHQfdP0lMFveW1xN9nI59ORCWMVx+jg6brtZPgerdUHWaUQQf qmgQ== X-Gm-Message-State: APjAAAVRZE/lNQOkMwnHptE/L5jWIyosmrbguFmtwbD+tDkHKL6CkyPD DNhBx4oPDy3IOqgsVKUR4yG+xrlqEgpfLw== X-Received: by 2002:a65:58ce:: with SMTP id e14mr11807199pgu.153.1576800939356; Thu, 19 Dec 2019 16:15:39 -0800 (PST) Received: from rip.lixom.net (99-152-116-91.lightspeed.sntcca.sbcglobal.net. [99.152.116.91]) by smtp.gmail.com with ESMTPSA id e16sm8603679pgk.77.2019.12.19.16.15.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Dec 2019 16:15:37 -0800 (PST) From: Olof Johansson To: Saeed Mahameed , Leon Romanovsky Cc: netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, Olof Johansson Subject: [PATCH] net/mlx5e: Fix printk format warning Date: Thu, 19 Dec 2019 16:15:17 -0800 Message-Id: <20191220001517.105297-1-olof@lixom.net> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use "%zu" for size_t. Seen on ARM allmodconfig: drivers/net/ethernet/mellanox/mlx5/core/wq.c: In function 'mlx5_wq_cyc_wqe_dump': include/linux/kern_levels.h:5:18: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'size_t' {aka 'unsigned int'} [-Wformat=] Fixes: 130c7b46c93d ("net/mlx5e: TX, Dump WQs wqe descriptors on CQE with error events") Signed-off-by: Olof Johansson --- drivers/net/ethernet/mellanox/mlx5/core/wq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/wq.c b/drivers/net/ethernet/mellanox/mlx5/core/wq.c index f2a0e72285bac..02f7e4a39578a 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/wq.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/wq.c @@ -89,7 +89,7 @@ void mlx5_wq_cyc_wqe_dump(struct mlx5_wq_cyc *wq, u16 ix, u8 nstrides) len = nstrides << wq->fbc.log_stride; wqe = mlx5_wq_cyc_get_wqe(wq, ix); - pr_info("WQE DUMP: WQ size %d WQ cur size %d, WQE index 0x%x, len: %ld\n", + pr_info("WQE DUMP: WQ size %d WQ cur size %d, WQE index 0x%x, len: %zu\n", mlx5_wq_cyc_get_size(wq), wq->cur_sz, ix, len); print_hex_dump(KERN_WARNING, "", DUMP_PREFIX_OFFSET, 16, 1, wqe, len, false); } -- 2.11.0