https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222892

            Bug ID: 222892
           Summary: gcc compilation errors with mlx4_en and mlx5
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: n...@freebsd.org

mlx4_en and mlx5 fail to compile with gcc 6.3.0, per the following message:

>From https://ci.freebsd.org/job/FreeBSD-head-amd64-gcc/2789/console :

06:21:07 /workspace/src/sys/dev/mlx4/mlx4_en/mlx4_en_rx.c: In function
'mlx4_en_rss_hash':
06:21:07 /workspace/src/sys/dev/mlx4/mlx4_en/mlx4_en_rx.c:584:2: error: case
label does not reduce to an integer constant
06:21:07   case status_ipv4_tcp:
06:21:07   ^~~~
06:21:07 /workspace/src/sys/dev/mlx4/mlx4_en/mlx4_en_rx.c:586:2: error: case
label does not reduce to an integer constant
06:21:07   case status_ipv6_tcp:
06:21:07   ^~~~
06:21:07 /workspace/src/sys/dev/mlx4/mlx4_en/mlx4_en_rx.c:588:2: error: case
label does not reduce to an integer constant
06:21:07   case status_ipv4_udp:
06:21:07   ^~~~
06:21:07 /workspace/src/sys/dev/mlx4/mlx4_en/mlx4_en_rx.c:591:2: error: case
label does not reduce to an integer constant
06:21:07   case status_ipv6_udp:
06:21:07   ^~~~
06:21:07 /workspace/src/sys/dev/mlx4/mlx4_en/mlx4_en_rx.c:576:15: warning:
variable 'status_ipv6_udp' set but not used [-Wunused-but-set-variable]
06:21:07   const __be16 status_ipv6_udp = cpu_to_be16(
06:21:07                ^~~~~~~~~~~~~~~
06:21:07 /workspace/src/sys/dev/mlx4/mlx4_en/mlx4_en_rx.c:573:15: warning:
variable 'status_ipv4_udp' set but not used [-Wunused-but-set-variable]
06:21:07   const __be16 status_ipv4_udp = cpu_to_be16(
06:21:07                ^~~~~~~~~~~~~~~
06:21:07 /workspace/src/sys/dev/mlx4/mlx4_en/mlx4_en_rx.c:570:15: warning:
variable 'status_ipv6_tcp' set but not used [-Wunused-but-set-variable]
06:21:07   const __be16 status_ipv6_tcp = cpu_to_be16(
06:21:07                ^~~~~~~~~~~~~~~
06:21:07 /workspace/src/sys/dev/mlx4/mlx4_en/mlx4_en_rx.c:567:15: warning:
variable 'status_ipv4_tcp' set but not used [-Wunused-but-set-variable]
06:21:07   const __be16 status_ipv4_tcp = cpu_to_be16(
06:21:07                ^~~~~~~~~~~~~~~
06:21:07 --- all_subdir_mlx5en ---
06:21:07 In file included from /workspace/src/sys/sys/refcount.h:36:0,
06:21:07                  from
/workspace/src/sys/compat/linuxkpi/common/include/linux/kmod.h:36,
06:21:07                  from /workspace/src/sys/dev/mlx5/mlx5_en/en.h:31,
06:21:07                  from
/workspace/src/sys/dev/mlx5/mlx5_en/mlx5_en_main.c:28:
06:21:07 /workspace/src/sys/dev/mlx5/device.h:530:29: warning: comparison
between 'enum <anonymous>' and 'enum <anonymous>' [-Wenum-compare]
06:21:07  CTASSERT(MLX5_CMD_MBOX_SIZE <= MLX5_ADAPTER_PAGE_SIZE);
06:21:07                              ^
06:21:07 /workspace/src/sys/sys/systm.h:105:36: note: in definition of macro
'CTASSERT'
06:21:07  #define CTASSERT(x) _Static_assert(x, "compile-time assertion
failed")
06:21:07

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to