All of lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla@dpdk.org
To: dev@dpdk.org
Subject: [dpdk-dev] [Bug 677] table test build warning on Fedora 34
Date: Wed, 14 Apr 2021 13:04:51 +0000	[thread overview]
Message-ID: <bug-677-3@http.bugs.dpdk.org/> (raw)

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

            Bug ID: 677
           Summary: table test build warning on Fedora 34
           Product: DPDK
           Version: unspecified
          Hardware: All
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: other
          Assignee: dev@dpdk.org
          Reporter: kevuzaj@gmail.com
  Target Milestone: ---

table tests have build warnings on Fedora-34_Beta-1.3 with the latest packages.

[kevin@fedora ~]$ cat /etc/redhat-release 
Fedora release 34 (Thirty Four)
[kevin@fedora ~]$ uname -a
Linux fedora 5.11.13-300.fc34.x86_64 #1 SMP Sun Apr 11 15:07:42 UTC 2021 x86_64
x86_64 x86_64 GNU/Linux
[kevin@fedora ~]$ gcc --version
gcc (GCC) 11.0.1 20210324 (Red Hat 11.0.1-0)

[2662/2712] Compiling C object app/test/dpdk-test.p/test_table_tables.c.o
../app/test/test_table_tables.c: In function ‘test_table_stub’:
../app/test/test_table_tables.c:31:9: warning: ‘memset’ offset [0, 31] is out
of the bounds [0, 0] [-Warray-bounds]
   31 |         memset(key, 0, 32);                                            
\
      |         ^~~~~~~~~~~~~~~~~~
../app/test/test_table_tables.c:151:25: note: in expansion of macro
‘PREPARE_PACKET’
  151 |                         PREPARE_PACKET(mbufs[i], 0xadadadad);
      |                         ^~~~~~~~~~~~~~
../app/test/test_table_tables.c:31:9: warning: ‘memset’ offset [0, 31] is out
of the bounds [0, 0] [-Warray-bounds]
   31 |         memset(key, 0, 32);                                            
\
      |         ^~~~~~~~~~~~~~~~~~
../app/test/test_table_tables.c:153:25: note: in expansion of macro
‘PREPARE_PACKET’
  153 |                         PREPARE_PACKET(mbufs[i], 0xadadadab);
      |                         ^~~~~~~~~~~~~~
../app/test/test_table_tables.c: In function ‘test_table_hash_lru_generic’:
../app/test/test_table_tables.c:31:9: warning: ‘memset’ offset [0, 31] is out
of the bounds [0, 0] [-Warray-bounds]
   31 |         memset(key, 0, 32);                                            
\
      |         ^~~~~~~~~~~~~~~~~~
../app/test/test_table_tables.c:714:25: note: in expansion of macro
‘PREPARE_PACKET’
  714 |                         PREPARE_PACKET(mbufs[i], 0xadadadad);
      |                         ^~~~~~~~~~~~~~
../app/test/test_table_tables.c:31:9: warning: ‘memset’ offset [0, 31] is out
of the bounds [0, 0] [-Warray-bounds]
   31 |         memset(key, 0, 32);                                            
\
      |         ^~~~~~~~~~~~~~~~~~
../app/test/test_table_tables.c:716:25: note: in expansion of macro
‘PREPARE_PACKET’
  716 |                         PREPARE_PACKET(mbufs[i], 0xadadadab);
      |                         ^~~~~~~~~~~~~~
../app/test/test_table_tables.c: In function ‘test_table_hash_ext_generic’:
../app/test/test_table_tables.c:31:9: warning: ‘memset’ offset [0, 31] is out
of the bounds [0, 0] [-Warray-bounds]
   31 |         memset(key, 0, 32);                                            
\
      |         ^~~~~~~~~~~~~~~~~~
../app/test/test_table_tables.c:824:25: note: in expansion of macro
‘PREPARE_PACKET’
  824 |                         PREPARE_PACKET(mbufs[i], 0xadadadad);
      |                         ^~~~~~~~~~~~~~
../app/test/test_table_tables.c:31:9: warning: ‘memset’ offset [0, 31] is out
of the bounds [0, 0] [-Warray-bounds]
   31 |         memset(key, 0, 32);                                            
\
      |         ^~~~~~~~~~~~~~~~~~
../app/test/test_table_tables.c:826:25: note: in expansion of macro
‘PREPARE_PACKET’
  826 |                         PREPARE_PACKET(mbufs[i], 0xadadadab);
      |                         ^~~~~~~~~~~~~~
../app/test/test_table_tables.c: In function ‘test_table_array’:
../app/test/test_table_tables.c:31:9: warning: ‘memset’ offset [0, 31] is out
of the bounds [0, 0] [-Warray-bounds]
   31 |         memset(key, 0, 32);                                            
\
      |         ^~~~~~~~~~~~~~~~~~
../app/test/test_table_tables.c:261:25: note: in expansion of macro
‘PREPARE_PACKET’
  261 |                         PREPARE_PACKET(mbufs[i], 10);
      |                         ^~~~~~~~~~~~~~
../app/test/test_table_tables.c:31:9: warning: ‘memset’ offset [0, 31] is out
of the bounds [0, 0] [-Warray-bounds]
   31 |         memset(key, 0, 32);                                            
\
      |         ^~~~~~~~~~~~~~~~~~
../app/test/test_table_tables.c:263:25: note: in expansion of macro
‘PREPARE_PACKET’
  263 |                         PREPARE_PACKET(mbufs[i], 20);
      |                         ^~~~~~~~~~~~~~
../app/test/test_table_tables.c: In function ‘test_table_lpm_ipv6’:
../app/test/test_table_tables.c:31:9: warning: ‘memset’ offset [0, 31] is out
of the bounds [0, 0] [-Warray-bounds]
   31 |         memset(key, 0, 32);                                            
\
      |         ^~~~~~~~~~~~~~~~~~
../app/test/test_table_tables.c:610:25: note: in expansion of macro
‘PREPARE_PACKET’
  610 |                         PREPARE_PACKET(mbufs[i], 0xadadadad);
      |                         ^~~~~~~~~~~~~~
../app/test/test_table_tables.c:31:9: warning: ‘memset’ offset [0, 31] is out
of the bounds [0, 0] [-Warray-bounds]
   31 |         memset(key, 0, 32);                                            
\
      |         ^~~~~~~~~~~~~~~~~~
../app/test/test_table_tables.c:612:25: note: in expansion of macro
‘PREPARE_PACKET’
  612 |                         PREPARE_PACKET(mbufs[i], 0xadadadab);
      |                         ^~~~~~~~~~~~~~
../app/test/test_table_tables.c: In function ‘test_table_hash_cuckoo’:
../app/test/test_table_tables.c:31:9: warning: ‘memset’ offset [0, 31] is out
of the bounds [0, 0] [-Warray-bounds]
   31 |         memset(key, 0, 32);                                            
\
      |         ^~~~~~~~~~~~~~~~~~
../app/test/test_table_tables.c:1037:25: note: in expansion of macro
‘PREPARE_PACKET’
 1037 |                         PREPARE_PACKET(mbufs[i], 0xadadadad);
      |                         ^~~~~~~~~~~~~~
../app/test/test_table_tables.c:31:9: warning: ‘memset’ offset [0, 31] is out
of the bounds [0, 0] [-Warray-bounds]
   31 |         memset(key, 0, 32);                                            
\
      |         ^~~~~~~~~~~~~~~~~~
../app/test/test_table_tables.c:1039:25: note: in expansion of macro
‘PREPARE_PACKET’
 1039 |                         PREPARE_PACKET(mbufs[i], 0xadadadab);
      |                         ^~~~~~~~~~~~~~
../app/test/test_table_tables.c: In function ‘test_table_lpm’:
../app/test/test_table_tables.c:31:9: warning: ‘memset’ offset [0, 31] is out
of the bounds [0, 0] [-Warray-bounds]
   31 |         memset(key, 0, 32);                                            
\
      |         ^~~~~~~~~~~~~~~~~~
../app/test/test_table_tables.c:432:25: note: in expansion of macro
‘PREPARE_PACKET’
  432 |                         PREPARE_PACKET(mbufs[i], 0xadadadad);
      |                         ^~~~~~~~~~~~~~
../app/test/test_table_tables.c:31:9: warning: ‘memset’ offset [0, 31] is out
of the bounds [0, 0] [-Warray-bounds]
   31 |         memset(key, 0, 32);                                            
\
      |         ^~~~~~~~~~~~~~~~~~
../app/test/test_table_tables.c:434:25: note: in expansion of macro
‘PREPARE_PACKET’
  434 |                         PREPARE_PACKET(mbufs[i], 0xadadadab);
      |                         ^~~~~~~~~~~~~~

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

                 reply	other threads:[~2021-04-14 13:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-677-3@http.bugs.dpdk.org/ \
    --to=bugzilla@dpdk.org \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.