DPDK patches and discussions
 help / color / mirror / Atom feed
From: wangyunjian <wangyunjian@huawei.com>
To: "users@dpdk.org" <users@dpdk.org>, "dev@dpdk.org" <dev@dpdk.org>
Cc: "matan@nvidia.com" <matan@nvidia.com>,
	"viacheslavo@nvidia.com" <viacheslavo@nvidia.com>,
	wangyunjian <wangyunjian@huawei.com>,
	xudingke <xudingke@huawei.com>,
	pandongyang <pandongyang@huawei.com>,
	dingxiaoxiong <dingxiaoxiong@huawei.com>
Subject: [dpdk-dev] [dpdk-users] when add the '-Werror' compilation option, tap、mlx5 compilation failed on dpdk-21.11.
Date: Fri, 10 Dec 2021 01:29:54 +0000	[thread overview]
Message-ID: <194d4442f7404a109e52593c9450a889@huawei.com> (raw)

Hi, all

When I tried to add the '-Werror' compilation option to compile the dpdk-21.11’s device drivers, some errors were reported
TAP:
../drivers/net/tap/tap_flow.c:27:2: error: redeclaration of enumerator 'TCA_FLOWER_UNSPEC'
  TCA_FLOWER_UNSPEC,
  ^~~~~~~~~~~~~~~~~
In file included from ../drivers/net/tap/tap_tcmsgs.h:13:0,
                 from ../drivers/net/tap/tap_flow.c:18:
/usr/include/linux/pkt_cls.h:429:2: note: previous definition of 'TCA_FLOWER_UNSPEC' was here
  TCA_FLOWER_UNSPEC,
  ^~~~~~~~~~~~~~~~~
../drivers/net/tap/tap_flow.c:28:2: error: redeclaration of enumerator 'TCA_FLOWER_CLASSID'
  TCA_FLOWER_CLASSID,
...

MLX5:
In file included from /usr/include/infiniband/mlx5dv.h:49:0,
                 from ../drivers/common/mlx5/linux/mlx5_glue.h:15,
                 from ../drivers/common/mlx5/linux/mlx5_glue.c:17:
../drivers/common/mlx5/linux/mlx5_glue.h:58:6: error: nested redefinition of 'enum mlx5_ib_uapi_flow_action_packet_reformat_type'
enum mlx5dv_flow_action_packet_reformat_type { packet_reformat_type = 0, };
      ^
../drivers/common/mlx5/linux/mlx5_glue.h:58:6: error: redeclaration of 'enum mlx5_ib_uapi_flow_action_packet_reformat_type'
In file included from /usr/include/infiniband/mlx5_api.h:36:0,
                 from /usr/include/infiniband/mlx5dv.h:49,
                 from ../drivers/common/mlx5/linux/mlx5_glue.h:15,
                 from ../drivers/common/mlx5/linux/mlx5_glue.c:17:
/usr/include/infiniband/mlx5_user_ioctl_verbs.h:50:6: note: originally defined here  enum mlx5_ib_uapi_flow_action_packet_reformat_type {
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/infiniband/mlx5dv.h:49:0,
                 from ../drivers/common/mlx5/linux/mlx5_glue.h:15,
                 from ../drivers/common/mlx5/linux/mlx5_glue.c:17:
../drivers/common/mlx5/linux/mlx5_glue.h:59:6: error: nested redefinition of 'enum mlx5_ib_uapi_flow_table_type'
enum mlx5dv_flow_table_type { flow_table_type = 0, };

  ^~~~~~~~~~~~~~~~~~

How can I solve this problem ?
Thakns for help.



                 reply	other threads:[~2021-12-10  1:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=194d4442f7404a109e52593c9450a889@huawei.com \
    --to=wangyunjian@huawei.com \
    --cc=dev@dpdk.org \
    --cc=dingxiaoxiong@huawei.com \
    --cc=matan@nvidia.com \
    --cc=pandongyang@huawei.com \
    --cc=users@dpdk.org \
    --cc=viacheslavo@nvidia.com \
    --cc=xudingke@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).