Skip to contentSkip to conversation

net/nfp build failure with clang 13

Bug 900 [email protected] 1 participant 2 messages Dec 12, 2021 – Jan 4, 2022

lore
Share & tools
lore
#0 lore raw

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

            Bug ID: 900
           Summary: [19.11.11-rc1] net/nfp build failure with clang 13
           Product: DPDK
           Version: 20.11
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: ethdev
          Assignee: [email protected]
          Reporter: [email protected]

Target Milestone: ---

"""

$ meson --werror --buildtype=debugoptimized build && ninja-build -C build
[..]
drivers/net/nfp/nfp_net.c:3037:24: error: variable 'totlen' set but not used
[-Werror,-Wunused-but-set-variable]           size_t count, curlen, totlen = 0;
drivers/net/nfp/nfp_net.c:3139:24: error: variable 'totlen' set but not used
[-Werror,-Wunused-but-set-variable]
        size_t count, curlen, totlen = 0;
"""

clang: 13.0.0 (Fedora 13.0.0-3.fc35)

This was recently fixed by 9465a5d5a065 ("net/nfp: remove unused message length").

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

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

Christian Ehrhardt ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

                 CC|                            |christian.ehrhardt@canonica
                   |                            |l.com
         Resolution|---                         |DUPLICATE
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Christian Ehrhardt ([email protected]) --- This is a duplicate of 904.
Overall we had 881 (for -dev) and 900 + 904 for 19.11

The fix is in v19.11.11-rc2:

commit e5075011b517acb239501ade62e07bfd2569ec62

Author: Conor Walsh <[email protected]>
Date:   Mon Nov 15 17:58:54 2021 +0000

net/nfp: remove unused message length

[ upstream commit 9465a5d5a065b66075614e3712f9459c3e267155 ]

Reported by clang 13.

*** This bug has been marked as a duplicate of bug 904 ***

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