Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3241468ybl; Mon, 20 Jan 2020 19:24:54 -0800 (PST) X-Google-Smtp-Source: APXvYqzaJh/d5kIYLORkDcfg8ZWSuLH7UbxuNZicymFbtvvLuPMJC4P9q84DH03JxI7Cd9CSTqkI X-Received: by 2002:aca:c493:: with SMTP id u141mr1493568oif.62.1579577094687; Mon, 20 Jan 2020 19:24:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579577094; cv=none; d=google.com; s=arc-20160816; b=MYPIFTxBFW0HyovhZMnr9XDemFvU32Ks2Wh0rGz4ayBT3Oujbt2fgTCinlLwAoVc6l vz9yt2wKc1RDqtiNEa9oshu2k9TYXZDveXVIG3TQm9O3fB8WDi3wJK8r/SUHqT/qlHlx zYvyN2qDsOsmgLT+9YCYfBinFCdQvcbQU1st2E/Hmmb0X/1/uTf27Yv4+BgwrcuS2nHt 86vYy4Rqpx8rAe4QWhUFIzc8T4ptKh3JA9BXF3qWA5YI2t4df1Z7k1whdBjohkLy32vl FzG8D5ckDj5pSVl3UID+vDIT9+feiGDMA3ZC0bo5Km9KAGebOrT4x5lFg5TI4g4BlPZL RKNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=xDcWE9EWGtVID/iKX16rez9xRzd/8Nb913yHk9dAMYM=; b=Ibz6nkmfhHLZnvxqna//xuSmmZ9IEwoRCILsefNeaPqzJLFd8255pP2NT2MzaYpfRz Q16ppr8Mm2j5xT2GIg7tKAnhiHdRpe69+jIt/5mQQhDDSctrP5PqLIHJzJFCGBDGjEkX DynreCcO4x3GArOz8g/tinhZ2AKdUNf4k1bmVAT1i4H2X6h7qtHGdK8VyVsPg/T1vOcJ xBAk9Sqmad2r+Te3BaWcyyrmolDbcT2NX/2dUYa7hjWZ+Ij4x/dmFWKbNkJlRkCnw9eU Fa0JQiNJW/XiH/wn2ZHfq/Lxi8KkknbIfcVwSOS9vXozbIwhtNgR1W3hcw0BTkg16CrP MBtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=T5DUMBdx; 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 l6si21329654otq.132.2020.01.20.19.24.30; Mon, 20 Jan 2020 19:24:54 -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=T5DUMBdx; 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 S1729045AbgAUDUv (ORCPT + 99 others); Mon, 20 Jan 2020 22:20:51 -0500 Received: from mail-il1-f193.google.com ([209.85.166.193]:37625 "EHLO mail-il1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728904AbgAUDUu (ORCPT ); Mon, 20 Jan 2020 22:20:50 -0500 Received: by mail-il1-f193.google.com with SMTP id t8so1212247iln.4 for ; Mon, 20 Jan 2020 19:20:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lixom-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xDcWE9EWGtVID/iKX16rez9xRzd/8Nb913yHk9dAMYM=; b=T5DUMBdxwLNNZ2G6qr8/JwsZn+Orq7oGwZHKldGB2lBt2xpg9AjyfbW2/wzCP9PSdm 8CgNcUWgZa9614tn+w5aZLOx8tW88UzdZt/hmnm2yp/VClsrsP4l5QJfsoD6TuMd3dVE fmzAtzVsPouElzps7mYBPOH0HVkeS+xtAjSn/dpf+iG+W6x45PGkjEw3Hlh+8p2QR/fP bY7mC0S/30YPNLxD7TU3rd1Q7DEHzZ2vMbzHTpUOp0LnuxoIcqPaqpj0YWGSEVtJ8sfw KEgK6inoc29l49Yf8u+JVxMYKU030evP3NCibeYe+ThDYnvdckvBF2hhyl/nEY+sNUI2 ms2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xDcWE9EWGtVID/iKX16rez9xRzd/8Nb913yHk9dAMYM=; b=C3d4Apsm2G4gnz+5LRHyPMD2aIkVC6pgu38+GG145QnG4xRtG8BvXYGsk5k/hmrEDl IkW1zhTFyDWRZ6bnXonW7klYcHkTw4t7fNlA5EhinkW+UXXVJSlGialB0pqWE4+9N+CO Mv5BhYQGGeTHnLM81b9yQgQSOzwJ9g8LZ7lL6LHGwMC7CCkptwDl4HFqokI3tD429t1A x/QklOG2PTvzZv2DCRqIyBJkInnZiIjrfGwlCk0Ps4SRcWEAvN9phdLkYYWRxh91a3F/ 67jc8p9XFwuBb5i2e1QdMPn6JuxDrADkbTJQOhoJadMzQsYDdZ6nGg9KSmsjgEodhl8V 8zqg== X-Gm-Message-State: APjAAAWYaKTsxmN/Nwouhla/ZK10qg6OpUD4eyuTsff6DP1hQQwLdzqJ uz+jWnDD9aRGk9peQe99OPlu3oibuxSzgRH2/hwMBA== X-Received: by 2002:a92:db49:: with SMTP id w9mr1812972ilq.277.1579576849943; Mon, 20 Jan 2020 19:20:49 -0800 (PST) MIME-Version: 1.0 References: <20191220001517.105297-1-olof@lixom.net> In-Reply-To: From: Olof Johansson Date: Mon, 20 Jan 2020 19:20:38 -0800 Message-ID: Subject: Re: [PATCH] net/mlx5e: Fix printk format warning To: Saeed Mahameed Cc: Joe Perches , Saeed Mahameed , Leon Romanovsky , Network Development , RDMA mailing list , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Mon, Dec 30, 2019 at 8:35 PM Saeed Mahameed wrote: > > On Sat, Dec 21, 2019 at 1:19 PM Olof Johansson wrote: > > > > On Thu, Dec 19, 2019 at 6:07 PM Joe Perches wrote: > > > > > > On Thu, 2019-12-19 at 16:15 -0800, Olof Johansson wrote: > > > > Use "%zu" for size_t. Seen on ARM allmodconfig: > > > [] > > > > diff --git 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); > > > > } > > > > > > One might expect these 2 outputs to be at the same KERN_ too. > > > One is KERN_INFO the other KERN_WARNING > > > > Sure, but I'll leave that up to the driver maintainers to decide/fix > > -- I'm just addressing the type warning here. > > Hi Olof, sorry for the delay, and thanks for the patch, > > I will apply this to net-next-mlx5 and will submit to net-next myself. > we will fixup and address the warning level comment by Joe. This seems to still be pending, and the merge window is soon here. Any chance we can see it show up in linux-next soon? Thanks, -Olof