From patchwork Fri Jan 19 14:55:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 125173 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp328205ljf; Fri, 19 Jan 2018 06:58:49 -0800 (PST) X-Google-Smtp-Source: ACJfBouLOgY+29kEqN3bcwtzXx7rDGc6dayBrbcIZmylxHC77gvr1gPzVBLdgkrQu1WMc/StQPoq X-Received: by 10.101.97.165 with SMTP id i5mr8964644pgv.55.1516373928980; Fri, 19 Jan 2018 06:58:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516373928; cv=none; d=google.com; s=arc-20160816; b=EW5TT94CCKCB3p75WO9uudSLeX1cu6aYtxkxIhV5fJZiqPfjkQrJS3BeVgPAz1gMKP VWmJY9gylEOC0HrDKcae86eyaQYFLe+QXNHuorgQe4k8Kl0rbx20t0B54VCJFMQuohwG Tx6W4u1NQboJqtZNH3WRuFlNrbQteRUY6KD+JCREJAuDVhMKT1gzWSl43IL8SEvL++Tq UlsMegqjoLjV2dvAh1IgRuePQ8jfBSrI5ub4ZXs2OUdVveadtFwaqJ+dCphJQPFyOlPd kHlqR/xJ/v3GumsCYvFPoPd2pwGO1saYyP661CqKBqiMV31HhGmvNGmGyxkPGcvbLm1g wC3w== 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 19si9441325pfa.273.2018.01.19.06.58.48; Fri, 19 Jan 2018 06:58: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; 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 S1755859AbeASO6p (ORCPT + 28 others); Fri, 19 Jan 2018 09:58:45 -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-ar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LUbtluVHT8omzJ3HD/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(-) -- 2.9.0 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;