Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp3452989ybg; Sat, 6 Jun 2020 23:39:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNvSzXPkrFuzV+1TK88IikYtVx6SBn/ilu1mRiORB9fjX+wCU+9yv+5oDLGc2/6uRVl0xY X-Received: by 2002:aa7:c986:: with SMTP id c6mr17118005edt.335.1591511980476; Sat, 06 Jun 2020 23:39:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591511980; cv=none; d=google.com; s=arc-20160816; b=1F2swzKB2bYJzj8R9rwEuwSh4fapve2/pbu3exGMfeQTY0F3KBLyX8tSp3sue0pfr2 4xVdBbLvP81BbQamTtzj6yKUr+IbLDHA3uoQA0cdnEt+Kv20JbdrMkCHdjo6KUAg49zF vfG/TY9NuzG4G3RoMePL7X1IZVgG0kbL0+sqomKFZ65EBaRkFQ9cO9A15XJKQn0pJRvD zB9uKH5dg8h4r5p2czLNhari7nCt1UzcVnCn29Mz6ktZY+OQjfmM6CjicFGrXxb6+GGt S024bRNn+JcQRAwc5VAk1cJjTyKzhRFUEaSxyWeqSS/EhjYBhWl+HB2cnfB9WeoRf/f7 3jAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=adr79vAYfmAKzwUMxeFJGhS+RQXoTfQhdG1myR94Zyc=; b=Sz7w1kgeQaJ5s6TDUiyfHSMjjtzwDo7jo6w+xMfj8dzPruegbhmANIU0/aKzeOFGJI hDh+1io0nBfysJ6WVI2wEa9XRHjaTF5eLyLzL/sFDeINoJw44ZYuT8rbJ/YCXU8rBQEh N/+5oc5fDivuBszw+dYTMV5dNcGcwwfciOJYWQBlTBkDpMPgD5aRuV9q18qHiP90iB/5 NYKHQStss+5QfBfC9b677767Q3JClSEZnxw8a8ScJWytq8qO1NN1VrSehT329aVyB9FF i9sOE62SQhW7O6/tVhvjxWwZBmqX3RZjoL96y/ZtaBwBOqT33/qcanUWKxtjGOHlRwPB cy4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lRtQHxFB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i13si6543995ejc.659.2020.06.06.23.39.04; Sat, 06 Jun 2020 23:39:40 -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=@kernel.org header.s=default header.b=lRtQHxFB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726358AbgFGGgk (ORCPT + 99 others); Sun, 7 Jun 2020 02:36:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:53212 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726192AbgFGGgj (ORCPT ); Sun, 7 Jun 2020 02:36:39 -0400 Received: from localhost (unknown [213.57.247.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C1DD6206D5; Sun, 7 Jun 2020 06:36:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591511799; bh=CQtxtcDJBMRX+osmArf8Mom4xa/l6e4FZSbPN3AB5Go=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lRtQHxFBGzAI/gLGcUpeN7+AwzFbWuWVFRAISBh2Lk/1TLaVB2MXJhdyTn1ZCLAKl fnFAiJryk+F3iYGUROtZx5sQOfiT8lLshLkD2aPfcyyibNTV3TvrdIeNp3H19ieiHF Lv8+jQkIHvf8gpxdAanhegAtGZBdQgPwcBRDu/MU= Date: Sun, 7 Jun 2020 09:36:35 +0300 From: Leon Romanovsky To: Hu Haowen Cc: saeedm@mellanox.com, davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net/mlx5: Add a missing macro undefinition Message-ID: <20200607063635.GD164174@unreal> References: <20200607051241.5375-1-xianfengting221@163.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200607051241.5375-1-xianfengting221@163.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jun 07, 2020 at 01:12:40PM +0800, Hu Haowen wrote: > The macro ODP_CAP_SET_MAX is only used in function handle_hca_cap_odp() > in file main.c, so it should be undefined when there are no more uses > of it. > > Signed-off-by: Hu Haowen > --- > drivers/net/ethernet/mellanox/mlx5/core/main.c | 2 ++ > 1 file changed, 2 insertions(+) "should be undefined" is s little bit over statement, but overall the patch is good. Fixes: fca22e7e595f ("net/mlx5: ODP support for XRC transport is not enabled by default in FW") Thanks, Reviewed-by: Leon Romanovsky