Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5009805ybl; Wed, 22 Jan 2020 08:38:08 -0800 (PST) X-Google-Smtp-Source: APXvYqzNyaJzAmY/PcMCay1xf59w+PmSZPAl1uKpci6R/ZEs7nr4I6Fkmhe3auv10vCjZyrsIW9q X-Received: by 2002:a05:6808:191:: with SMTP id w17mr7286473oic.29.1579711088700; Wed, 22 Jan 2020 08:38:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579711088; cv=none; d=google.com; s=arc-20160816; b=JxvNrtfsneW8I0PVYRgPvmZLFCZaWCmQXR0d9JG+XU1VylC6lkVWVnWyPlYpvOURHV yObNye3iKnJGztTn79HdV1io80mtYIenYXZsLF74cWeb6UbfOp/5PEmYQmYBzTUHrbVq O03/vmVMpHi1Br+wDTAmP4jNXa7fsDsc1Ds69LTNFa79ZxtYx2YgstvWXY+w4jk1i0gD 1d0HTyysvp0N/QE1mPimPgUhAs6hykHdaXLfH1cdVZTWDJ4ASVjBuaspq7s7VhkH8Th8 qQ0o8J/6SjNxTIPz6VjrIROH026YveJSd50XtKpPEFtRWzQSId+CBlZDFc1Dg0XzUtPA IyHQ== 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=K9FK8ILS4gKEGyvvYVDTxyD1X36SRBkx7WZjPTcSEcs=; b=ST4mbjnSyg9far63854V9zp9BSYqR74bozI6wq8l3PJOnIGuAK7oSEgsk6nTiHwey2 24kbac0k66bhliVmyW18GarM/SV3kigq6pBqN2CqBXtfkIrxkAPGu8L+Lq56Xw6IvjQA 76+JeEWlW8VNGoQclsk1Au9I9xzBbHVxkZcENobpvbrrQ3qeK6Hy+JDE/C48lH8eCXT/ EBz8AVwts5sJIMIAlUfGDijqYxG2ChO0hI0kUahsR8ZPyICqi7hTZzrPKuK7Lzv0mGtl imNIQq68BQJixFodrOTG4c4WsIRq2rocDgG9ioqpeSeWMoYdTzAzx2lwH6YXtwyzcbvL 9N7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=Z4L3hfli; 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 l20si20861684oil.224.2020.01.22.08.37.54; Wed, 22 Jan 2020 08:38:08 -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=Z4L3hfli; 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 S1725989AbgAVQgn (ORCPT + 99 others); Wed, 22 Jan 2020 11:36:43 -0500 Received: from mail-il1-f195.google.com ([209.85.166.195]:41660 "EHLO mail-il1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725836AbgAVQgn (ORCPT ); Wed, 22 Jan 2020 11:36:43 -0500 Received: by mail-il1-f195.google.com with SMTP id f10so5605017ils.8 for ; Wed, 22 Jan 2020 08:36:43 -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=K9FK8ILS4gKEGyvvYVDTxyD1X36SRBkx7WZjPTcSEcs=; b=Z4L3hfliSUQrUzbrj1MlCEkPPFxOpnSbzpAFcwm7qeWX4e/pbbIKKl209hP+fISEnP vmVHrOvykodYtrqi2vT3bv7pJiPqyBZ4bO45dftH0rj0+1VZj+L9Umq4BlCP+rNOXfSt Ux/NJVyDycljikm6ED400Wi05ogQbRJkkITNZA+wbYQbIcUVZsxKI+JoUDi3qEERB1fw p5e4a2hLYkRgLpOi5xhS+1sdSlyDYJeoYxh3dQzC+CAmhwVlEJDXqxJEs8Y/Wn+WvHus fLXyX1KKqSxHHgSSEMoTPwIQ5Jpqxn4nMYI8q4ihvpw74thK6KX+clWCLXmZKGhr5hkb 3BLg== 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=K9FK8ILS4gKEGyvvYVDTxyD1X36SRBkx7WZjPTcSEcs=; b=rVdy3SV4LxNWQRhmqsFNLPDRePpgL/7/3e7HuTGRIdsVCV6iImDZ1Lv6zDK88IlInB 5Ov0M0TWDy32tCOd901dOC1mBVsHivHn8yIOUszcH3ulzNWnbj+GiIvcVZhF4HJHd94+ PUprVJ28AWpGuziItvTF0THsot9GMj0c9fCt+c909EJXqmxImjO+ZmmrASSfXNCMLuIr iz0Nz/uASVSvZpziWXtjEyM9+eFVHvSQfpWnimiFLD0DPj8kpNZvvV8/qnNtXi1rmzxQ bIEzOxYEhUc2hf1DBK7Yr/oK4R4ng4YFV19CHGm8pGLsglpohgyNAASEmoErAUC2cpgp jZWA== X-Gm-Message-State: APjAAAUWewUgzqZJcFtanb5l/Kkv3W2rvBo8IY48nC5rKe6A6bZno1aW jQnVZYFKUBn4XnPcnXUPdCWX26XhPNN5CPBZM5lX+A== X-Received: by 2002:a92:afc5:: with SMTP id v66mr8200600ill.123.1579711002748; Wed, 22 Jan 2020 08:36:42 -0800 (PST) MIME-Version: 1.0 References: <20191220001517.105297-1-olof@lixom.net> <028a4905eaf02dce476e8cfc517b49760f57f577.camel@mellanox.com> In-Reply-To: <028a4905eaf02dce476e8cfc517b49760f57f577.camel@mellanox.com> From: Olof Johansson Date: Wed, 22 Jan 2020 08:36:31 -0800 Message-ID: Subject: Re: [PATCH] net/mlx5e: Fix printk format warning To: Saeed Mahameed Cc: "saeedm@dev.mellanox.co.il" , "joe@perches.com" , "netdev@vger.kernel.org" , "linux-rdma@vger.kernel.org" , "leon@kernel.org" , "linux-kernel@vger.kernel.org" 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 On Tue, Jan 21, 2020 at 12:43 PM Saeed Mahameed wrote: > > On Mon, 2020-01-20 at 19:20 -0800, Olof Johansson wrote: > > 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? > > > > > > Hi Olof, > > I am still preparing my next pull request which will include this patch > I will send it soon to net-next branch, but still the patch will not > hit linux-next until the merge window when netdev subsystem is pulled > into linux-next.. Hi Saeed, linux-next contains all the material that maintainers are queuing up for the next merge window, during the -rc cycles of the previous release, including the net-next branch. In general, the guideline is to make sure that most patches are in -next around -rc6/rc7 timeframe, to give them some time for test before merge window opens. So the fact that this hasn't been picked up and showed up there yet, seems concerning -- but I don't know when Dave closes net for new material like what you're staging. -Olof