Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1428293pxb; Sat, 30 Oct 2021 13:16:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy11kq2ByrwJ+xDEDkuJuz5MfaYlpxBm/ahOWrIdzswaC+hc3568erbKALD+JcQO7rqrQa+ X-Received: by 2002:a05:6e02:bc9:: with SMTP id c9mr12739589ilu.309.1635625017302; Sat, 30 Oct 2021 13:16:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635625017; cv=none; d=google.com; s=arc-20160816; b=H7EffPTk6X8pSMm0jMsdHZrsvcOdrFm4gpvSk93B98K686/UUvzzksIzKUL8Xc79mM Jl0+PC6p/690ziKUxO7VLVFlZ8iqYBfJTv1iC89mDS0ezDNKsM8r43iW7uSEaUo6N1GO Fg6ILkKvJVUEUVDQcaBAIcC6P+DxSl+NAO29/9C3qLfPYeIwuVS56leBzahkQYDpKuzw 5GE0+Xt+WUtfql71TZrei8BFLTYUmLs0SIwaNH4nOY0j/1t1/FSnRBwAkeyjRFvoTkKm POJ1EcPnmOOaNLqz6KXxxUeQqC1AQOuPKip54/GDx4Ok7fZNw7e3KCB0bisllL2DHwKg m+lA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=Cyc43r8GdPRIRNRzw0no3zbXsiEelKCLzckzNGDsC6s=; b=FV1z1QAqLfZl4CiGGn9K/N8N3SuBo9uRTahDB+HRoyO7NuVAuWxr74OHRNypTZN9Mq MRaaECfAe3ThhDwzuHiZRypg2jbLmJrTr144DNqEX1jXXvpGV+Ryl+WZ/5GhdQFFITvR 8/xkuC0XksHDRI+/xBF8aMGGRClwC5qXLGZRe6FsLpst3vZSPhnlb9i3R2FG3dlBgYUK 7u1PtSAxjOmpdBXR03RapnF66Fymw/j4pva7Kktxf+w1HbMWLp/rz+BYCWL1nq4vykgz o3ASv/misGcJIsvAm21VfAITck+wKxrYJQSATEJCvZBymkG3qLAZIYC1Ifme4fBgiZgW ncDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@networkplumber-org.20210112.gappssmtp.com header.s=20210112 header.b=b82oDSTz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b8si10675113ios.12.2021.10.30.13.16.37; Sat, 30 Oct 2021 13:16:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@networkplumber-org.20210112.gappssmtp.com header.s=20210112 header.b=b82oDSTz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231172AbhJ3UJx (ORCPT + 99 others); Sat, 30 Oct 2021 16:09:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229782AbhJ3UJw (ORCPT ); Sat, 30 Oct 2021 16:09:52 -0400 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E7A7C061570 for ; Sat, 30 Oct 2021 13:07:22 -0700 (PDT) Received: by mail-pf1-x430.google.com with SMTP id 127so12590201pfu.1 for ; Sat, 30 Oct 2021 13:07:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Cyc43r8GdPRIRNRzw0no3zbXsiEelKCLzckzNGDsC6s=; b=b82oDSTzxfv98G672X0/DEzxrahh5Mz/q3bRp6zpJaskF3JiguWUYKdAMpmDihTZqi k/emgjqMl9bbCjn93a5OoB92FemMiqhis6t4Me94ssuoIuBuvphYARMkxGhTEs4STc8B 7pQTnl/GnPMo6aA+c6cU8KdZ2H3zZyGxAppFMtcdCT7oQF8QUlZ1WuvmyOkHsBZ3Ko+h 3rxZcBVB+HKyGXqJX853j/rzqEv6wl28Aw65iCZfJBwGDo+m5cnSome5PfQgDybVKmZB 32ByL0nDZJHwDi1H/2Qsz3akZQyVwihjaxBL3jDRJ2e5tfv/Qs1p49r8NLqVAoUBynAt 5yyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Cyc43r8GdPRIRNRzw0no3zbXsiEelKCLzckzNGDsC6s=; b=iHrSMJ2wXMGX8itHjYc+0reGUTV+bHNF3Rt1OcZAKjg/eiO3XaY0U4DxhxUA9HHgrR oTlMdFjMMze0d+vIdrWJmFXoSDiKKARoJ7S6tZvl0l4jr81O+7wc4vai63pOVIeCt1pT FCHp+KnRoLBBuIjaxV9CY7TPb1xHcEvMoiXKGBOQHNJV8Dy+Dp0ljd0QGpG5Tt3y15jk WGIIfoQkk320k/at3cC4E08oc7WWuKrMpa/vA/fJITZi6ahpFUMEKACstO0xt8bcLHJo mN6+UuvpdioPCSemgw9n8RCo6HbLhYvJNDnvtl67GRDOdJvz+kE9HD2k0GNStemw+Jqf fuhQ== X-Gm-Message-State: AOAM531Bup4BTZqPCy260/zApsMbZcL0U9yO/BELXaGJu80JaaDzz7S3 VJS1ALoH6Loz34mPieba/xpjRg== X-Received: by 2002:a63:348d:: with SMTP id b135mr14129383pga.87.1635624441806; Sat, 30 Oct 2021 13:07:21 -0700 (PDT) Received: from hermes.local (204-195-33-123.wavecable.com. [204.195.33.123]) by smtp.gmail.com with ESMTPSA id ne7sm5039241pjb.36.2021.10.30.13.07.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Oct 2021 13:07:21 -0700 (PDT) Date: Sat, 30 Oct 2021 13:07:18 -0700 From: Stephen Hemminger To: Dexuan Cui Cc: davem@davemloft.net, kuba@kernel.org, gustavoars@kernel.org, haiyangz@microsoft.com, netdev@vger.kernel.org, kys@microsoft.com, wei.liu@kernel.org, linux-kernel@vger.kernel.org, linux-hyperv@vger.kernel.org, shacharr@microsoft.com, paulros@microsoft.com, olaf@aepfle.de, vkuznets@redhat.com Subject: Re: [PATCH net-next 1/4] net: mana: Fix the netdev_err()'s vPort argument in mana_init_port() Message-ID: <20211030130718.3471728c@hermes.local> In-Reply-To: <20211030005408.13932-2-decui@microsoft.com> References: <20211030005408.13932-1-decui@microsoft.com> <20211030005408.13932-2-decui@microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 29 Oct 2021 17:54:05 -0700 Dexuan Cui wrote: > diff --git a/drivers/net/ethernet/microsoft/mana/mana_en.c b/drivers/net/ethernet/microsoft/mana/mana_en.c > index 1417d1e72b7b..4ff5a1fc506f 100644 > --- a/drivers/net/ethernet/microsoft/mana/mana_en.c > +++ b/drivers/net/ethernet/microsoft/mana/mana_en.c > @@ -1599,7 +1599,8 @@ static int mana_init_port(struct net_device *ndev) > err = mana_query_vport_cfg(apc, port_idx, &max_txq, &max_rxq, > &num_indirect_entries); > if (err) { > - netdev_err(ndev, "Failed to query info for vPort 0\n"); > + netdev_err(ndev, "Failed to query info for vPort %d\n", > + port_idx); Shouldn't port_idx have been unsigned or u16? It is u16 in mana_port_context.