DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [Bug 854] gcc12 build error, common/cnxk
@ 2021-10-28 12:26 bugzilla
  2022-03-15 16:44 ` bugzilla
  0 siblings, 1 reply; 2+ messages in thread
From: bugzilla @ 2021-10-28 12:26 UTC (permalink / raw)
  To: dev

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

            Bug ID: 854
           Summary: gcc12 build error, common/cnxk
           Product: DPDK
           Version: 20.11
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: other
          Assignee: dev@dpdk.org
          Reporter: ferruh.yigit@intel.com
  Target Milestone: ---

With gcc 12.0.0 "gcc (GCC) 12.0.0 20211024 (experimental)"

In function ‘npc_prep_mcam_ldata’,
    inlined from ‘npc_update_extraction_data’ at
../drivers/common/cnxk/roc_npc_utils.c:195:2:
../drivers/common/cnxk/roc_npc_utils.c:13:26: warning: writing 32 bytes into a
region of size 0 [-Wstringop-overflow=]
   13 |                 ptr[idx] = data[len - 1 - idx];
      |                 ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
../drivers/common/cnxk/roc_npc_utils.c: In function
‘npc_update_extraction_data’:
../drivers/common/cnxk/roc_npc_utils.c:163:17: note: at offset 64 into
destination object ‘int_info’ of size 64
  163 |         uint8_t int_info[NPC_MAX_EXTRACT_DATA_LEN];
      |                 ^~~~~~~~
In function ‘npc_prep_mcam_ldata’,
    inlined from ‘npc_update_extraction_data’ at
../drivers/common/cnxk/roc_npc_utils.c:195:2:
../drivers/common/cnxk/roc_npc_utils.c:13:26: warning: writing 32 bytes into a
region of size 0 [-Wstringop-overflow=]
   13 |                 ptr[idx] = data[len - 1 - idx];
      |                 ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
../drivers/common/cnxk/roc_npc_utils.c: In function
‘npc_update_extraction_data’:
../drivers/common/cnxk/roc_npc_utils.c:163:17: note: at offset [96, 127] into
destination object ‘int_info’ of size 64
  163 |         uint8_t int_info[NPC_MAX_EXTRACT_DATA_LEN];
      |                 ^~~~~~~~
In function ‘npc_prep_mcam_ldata’,
    inlined from ‘npc_update_extraction_data’ at
../drivers/common/cnxk/roc_npc_utils.c:195:2:
../drivers/common/cnxk/roc_npc_utils.c:13:26: warning: writing 32 bytes into a
region of size 0 [-Wstringop-overflow=]
   13 |                 ptr[idx] = data[len - 1 - idx];
      |                 ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
../drivers/common/cnxk/roc_npc_utils.c: In function
‘npc_update_extraction_data’:
../drivers/common/cnxk/roc_npc_utils.c:163:17: note: at offset [128, 159] into
destination object ‘int_info’ of size 64
  163 |         uint8_t int_info[NPC_MAX_EXTRACT_DATA_LEN];
      |                 ^~~~~~~~
In function ‘npc_prep_mcam_ldata’,
    inlined from ‘npc_update_extraction_data’ at
../drivers/common/cnxk/roc_npc_utils.c:195:2:
../drivers/common/cnxk/roc_npc_utils.c:13:26: warning: writing 32 bytes into a
region of size 0 [-Wstringop-overflow=]
   13 |                 ptr[idx] = data[len - 1 - idx];
      |                 ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
../drivers/common/cnxk/roc_npc_utils.c: In function
‘npc_update_extraction_data’:
../drivers/common/cnxk/roc_npc_utils.c:163:17: note: at offset [160, 191] into
destination object ‘int_info’ of size 64
  163 |         uint8_t int_info[NPC_MAX_EXTRACT_DATA_LEN];
      |                 ^~~~~~~~
In function ‘npc_prep_mcam_ldata’,
    inlined from ‘npc_update_extraction_data’ at
../drivers/common/cnxk/roc_npc_utils.c:195:2:
../drivers/common/cnxk/roc_npc_utils.c:13:26: warning: writing 32 bytes into a
region of size 0 [-Wstringop-overflow=]
   13 |                 ptr[idx] = data[len - 1 - idx];
      |                 ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
../drivers/common/cnxk/roc_npc_utils.c: In function
‘npc_update_extraction_data’:
../drivers/common/cnxk/roc_npc_utils.c:163:17: note: at offset [192, 223] into
destination object ‘int_info’ of size 64
  163 |         uint8_t int_info[NPC_MAX_EXTRACT_DATA_LEN];
      |                 ^~~~~~~~
In function ‘npc_prep_mcam_ldata’,
    inlined from ‘npc_update_extraction_data’ at
../drivers/common/cnxk/roc_npc_utils.c:197:2:
../drivers/common/cnxk/roc_npc_utils.c:13:26: warning: writing 32 bytes into a
region of size 0 [-Wstringop-overflow=]
   13 |                 ptr[idx] = data[len - 1 - idx];
      |                 ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
../drivers/common/cnxk/roc_npc_utils.c: In function
‘npc_update_extraction_data’:
../drivers/common/cnxk/roc_npc_utils.c:162:17: note: at offset 64 into
destination object ‘int_info_mask’ of size 64
  162 |         uint8_t int_info_mask[NPC_MAX_EXTRACT_DATA_LEN];
      |                 ^~~~~~~~~~~~~
In function ‘npc_prep_mcam_ldata’,
    inlined from ‘npc_update_extraction_data’ at
../drivers/common/cnxk/roc_npc_utils.c:197:2:
../drivers/common/cnxk/roc_npc_utils.c:13:26: warning: writing 32 bytes into a
region of size 0 [-Wstringop-overflow=]
   13 |                 ptr[idx] = data[len - 1 - idx];
      |                 ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
../drivers/common/cnxk/roc_npc_utils.c: In function
‘npc_update_extraction_data’:
../drivers/common/cnxk/roc_npc_utils.c:162:17: note: at offset [96, 127] into
destination object ‘int_info_mask’ of size 64
  162 |         uint8_t int_info_mask[NPC_MAX_EXTRACT_DATA_LEN];
      |                 ^~~~~~~~~~~~~
In function ‘npc_prep_mcam_ldata’,
    inlined from ‘npc_update_extraction_data’ at
../drivers/common/cnxk/roc_npc_utils.c:197:2:
../drivers/common/cnxk/roc_npc_utils.c:13:26: warning: writing 32 bytes into a
region of size 0 [-Wstringop-overflow=]
   13 |                 ptr[idx] = data[len - 1 - idx];
      |                 ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
../drivers/common/cnxk/roc_npc_utils.c: In function
‘npc_update_extraction_data’:
../drivers/common/cnxk/roc_npc_utils.c:162:17: note: at offset [128, 159] into
destination object ‘int_info_mask’ of size 64
  162 |         uint8_t int_info_mask[NPC_MAX_EXTRACT_DATA_LEN];
      |                 ^~~~~~~~~~~~~
In function ‘npc_prep_mcam_ldata’,
    inlined from ‘npc_update_extraction_data’ at
../drivers/common/cnxk/roc_npc_utils.c:197:2:
../drivers/common/cnxk/roc_npc_utils.c:13:26: warning: writing 32 bytes into a
region of size 0 [-Wstringop-overflow=]
   13 |                 ptr[idx] = data[len - 1 - idx];
      |                 ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
../drivers/common/cnxk/roc_npc_utils.c: In function
‘npc_update_extraction_data’:
../drivers/common/cnxk/roc_npc_utils.c:162:17: note: at offset [160, 191] into
destination object ‘int_info_mask’ of size 64
  162 |         uint8_t int_info_mask[NPC_MAX_EXTRACT_DATA_LEN];
      |                 ^~~~~~~~~~~~~
In function ‘npc_prep_mcam_ldata’,
    inlined from ‘npc_update_extraction_data’ at
../drivers/common/cnxk/roc_npc_utils.c:197:2:
../drivers/common/cnxk/roc_npc_utils.c:13:26: warning: writing 32 bytes into a
region of size 0 [-Wstringop-overflow=]
   13 |                 ptr[idx] = data[len - 1 - idx];
      |                 ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
../drivers/common/cnxk/roc_npc_utils.c: In function
‘npc_update_extraction_data’:
../drivers/common/cnxk/roc_npc_utils.c:162:17: note: at offset [192, 223] into
destination object ‘int_info_mask’ of size 64
  162 |         uint8_t int_info_mask[NPC_MAX_EXTRACT_DATA_LEN];
      |                 ^~~~~~~~~~~~~

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug 854] gcc12 build error, common/cnxk
  2021-10-28 12:26 [dpdk-dev] [Bug 854] gcc12 build error, common/cnxk bugzilla
@ 2022-03-15 16:44 ` bugzilla
  0 siblings, 0 replies; 2+ messages in thread
From: bugzilla @ 2022-03-15 16:44 UTC (permalink / raw)
  To: dev

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

Thomas Monjalon (thomas@monjalon.net) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CONFIRMED                   |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Thomas Monjalon (thomas@monjalon.net) ---
Resolved in http://git.dpdk.org/dpdk/commit/?id=8540d7dbfc

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-03-15 16:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-28 12:26 [dpdk-dev] [Bug 854] gcc12 build error, common/cnxk bugzilla
2022-03-15 16:44 ` 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).