Project

General

Profile

Actions

Bug #14389

closed

net80211: mismatched bound

Added by Toomas Soome 4 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Start date:
Due date:
% Done:

100%

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

Description

Build errors with gcc 11:

    ../../common/io/net80211/net80211_crypto_tkip.c:654:13: error: argument 6 of type 'uint8_t[8]' {aka 'unsigned char[8]'} with mismatched bound [-Werror=array-parameter=]
      654 |     uint8_t mic[IEEE80211_WEP_MICLEN])
          |     ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
    ../../common/io/net80211/net80211_crypto_tkip.c:90:31: note: previously declared as 'uint8_t[]' {aka 'unsigned char[]'}
       90 |     mblk_t *, uint_t, size_t, uint8_t[]);
          |                               ^~~~~~~~~
    cc1: all warnings being treated as errors

    ../../common/io/net80211/net80211_crypto.c:314:20: error: argument 3 of type 'const uint8_t *' {aka 'const unsigned char *'} declared as a pointer [-Werror=array-parameter=]
      314 |     const uint8_t *macaddr)
          |     ~~~~~~~~~~~~~~~^~~~~~~
    In file included from ../../common/io/net80211/net80211_impl.h:45,
                     from ../../common/io/net80211/net80211_crypto.c:48:
    ../../common/sys/net80211.h:716:23: note: previously declared as an array 'const uint8_t[6]' {aka 'const unsigned char[6]'}
      716 |         const uint8_t macaddr[IEEE80211_ADDR_LEN]);
          |         ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
    cc1: all warnings being treated as errors

    ../../common/io/net80211/net80211_node.c:1260:58: error: argument 2 of type 'const uint8_t *' {aka 'const unsigned char *'} declared as a pointer [-Werror=array-parameter=]
     1260 | ieee80211_find_txnode(ieee80211com_t *ic, const uint8_t *daddr)
          |                                           ~~~~~~~~~~~~~~~^~~~~
    In file included from ../../common/io/net80211/net80211_impl.h:45,
                     from ../../common/io/net80211/net80211_node.c:42:
    ../../common/sys/net80211.h:703:23: note: previously declared as an array 'const uint8_t[6]' {aka 'const unsigned char[6]'}
      703 |         const uint8_t daddr[IEEE80211_ADDR_LEN]);
          |         ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
    cc1: all warnings being treated as errors

Testing done: build/install/boot wsdiff is showing only debug info differences.

Actions #1

Updated by Electric Monk 4 months ago

  • Gerrit CR set to 1937
Actions #2

Updated by Toomas Soome 4 months ago

  • Description updated (diff)
Actions #3

Updated by Electric Monk 4 months ago

  • Status changed from In Progress to Closed
  • % Done changed from 90 to 100

git commit f4203ebbfd2dce9537b7614c6e37240f406907e8

commit  f4203ebbfd2dce9537b7614c6e37240f406907e8
Author: Toomas Soome <tsoome@me.com>
Date:   2022-01-25T19:19:42.000Z

    14389 net80211: mismatched bound
    Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF