Skip to contentSkip to conversation

warning in hns3 driver with clang and asan

DPDK/ethdev Bug 1498 [email protected] 1 participant 2 messages Jul 19, 2024 – Jul 30, 2024

lore
Share & tools
lore
#0 lore raw

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

            Bug ID: 1498
           Summary: warning in hns3 driver with clang and asan
           Product: DPDK
           Version: 24.03
          Hardware: x86
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: ethdev
          Assignee: [email protected]
          Reporter: [email protected]

Target Milestone: ---

If build is configured with:

meson setup -Db_sanitize=address -Db_lundef=false build

[1225/2990] Compiling C object drivers..._net_hns3.a.p/net_hns3_hns3_ethdev.c.o In function ‘hns3_fec_get_internal’,
inlined from ‘hns3_query_dev_fec_info’ at
../drivers/net/hns3/hns3_ethdev.c:6268:8,
inlined from ‘hns3_get_configuration’ at
../drivers/net/hns3/hns3_ethdev.c:2883:8,

    inlined from ‘hns3_init_pf’ at ../drivers/net/hns3/hns3_ethdev.c:4630:8,
    inlined from ‘hns3_dev_init’ at ../drivers/net/hns3/hns3_ethdev.c:6567:8:

../drivers/net/hns3/hns3_ethdev.c:6061:20: warning: ‘auto_state’ may be used uninitialized [-Wmaybe-uninitialized]
6061 | if (auto_state == 0x1) {
| ^
../drivers/net/hns3/hns3_ethdev.c: In function ‘hns3_dev_init’:
../drivers/net/hns3/hns3_ethdev.c:6047:17: note: ‘auto_state’ was declared here

 6047 |         uint8_t auto_state;
      |                 ^~~~~~~~~~

[2990/2990] Linking target app/dpdk-test

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=1498

Thomas Monjalon ([email protected]) changed:

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

             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Thomas Monjalon ([email protected]) --- Resolved in http://git.dpdk.org/dpdk/commit/?id=7dfc8e69aa

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