Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp3417786ybg; Sat, 6 Jun 2020 22:18:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfZpffsjhce/KlzDOskxenlm2X4bRgJg8PNB/I2UcAFx3tJElaLvdJX5cM07vL9Tbum+aD X-Received: by 2002:a50:8467:: with SMTP id 94mr16171252edp.249.1591507083674; Sat, 06 Jun 2020 22:18:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591507083; cv=none; d=google.com; s=arc-20160816; b=gerio0gnLpZA/sFj6+FgsjEZ+HFB3EM2FSbypLVj7Y1VUTzA/lmoupHS16FGlzkzt1 QRQ6KlmQL5xh9VjkFIwdofJFEt7I71tGgZ7ffFqZdzxZSEuq6xeXTc8+wvqDe/PkkfSb TRjhsCHmzm2SqYIcOyyugy8tF5mPKAZCoY+28NuUC/IUPtONpPz3euNwO1iSuiLZdnDQ Oo5KhABQB45BSpUPACK8GJJsX4rlhyuU1wBgq2OnMF8/E01PbN7dor9paytldWZFENs7 4rfdtum/gqWNWu1CVj7uaU3pGo+RayWsmHyeaX3dNtG9VIh16TCiN572kChpaPfVjyA5 MENw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ZO7p3p3ByhDzJyx816+feQ76oRubAg/S9uBFNb4/ZaI=; b=dBPwXlg3qIed08ryd2IehbzFXzt2y3/adPbzOKqafdWBhTV9Ip/xG2FolIxYU8Pak9 Qr6Qg6N5tAusXhz/RCRC5zdfc9M9raNNf+VuSQOtc7sdtLoaqpL3Th50mXdn/lyLxwn2 T/Wa13I9R4xvEtOkyEvi/bT4DXpBYqAADoK8nAXl6RZp3ZDu5llWyq65iagPPislIzuO /dq1ayK67QkgjYu+5SyB8c8PWR910Sad3kfXyUz9IcqrClcRSTLyzdl7QsJwpdY91B0a IbOHmO6h6PIfNCUxAfTiapERukOKhF2biHE2FySeNqnnVintI36Dn5gxPsrY67UwbCKV U2bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=ViwkInPN; 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=163.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q7si6400934ejm.503.2020.06.06.22.17.28; Sat, 06 Jun 2020 22:18:03 -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=@163.com header.s=s110527 header.b=ViwkInPN; 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=163.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726307AbgFGFNS (ORCPT + 99 others); Sun, 7 Jun 2020 01:13:18 -0400 Received: from m12-17.163.com ([220.181.12.17]:46121 "EHLO m12-17.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725998AbgFGFNR (ORCPT ); Sun, 7 Jun 2020 01:13:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=ZO7p3 p3ByhDzJyx816+feQ76oRubAg/S9uBFNb4/ZaI=; b=ViwkInPN9yZ3I6zBq2zvC INV8dy7zX/9LpEe94fjX00paYYHfuE0PGBvURdqzDnpf/JzDO4yqeOHJlmAnrbxX QLVI6tqQ5AJg6bxJXVE72fKpnha11rrtN2y3F6PC+7NzALK+g2ryXBMQxqyh3T2z hfpEGa2gZEXcS8jzLBzXlU= Received: from localhost.localdomain (unknown [125.82.15.164]) by smtp13 (Coremail) with SMTP id EcCowAAnDTdQd9xeHoO6GA--.62079S4; Sun, 07 Jun 2020 13:12:49 +0800 (CST) From: Hu Haowen To: saeedm@mellanox.com, leon@kernel.org, davem@davemloft.net, kuba@kernel.org Cc: netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, Hu Haowen Subject: [PATCH] net/mlx5: Add a missing macro undefinition Date: Sun, 7 Jun 2020 13:12:40 +0800 Message-Id: <20200607051241.5375-1-xianfengting221@163.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: EcCowAAnDTdQd9xeHoO6GA--.62079S4 X-Coremail-Antispam: 1Uf129KBjvdXoWrZrW8Ar43Ar1xXw18WryrCrg_yoWfJFb_Kw 1DZF13Wa1DArnIkr1Igrs8KFW0kw1qg39agFW7KFWYy3W29r1xJ34xW34SqF1rWFWIyFZr tF12yayYv34UWjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU88wI3UUUUU== X-Originating-IP: [125.82.15.164] X-CM-SenderInfo: h0ld0wxhqj3xtqjsjii6rwjhhfrp/1tbiWxE8AFSInEs9XQAAsd Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(+) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/main.c b/drivers/net/ethernet/mellanox/mlx5/core/main.c index df46b1fce3a7..1143297eccaa 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/main.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/main.c @@ -489,6 +489,8 @@ static int handle_hca_cap_odp(struct mlx5_core_dev *dev, void *set_ctx) ODP_CAP_SET_MAX(dev, dc_odp_caps.read); ODP_CAP_SET_MAX(dev, dc_odp_caps.atomic); +#undef ODP_CAP_SET_MAX + if (!do_set) return 0; -- 2.25.1