https://bugs.dpdk.org/show_bug.cgi?id=986

            Bug ID: 986
           Summary: [20.11] net/cxgbe build failure with gcc 12
           Product: DPDK
           Version: 20.11
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: core
          Assignee: dev@dpdk.org
          Reporter: alia...@nvidia.com
  Target Milestone: ---

"""
$ meson --werror -Dc_args='-DRTE_ENABLE_ASSERT' --buildtype=debug build &&
ninja-build -C build

../../root/dpdk/drivers/net/cxgbe/cxgbe_ethdev.c: In function
'cxgbe_dev_rx_queue_setup':
../../root/dpdk/drivers/net/cxgbe/cxgbe_ethdev.c:668:24: error: the comparison
will always evaluate as 'true' for the address of 'fl' will never be NULL
[-Werror=address]
  668 |         if ((&rxq->fl) != NULL)
      |                        ^~
In file included from ../../root/dpdk/drivers/net/cxgbe/base/common.h:312,
                 from ../../root/dpdk/drivers/net/cxgbe/cxgbe.h:9,
                 from ../../root/dpdk/drivers/net/cxgbe/cxgbe_ethdev.c:37:
../../root/dpdk/drivers/net/cxgbe/base/adapter.h:167:23: note: 'fl' declared
here
  167 |         struct sge_fl fl;
      |                       ^~
cc1: all warnings being treated as errors
"""

OS: Fedora Linux 37 (Rawhide)
gcc: 12.0.1 20220308 (Red Hat 12.0.1-0)

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to