From patchwork Mon Sep 9 19:50:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 173416 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp4816818ilq; Mon, 9 Sep 2019 12:50:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqyRCsdsrPLVdrvEENSBHYhEk/oaf3nKHknIi5LORiDopK+8azhwQmP5b6pnwyg0kd9iZNkg X-Received: by 2002:a17:906:6810:: with SMTP id k16mr20887774ejr.193.1568058638821; Mon, 09 Sep 2019 12:50:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568058638; cv=none; d=google.com; s=arc-20160816; b=TrkJds3C8aTvxmJ5u6DZCFr7laoaR152TVZhFfGG91IRDecConyU6U6dJHl1TizarV aVeu/2RmJXyYIejyWfmoxB60fUU23+UlPbwDd0t0+FwSvW3WQtYlmcAQLLmZNIINgevp DGTde6l9t6aFLkoFd/38XndolArRznq9J5SZpMdjaMcCNs8+zOg+o7W6uyB6gQ7bc447 OtiBhsPI6zvJedsjEWmCB8pv9qBFgCOvHr9e90bth1H1lymYvyoCKUSlieDVq35skw1Y EYN5JObCOgJgNyf47QO5/kAg2QpfGMUqzs8nbQLcnoyizBttQb+e1KLimTpxst5wJJow 0xmw== 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; bh=A0OyucsRgG+ouclAn/FSKmIOUo0YzTPGytWyRs5id2c=; b=is1BQCZEeHcbPQ6YMS/60ogDot0jIYaxkVRTLyWKTHpJRex3ADHVxeEny72BFHx+RN rb+mKv59MujsVYe//jwrdDK3t1smTH/aP6FVl3cD3n+3iek+AhRO7/8jG8IGkIjgqSL9 z5hXrrQtpmudTjYv7ZXZIsFuqDH9nyDYQJCIfDSBh028dOSnjhpxkHbsMzoY5lKbl4I5 5/r6SpHTxaHIWqIxOo+7Og4oz96eoZGrJHNCoJJN6vuKWUvOuYrZuuZCiW26GVMuliiK LyBiLBQwCeRg/x/0svGrcMDz5VvhKjDFHSKzLVKioVFGZyuEJPj1kbeFhauyffJl4BSz KGhg== ARC-Authentication-Results: i=1; mx.google.com; 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 g20si10022693edb.149.2019.09.09.12.50.38; Mon, 09 Sep 2019 12:50:38 -0700 (PDT) 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; 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 S2405845AbfIITuh (ORCPT + 28 others); Mon, 9 Sep 2019 15:50:37 -0400 Received: from mout.kundenserver.de ([212.227.126.131]:46249 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731163AbfIITuh (ORCPT ); Mon, 9 Sep 2019 15:50:37 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.129]) with ESMTPA (Nemesis) id 1MfYc4-1ieHb10Yrw-00g3kw; Mon, 09 Sep 2019 21:50:27 +0200 From: Arnd Bergmann To: Saeed Mahameed , Leon Romanovsky , "David S. Miller" Cc: Arnd Bergmann , Alex Vesker , Erez Shitrit , Mark Bloch , netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com Subject: [PATCH net-next 1/2] mlx5: steering: use correct enum type Date: Mon, 9 Sep 2019 21:50:08 +0200 Message-Id: <20190909195024.3268499-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:AK8QWmjsuWG4HEmhOqIpwd62ajWhj3F/CeXNzG050S7ptBNBv9G MqdkIwNGTfgOBb3ihKsasKEJrDoJT5Zpo74b2oTeKv2BSP+ZrVQCtd2Ta064gRzZTKDPm2K ijG6Qr8EmM6OgvYdfR/XW+NjnKJuh154KGpE67ARZl7J65uI9gvZpKtETCzORYzrENT1wEP TO5yy6EB2HYEIANJ/FMgA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:Jvrju6h+dAo=:zHHY9sOoxpwZQ26Vvkc4if RPOyP48VcYi5WypqyVisjktfO79V97C6398/UTLF/+cgby1Pri2mSa0bvDZ9St/aBze/2+8VR DFJ86ThQP66LHMLZlV63Z4DadH+Gd+fiptytjrrBS3OEchEcoqc9t5PgXg+FRzz4vgEZGl/as 6pDheKbt1dQtYMRmqi53hSCNEwHJa9HcqZAVLJT62U70OMEY0uLlvWJJL4U4esVzz0ipjkR5O Y8gVh61/ik6/tdbvLFYThYf5XMSp7rfFz87PV6Aj/seTudbvsS3CdM8ZJrutSAlY3lF5i4nmK 8biTKWNB+Iw92WcfLEnYpMeOF1PFwN+Lg01hmv8PF70bZjoEBeh4COkVNqJS3Pl2/AGPYHI7i sYOtwSW3hVVzwivdit9efMiKY9lnQdtwxH6fy4f1mub3eFnN4mkE/JilEHb268Zk5t/wQpOnx 2wrJKux5yK2X52EP4AhNVbTKsHBNzAMjpOvjlDwJASk8z5eIsiTV4VHnI63VokYZLOdcmED+o 5S5OacwomwXgjmWYIebaLek2YtxqX3YS5YGHe76vlWSNL2hMhX06+HNbmMduM3hu5nlTPpHxf d7L6YSc6WwZ47ugS/0bg+Ekz2Tmtxuf8g3dXnwSY7cK8Rg66hR3YV0WrhTv3U4kXy2O0F6gc2 4uixBzq3PQaj6uZmNxsWpfOAHGWjZWq1FT3wjHOLoKQXnV+v2qjrT3X36vt/NeR+2bzkwB6yD uqgRZmMNbp+aj+j7aKQNobYTCNQ6z/KSgZuar84PapThwn6T6+qCw+GgUTHov5RzQAEu9x2Kt KDamc3El9U5lc/xO6sFzdgkN8O90y9irglwY4Su0ehosjr+j0s= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The newly added code triggers a harmless warning with clang: drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c:1080:9: error: implicit conversion from enumeration type 'enum mlx5_reformat_ctx_type' to different enumeration type 'enum mlx5dr_action_type' [-Werror,-Wenum-conversion] rt = MLX5_REFORMAT_TYPE_L2_TO_L2_TUNNEL; ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c:1084:51: error: implicit conversion from enumeration type 'enum mlx5dr_action_type' to different enumeration type 'enum mlx5_reformat_ctx_type' [-Werror,-Wenum-conversion] ret = mlx5dr_cmd_create_reformat_ctx(dmn->mdev, rt, data_sz, data, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~ Change it to use mlx5_reformat_ctx_type instead of mlx5dr_action_type. Fixes: 9db810ed2d37 ("net/mlx5: DR, Expose steering action functionality") Signed-off-by: Arnd Bergmann --- drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.0 Reviewed-by: Nathan Chancellor diff --git a/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c b/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c index a02f87f85c17..7d81a7735de5 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c @@ -1074,7 +1074,7 @@ dr_action_create_reformat_action(struct mlx5dr_domain *dmn, case DR_ACTION_TYP_L2_TO_TNL_L2: case DR_ACTION_TYP_L2_TO_TNL_L3: { - enum mlx5dr_action_type rt; + enum mlx5_reformat_ctx_type rt; if (action->action_type == DR_ACTION_TYP_L2_TO_TNL_L2) rt = MLX5_REFORMAT_TYPE_L2_TO_L2_TUNNEL;