lkml.org 
[lkml]   [2021]   [Dec]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[asahilinux:wifi/take1 85/91] drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c:4077:1: warning: the frame size of 1800 bytes is larger than 1024 bytes
tree:   https://github.com/AsahiLinux/linux wifi/take1
head: 834938020c08ed3b67af49e60513162a0f1a41fc
commit: d3ffbfeeb6594d1354497a8e20fd2f31b1788ddd [85/91] brcmfmac: cfg80211: Add support for PMKID_V3 operations
config: nds32-allyesconfig (https://download.01.org/0day-ci/archive/20211222/202112220041.deKpnjGs-lkp@intel.com/config)
compiler: nds32le-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/AsahiLinux/linux/commit/d3ffbfeeb6594d1354497a8e20fd2f31b1788ddd
git remote add asahilinux https://github.com/AsahiLinux/linux
git fetch --no-tags asahilinux wifi/take1
git checkout d3ffbfeeb6594d1354497a8e20fd2f31b1788ddd
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=nds32 SHELL=/bin/bash drivers/net/wireless/broadcom/brcm80211/brcmfmac/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c: In function 'brcmf_pmksa_v3_op':
>> drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c:4077:1: warning: the frame size of 1800 bytes is larger than 1024 bytes [-Wframe-larger-than=]
4077 | }
| ^


vim +4077 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c

4050
4051 static s32
4052 brcmf_pmksa_v3_op(struct brcmf_if *ifp, struct cfg80211_pmksa *pmksa,
4053 bool alive)
4054 {
4055 struct brcmf_pmk_op_v3_le pmk_op;
4056 int length = offsetof(struct brcmf_pmk_op_v3_le, pmk);
4057
4058 memset(&pmk_op, 0, sizeof(pmk_op));
4059 pmk_op.version = cpu_to_le16(BRCMF_PMKSA_VER_3);
4060
4061 if (!pmksa) {
4062 /* Flush operation, operate on entire list */
4063 pmk_op.count = cpu_to_le16(0);
4064 } else {
4065 /* Single PMK operation */
4066 pmk_op.count = cpu_to_le16(1);
4067 length += sizeof(struct brcmf_pmksa_v3);
4068 memcpy(pmk_op.pmk[0].bssid, pmksa->bssid, ETH_ALEN);
4069 memcpy(pmk_op.pmk[0].pmkid, pmksa->pmkid, WLAN_PMKID_LEN);
4070 pmk_op.pmk[0].pmkid_len = WLAN_PMKID_LEN;
4071 pmk_op.pmk[0].time_left = alive ? BRCMF_PMKSA_NO_EXPIRY : 0;
4072 }
4073
4074 pmk_op.length = cpu_to_le16(length);
4075
4076 return brcmf_fil_iovar_data_set(ifp, "pmkid_info", &pmk_op, sizeof(pmk_op));
> 4077 }
4078

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

\
 
 \ /
  Last update: 2021-12-21 18:17    [W:0.019 / U:1.912 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site