Skip to contentSkip to conversation

failsafe build fails for gcc12

dpdk-dev [email protected] 1 participant 1 message Oct 4, 2021

lore
Share & tools
lore
#0 lore raw

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

            Bug ID: 822
           Summary: failsafe build fails for gcc12
           Product: DPDK
           Version: 20.11
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: other
          Assignee: [email protected]
          Reporter: [email protected]

Target Milestone: ---

gcc version:
gcc 12.0.0 "gcc (GCC) 12.0.0 20211003 (experimental)"

build error:
failsafe_failsafe_ops.c.o -c ../drivers/net/failsafe/failsafe_ops.c In file included from ../drivers/net/failsafe/failsafe_ops.c:19:
../drivers/net/failsafe/failsafe_ops.c: In function ‘fs_link_update’:
../drivers/net/failsafe/failsafe_private.h:307:9: error: the comparison will always evaluate as ‘true’ for the pointer operand in ‘((struct fs_priv *)dev->data->dev_private)->subs + (sizetype)((long unsigned int)((struct
fs_priv * )dev->data->dev_private)->subs_tx * 904)’ must not be NULL
[-Werror=address]
307 | (PRIV(dev)->subs_tx >= PRIV(dev)->subs_tail ?
NULL \
| ^
../drivers/net/failsafe/failsafe_ops.c:850:13: note: in expansion of macro ‘TX_SUBDEV’

  850 |         if (TX_SUBDEV(dev)) {
      |             ^~~~~~~~~

cc1: all warnings being treated as errors

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.