Received: by 10.223.176.46 with SMTP id f43csp1103599wra; Fri, 19 Jan 2018 07:00:10 -0800 (PST) X-Google-Smtp-Source: ACJfBotwzPzxEnGcWp9spsUv+oeufdlI/7/kcHzhTldiXVetW5/sXtI2LlDVT9XtVONyyCmAVumS X-Received: by 10.101.96.198 with SMTP id r6mr18788434pgv.420.1516374010002; Fri, 19 Jan 2018 07:00:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516374009; cv=none; d=google.com; s=arc-20160816; b=L1TALDN8hDN2rxYj/LihwDKRYTgxMUU4GuK+9sva5pMb4NYI5tO3DdVqClOywZounm 3Z0bPWQMmQahUSy3TuGWxqfLHMIqczUXrDbe5vzLdgZ3qltbCspsk74Ws1VaTTwWpcAq Fkuj7U14SgnWZ9oYhsXawrK3m+mXVeHT35gPPyzfGeKQi0foHws2nGIzLJDG9O4/nLkT LxdjoRMjd7EqO4jKm+21vBgH/5AQ7LUR0rm2cw4l8RPzIgPK8FD3Gj4yQVpznlY1BxCy 5rWfFsSIp9G/wEO0gqvlBs/kL6z9UcU9OMgrdTOy8z9pi+5d6TqsVNDBUeU8EpCWCOVF /CTA== 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 :arc-authentication-results; bh=N/Czuc/mLheBDbCvzAjBiFQXfFzRaTYwU7+BJ5i2+KI=; b=ViXqaTHKjf6m0lPBhsNUZF03h9TEVvLW3589hlm9cRKrkUsaMiKsexjqRjEZxCPe6z HA490ws37Zfj8RdoG6quNzZzHgGZGcwAZyBrT3vjHMB+TaXOQ3XyGIdq32XZruBfmrin ABSfVijyoPCjsFUqu11StFuOtI7gMl2dZR/rdXOibtMPArGTNWlihg1fe85yUF3ibeMg 10rkd0FF2BpunWLARqMOP6z4qdMVHI0Fu7nzTJ1GwwJc9Zzs6Ez6Jt9b2j/9JW+u4G7R bN9yE6efckx6gLSlSjKpzxMXEYR/NBry+BdC4dqCwWgSZMu24q8ynid7QF3NE0eM+0A0 Ogiw== ARC-Authentication-Results: i=1; mx.google.com; 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 q1-v6si880234plb.622.2018.01.19.06.59.54; Fri, 19 Jan 2018 07:00:09 -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; 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 S1755836AbeASO6o (ORCPT + 99 others); Fri, 19 Jan 2018 09:58:44 -0500 Received: from mout.kundenserver.de ([212.227.17.24]:49537 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755640AbeASO62 (ORCPT ); Fri, 19 Jan 2018 09:58:28 -0500 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue105 [212.227.15.145]) with ESMTPA (Nemesis) id 0MZUxJ-1eOb6Z3gqb-00LB3y; Fri, 19 Jan 2018 15:58:15 +0100 From: Arnd Bergmann To: Jon Mason , Dave Jiang , Allen Hubbe Cc: Arnd Bergmann , Gary R Hook , Serge Semin , linux-ntb@googlegroups.com, linux-kernel@vger.kernel.org Subject: [PATCH] NTB: ntb_perf: fix printing of resource_size_t Date: Fri, 19 Jan 2018 15:55:28 +0100 Message-Id: <20180119145813.1141817-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:6+OV46OZcg+VxZWwDR02pcs6AxDLBCI/4pKrMwHnvHbzl0LO0hX tszUircO8AboA5u29WsKW9D2VQKKsbvH+H5zxBVUXmi4rVz8nfSrQ6ftlgZ5ZuwAzjMN/W0 UkjyfX4xd2C/GOBaRt+cUSGRZb4j3gBGlT+K/MakOf7QOm6tYBy+2L3fC+q3rgA8CJOI7Qr LXQk4cz8Cu51iDk4ORVDQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:/uKmeddTPyk=:fCaKUbe1LXSytSOGuOE/FH GhvBmnItIQZ9vn6+mkLTCkLvjdcZGJ3c8qBvBvZzTTel5/11bSDCxIBraXBpi4IbWIOkSzkSN aJC8SmQr8x+0bQNVyrid2tj+M8KsQLG6MT4lcpCjb53FCUCIuAKCnHthtf/+KXj3talLyzW9Q vMF23qwyvyrwTWKzW87A5clxYZV5BdhMPyczyhmW/tuWyVPpxbGIri1hj+yxIVSrRhLlw7ltJ 0VA/TfXoOZd7huBPd6G79xqO216VmS4lP1kV77QodqSan8HsxvUMen3JWRDxdJ7tsgPIAU3MF cM/5aVW2SBXv4afFtoCyNYn2RgqpySDNyTygxyeuv8CbCD8rrOPNkBgjh+XyfUH20tlURauuG tvZ0NKHSOAoq/OZLWxrZMYO1SgMvbKUbt1yR4OQxQOLJ84pVNm2HOF79iObudxDybmErtecXN CSrcMSP7DjvowK4dojD3jcfeSmDE5BNQRH9rP+PAFTwUN4xq4iI+Nk16BJgNyo7piQDUiL1WN M9y+nyhy+HEJAkRThDtWpoXdit11LsIHl5jK5TW8YwHJ+nyY2b+SVW1++/JdSLDJ6/u92JW/9 rr8BRWlSG/XGVazbcLaEKZdBfCRmsMajkjfFidBICGsTtVAxcRJ1dW7ItEXUdmZuoi5RnC/1e /VvTz64X4U+2suAjYmagt9hkzO9FK9keCRSro88KZxyyaFedHJVzYkgUAJ7Jv797vGhhRdjCH KTuLZ9ra8TIN9EmtuRGLUbtluVHT8omzJ3HD/A== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 32-bit architectures, resource_size_t is usually 'unsigned int' or 'unsigned long' but not 'unsigned long long', so we get a warning about printing the wrong data: drivers/ntb/test/ntb_perf.c: In function 'perf_setup_peer_mw': drivers/ntb/test/ntb_perf.c:1390:35: error: format '%llx' expects argument of type 'long long unsigned int', but argument 4 has type 'resource_size_t {aka unsigned int}' [-Werror=format=] This changes the format string to the special %pa that is already used elsewhere in the same file. Fixes: b83003b3fdc1 ("NTB: ntb_perf: Add full multi-port NTB API support") Signed-off-by: Arnd Bergmann --- drivers/ntb/test/ntb_perf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/ntb/test/ntb_perf.c b/drivers/ntb/test/ntb_perf.c index 8de72f3fba4d..1829a17dd461 100644 --- a/drivers/ntb/test/ntb_perf.c +++ b/drivers/ntb/test/ntb_perf.c @@ -1387,8 +1387,8 @@ static int perf_setup_peer_mw(struct perf_peer *peer) if (max_mw_size && peer->outbuf_size > max_mw_size) { peer->outbuf_size = max_mw_size; dev_warn(&peer->perf->ntb->dev, - "Peer %d outbuf reduced to %#llx\n", peer->pidx, - peer->outbuf_size); + "Peer %d outbuf reduced to %pa\n", peer->pidx, + &peer->outbuf_size); } return 0; -- 2.9.0