Project

General

Profile

Actions

Bug #14392

open

bnxe: build errors with gcc 11

Added by Toomas Soome 9 days ago. Updated about 6 hours ago.

Status:
New
Priority:
Normal
Assignee:
Category:
driver - device drivers
Start date:
Due date:
% Done:

90%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

Build errors:

    ../../common/io/bnxe/577xx/drivers/common/lm/device/bnxe_context.c:823:13: error: array subscript 'void *[0]' is partly outside array bounds of 'u32_t[1]' {aka 'unsigned int[1]'} [-Werror=array-bounds]
      823 |             mm_schedule_task(pdev,delay_time,lm_cfc_delete,*((void **)&cid));
          |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ../../common/io/bnxe/577xx/drivers/common/lm/device/bnxe_context.c:749:63: note: while referencing 'cid'
      749 | void lm_free_cid(struct _lm_device_t *pdev, u32_t type, u32_t cid, u8_t notify_fw){
          |                                                         ~~~~~~^~~
    ../../common/io/bnxe/577xx/drivers/common/lm/device/bnxe_context.c:818:13: error: array subscript 'void *[0]' is partly outside array bounds of 'u32_t[1]' {aka 'unsigned int[1]'} [-Werror=array-bounds]
      818 |             lm_cfc_delete(pdev,*((void **)&cid));
          |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ../../common/io/bnxe/577xx/drivers/common/lm/device/bnxe_context.c:749:63: note: while referencing 'cid'
      749 | void lm_free_cid(struct _lm_device_t *pdev, u32_t type, u32_t cid, u8_t notify_fw){
          |                                                         ~~~~~~^~~
    cc1: all warnings being treated as errors

Seems to be 32-to-64 bit transition issue...

Testing done: build/install/boot.

Actions #1

Updated by Electric Monk 9 days ago

  • Gerrit CR set to 1940
Actions #2

Updated by Toomas Soome about 6 hours ago

  • Description updated (diff)
Actions

Also available in: Atom PDF