Received: by 10.223.176.46 with SMTP id f43csp1162764wra; Fri, 19 Jan 2018 07:45:17 -0800 (PST) X-Google-Smtp-Source: ACJfBouNVbM9mlFaumJaDcW1k2m1sIiPla6tkalCFv+9eecITV0+CcukUlJwooB0uY/29JLiM//9 X-Received: by 10.101.64.139 with SMTP id t11mr7667026pgp.162.1516376717142; Fri, 19 Jan 2018 07:45:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516376717; cv=none; d=google.com; s=arc-20160816; b=wPIausbJgGtNMtQ/VKLa2gPghUwFrH9sYOz45XgxLAGlf5U996ZvwxnIBr/oafU7oZ JFVreYLxneBrhJCIihm0jnew40BDGrO0HL+BGCb8xqdDHhg+2SjlxzXddSYn7Y3Fijlb vdE42qm415Yv7ALBwkORygThqMeRf02QGwxC9wtBYdw9VPYSBm8yB72h6jeLXJYzuZBp AnupAXQtTbvmdvAu0p8idaMFrn/B/xU864A3lUs5GXbbrQi6Qi63A30juUDyxAmKkDD4 1I6EPS4SUb6cBjDiqsJG5GzRWUOsUYcZBKuUscdHnzKRl871o/caFPK9dDwjaZ7YWydo afLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=7nQ9VGtSUPYddDeq3TI9HZZqjk+fzTIAp3q097FWLBk=; b=F+nHd36e8TQFJ4ZugFdx2Bzev1757A04ORhlQNBC5D70pFlenM+Yb1S39DGJALuJ+N QsZAxU+aPsO/FK7kzCYJ4RZiabAdQeMeBeNoI5xp6//r284A1Vm8hN58+804UexYtHlG NZcxb/XFY/f9tdplPxofGN32XRYLMOc4sCk9YG/tsqHT3zVs6ciAgc4BnnAo96Ytjtay wP7mzU+QS6Ia+1fLealP1/UgUD3LTyC8G034EY8Hq3qM7/sq4fi9yp+9HlddSKS12cMX 2JY0h6t7dWwdVmOUZy164mrr2soBfYVJy5NDfCyo08D/kPooiP5qx4ONnSC2n07sxaCK BfeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kudzu-us.20150623.gappssmtp.com header.s=20150623 header.b=QohYqd+q; 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 l3-v6si910105pld.49.2018.01.19.07.45.03; Fri, 19 Jan 2018 07:45:17 -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=@kudzu-us.20150623.gappssmtp.com header.s=20150623 header.b=QohYqd+q; 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 S1755700AbeASPnM (ORCPT + 99 others); Fri, 19 Jan 2018 10:43:12 -0500 Received: from mail-qt0-f196.google.com ([209.85.216.196]:45980 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932423AbeASPnE (ORCPT ); Fri, 19 Jan 2018 10:43:04 -0500 Received: by mail-qt0-f196.google.com with SMTP id x27so4750159qtm.12 for ; Fri, 19 Jan 2018 07:43:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kudzu-us.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=7nQ9VGtSUPYddDeq3TI9HZZqjk+fzTIAp3q097FWLBk=; b=QohYqd+qA+jGXlQilMcVPoVc/Pl4Fs0c77lOObcJf3bxZR5upSfC1JbCqX8C03MW4i TYQLquhZr7uJU/YnjM/kWOSACoytzKQUIYU5ZnkT//2lWMhl+V7Uc0ExqVhD6iBh3kz9 /NjA6zQrXtx2l9NT6iOv4cCrs+3vAg3HAsfgH3Hwww4yUnZ9LSOvFAyXwkwxX+j2+e3j esYtr6OETwNMyUqT/pblZeT1GNhjBRRNE2XQVDLkv3RctmyFOFRJcZbUPblTco4QgmIi 5Lz1SG4hZjq9YHvoipvqD7iy61XdEhDTi8YTmrfgD0xlKRzlUtHHnou2YjTzKqJWVWrj YWBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=7nQ9VGtSUPYddDeq3TI9HZZqjk+fzTIAp3q097FWLBk=; b=qwzshDQxB7GCsC2TuLEK0GqQWk29Rz7MAU8cfs9QBJanPnGsEV5WEmGVYTBsbf+YtI hjBh4ky1s8trbCbp8izuGGHMZ9LBwP2SjmpTe/GLn25ZKDXGaHnIbLHbg68PZGXdlInl 49EF6FivdhjdxxBNej+spNpbTj4S8wDAwX1rbQ2LF2/Uaoj+gCW6/JRvf/dSoYYJxbtL 6uAXSTbVn4382AfXQQONiOeAuxEYKGAjdds8oxQMzKS7ImSctCntG/V+Oma+Nh6E4vCK sasPwKJ4VdrbrROPfBcoQ0pW+nYHVlvW98CvG9nfftDOH6f9SFeH3UAkYAh9RzeSQDnG yd7A== X-Gm-Message-State: AKwxyteoI8/MH50G01JWchrovMoRO1iFWt+XuLeidDXQAONSgU2PGH5X Z7Yd9IgZwv+LYOICmhb0Tb1SZw== X-Received: by 10.55.123.69 with SMTP id w66mr4851956qkc.326.1516376583781; Fri, 19 Jan 2018 07:43:03 -0800 (PST) Received: from kudzu.us ([98.122.141.161]) by smtp.gmail.com with ESMTPSA id a27sm6295348qkj.94.2018.01.19.07.43.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 19 Jan 2018 07:43:03 -0800 (PST) Date: Fri, 19 Jan 2018 10:43:01 -0500 From: Jon Mason To: Arnd Bergmann Cc: Dave Jiang , Allen Hubbe , Gary R Hook , Serge Semin , linux-ntb@googlegroups.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] NTB: ntb_perf: fix printing of resource_size_t Message-ID: <20180119154300.GA23366@kudzu.us> References: <20180119145813.1141817-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180119145813.1141817-1-arnd@arndb.de> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 19, 2018 at 03:55:28PM +0100, Arnd Bergmann wrote: > 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. Applied to my ntb-next branch. Thanks, Jon > > 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 >