DPDK patches and discussions
 help / color / mirror / Atom feed
* [DPDK/ethdev Bug 1442] uninitalized warning when ASAN enabled in hns3 PMD
@ 2024-05-16 21:55 bugzilla
  0 siblings, 0 replies; only message in thread
From: bugzilla @ 2024-05-16 21:55 UTC (permalink / raw)
  To: dev

[-- Attachment #1: Type: text/plain, Size: 2132 bytes --]

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

            Bug ID: 1442
           Summary: uninitalized warning when ASAN enabled in hns3 PMD
           Product: DPDK
           Version: 24.03
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: ethdev
          Assignee: dev@dpdk.org
          Reporter: stephen@networkplumber.org
  Target Milestone: ---

Was building DPDK with address sanitizer (for other tests).
The commands were:
 $ meson setup build -Db_sanitize=address
The Meson build system
Version: 1.4.0
Source dir: /home/shemminger/DPDK/sw-stats
Build dir: /home/shemminger/DPDK/sw-stats/build
Build type: native build
Program cat found: YES (/usr/bin/cat)
Project name: DPDK
Project version: 24.07.0-rc0
C compiler for the host machine: cc (gcc 13.2.0 "cc (Debian 13.2.0-24) 13.2.0")
C linker for the host machine: cc ld.bfd 2.42
Host machine cpu family: x86_64
Host machine cpu: x86_64

...
$ ninja -C build

[1523/2949] Compiling C object
drivers/libtmp_rte_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;
      |                 ^~~~~~~~~~

This is alos a CI bug since CI should be build with ASAN in one of its configs!

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

[-- Attachment #2: Type: text/html, Size: 4020 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-05-16 21:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-16 21:55 [DPDK/ethdev Bug 1442] uninitalized warning when ASAN enabled in hns3 PMD bugzilla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).