From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3A2132F21 for ; Wed, 2 Feb 2022 06:22:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643782964; x=1675318964; h=date:from:to:cc:subject:message-id:mime-version; bh=RIa8njm2mFgDerF+1vW9sHj2Bq6WhPH9PzJyI12vbDI=; b=WRo2S3L35qWK+6D5q6UKP/sGTo1G0IBoQg7LppUVgub/oRSHQKnNUd8G +dQ0xYB+RdKdBWmL9x/+4N3Gc8Eg/5oRwpu0icnmn+JoSmZpO0X66u0jV QQ/A4jmPQtSS5cWBPv8CCGgSr29WgbWFI0KOSBEDOJ/OIrZMiHRyNVUG8 Khh/b+Zv3RNFLJcsJnOIDXva9dTg8/x6loK+PYjzGu8WL1B84d7+S6KxX 8JYQtnipSvUldQWqxDl4TQB5KcF74tIS1xJvsZUX8Oe/QzoUxa9k528Af CFXG7/StJHa7jd5UG7Dal5lwoq/SSA3wss/dTw+4LnzNh90EtGyfAOccS w==; X-IronPort-AV: E=McAfee;i="6200,9189,10245"; a="272341203" X-IronPort-AV: E=Sophos;i="5.88,336,1635231600"; d="scan'208";a="272341203" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Feb 2022 22:22:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,336,1635231600"; d="scan'208";a="583317767" Received: from lkp-server01.sh.intel.com (HELO 276f1b88eecb) ([10.239.97.150]) by fmsmga008.fm.intel.com with ESMTP; 01 Feb 2022 22:22:41 -0800 Received: from kbuild by 276f1b88eecb with local (Exim 4.92) (envelope-from ) id 1nF92O-000UDa-Ie; Wed, 02 Feb 2022 06:22:40 +0000 Date: Wed, 2 Feb 2022 14:22:24 +0800 From: kernel test robot To: Johannes Berg Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Luca Coelho Subject: [iwlwifi-next:pending 40/42] net/mac80211/agg-rx.c:505:15: error: no member named 'eht_cap' in 'struct ieee80211_sta'; did you mean 'he_cap'? Message-ID: <202202021412.zzbjX8rs-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) tree: https://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-next.git pending head: b15caa03d4e21e9e8dbc81f6ac09171a2871af1d commit: 7c8b580893d9c8858b60fec31cb5b55336667ac1 [40/42] mac80211: fix NULL-ptr-deref in ADDBA extended element config: arm-multi_v5_defconfig (https://download.01.org/0day-ci/archive/20220202/202202021412.zzbjX8rs-lkp@intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 6b1e844b69f15bb7dffaf9365cd2b355d2eb7579) 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 # install arm cross compiling tool for clang build # apt-get install binutils-arm-linux-gnueabi # https://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-next.git/commit/?id=7c8b580893d9c8858b60fec31cb5b55336667ac1 git remote add iwlwifi-next https://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-next.git git fetch --no-tags iwlwifi-next pending git checkout 7c8b580893d9c8858b60fec31cb5b55336667ac1 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> net/mac80211/agg-rx.c:505:15: error: no member named 'eht_cap' in 'struct ieee80211_sta'; did you mean 'he_cap'? if (sta->sta.eht_cap.has_eht && elems && elems->addba_ext_ie) { ^~~~~~~ he_cap include/net/mac80211.h:2099:30: note: 'he_cap' declared here struct ieee80211_sta_he_cap he_cap; ^ >> net/mac80211/agg-rx.c:505:23: error: no member named 'has_eht' in 'struct ieee80211_sta_he_cap'; did you mean 'has_he'? if (sta->sta.eht_cap.has_eht && elems && elems->addba_ext_ie) { ^~~~~~~ has_he include/net/cfg80211.h:357:7: note: 'has_he' declared here bool has_he; ^ >> net/mac80211/agg-rx.c:507:11: error: use of undeclared identifier 'IEEE80211_ADDBA_EXT_BUF_SIZE_MASK' IEEE80211_ADDBA_EXT_BUF_SIZE_MASK); ^ >> net/mac80211/agg-rx.c:509:30: error: use of undeclared identifier 'IEEE80211_ADDBA_EXT_BUF_SIZE_SHIFT' buf_size |= buf_size_1k << IEEE80211_ADDBA_EXT_BUF_SIZE_SHIFT; ^ 4 errors generated. vim +505 net/mac80211/agg-rx.c 474 475 void ieee80211_process_addba_request(struct ieee80211_local *local, 476 struct sta_info *sta, 477 struct ieee80211_mgmt *mgmt, 478 size_t len) 479 { 480 u16 capab, tid, timeout, ba_policy, buf_size, start_seq_num; 481 struct ieee802_11_elems *elems = NULL; 482 u8 dialog_token; 483 int ies_len; 484 485 /* extract session parameters from addba request frame */ 486 dialog_token = mgmt->u.action.u.addba_req.dialog_token; 487 timeout = le16_to_cpu(mgmt->u.action.u.addba_req.timeout); 488 start_seq_num = 489 le16_to_cpu(mgmt->u.action.u.addba_req.start_seq_num) >> 4; 490 491 capab = le16_to_cpu(mgmt->u.action.u.addba_req.capab); 492 ba_policy = (capab & IEEE80211_ADDBA_PARAM_POLICY_MASK) >> 1; 493 tid = (capab & IEEE80211_ADDBA_PARAM_TID_MASK) >> 2; 494 buf_size = (capab & IEEE80211_ADDBA_PARAM_BUF_SIZE_MASK) >> 6; 495 496 ies_len = len - offsetof(struct ieee80211_mgmt, 497 u.action.u.addba_req.variable); 498 if (ies_len) { 499 elems = ieee802_11_parse_elems(mgmt->u.action.u.addba_req.variable, 500 ies_len, true, mgmt->bssid, NULL); 501 if (!elems || elems->parse_error) 502 goto free; 503 } 504 > 505 if (sta->sta.eht_cap.has_eht && elems && elems->addba_ext_ie) { 506 u8 buf_size_1k = u8_get_bits(elems->addba_ext_ie->data, > 507 IEEE80211_ADDBA_EXT_BUF_SIZE_MASK); 508 > 509 buf_size |= buf_size_1k << IEEE80211_ADDBA_EXT_BUF_SIZE_SHIFT; 510 } 511 512 __ieee80211_start_rx_ba_session(sta, dialog_token, timeout, 513 start_seq_num, ba_policy, tid, 514 buf_size, true, false, 515 elems ? elems->addba_ext_ie : NULL); 516 free: 517 kfree(elems); 518 } 519 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============0801251694421702761==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [iwlwifi-next:pending 40/42] net/mac80211/agg-rx.c:505:15: error: no member named 'eht_cap' in 'struct ieee80211_sta'; did you mean 'he_cap'? Date: Wed, 02 Feb 2022 14:22:24 +0800 Message-ID: <202202021412.zzbjX8rs-lkp@intel.com> List-Id: --===============0801251694421702761== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tree: https://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-nex= t.git pending head: b15caa03d4e21e9e8dbc81f6ac09171a2871af1d commit: 7c8b580893d9c8858b60fec31cb5b55336667ac1 [40/42] mac80211: fix NULL= -ptr-deref in ADDBA extended element config: arm-multi_v5_defconfig (https://download.01.org/0day-ci/archive/202= 20202/202202021412.zzbjX8rs-lkp(a)intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 6b1e84= 4b69f15bb7dffaf9365cd2b355d2eb7579) reproduce (this is a W=3D1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install arm cross compiling tool for clang build # apt-get install binutils-arm-linux-gnueabi # https://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-n= ext.git/commit/?id=3D7c8b580893d9c8858b60fec31cb5b55336667ac1 git remote add iwlwifi-next https://git.kernel.org/pub/scm/linux/ke= rnel/git/iwlwifi/iwlwifi-next.git git fetch --no-tags iwlwifi-next pending git checkout 7c8b580893d9c8858b60fec31cb5b55336667ac1 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross W=3D= 1 O=3Dbuild_dir ARCH=3Darm SHELL=3D/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> net/mac80211/agg-rx.c:505:15: error: no member named 'eht_cap' in 'struc= t ieee80211_sta'; did you mean 'he_cap'? if (sta->sta.eht_cap.has_eht && elems && elems->addba_ext_ie) { ^~~~~~~ he_cap include/net/mac80211.h:2099:30: note: 'he_cap' declared here struct ieee80211_sta_he_cap he_cap; ^ >> net/mac80211/agg-rx.c:505:23: error: no member named 'has_eht' in 'struc= t ieee80211_sta_he_cap'; did you mean 'has_he'? if (sta->sta.eht_cap.has_eht && elems && elems->addba_ext_ie) { ^~~~~~~ has_he include/net/cfg80211.h:357:7: note: 'has_he' declared here bool has_he; ^ >> net/mac80211/agg-rx.c:507:11: error: use of undeclared identifier 'IEEE8= 0211_ADDBA_EXT_BUF_SIZE_MASK' IEEE80211_ADDBA_EXT_BUF_SIZ= E_MASK); ^ >> net/mac80211/agg-rx.c:509:30: error: use of undeclared identifier 'IEEE8= 0211_ADDBA_EXT_BUF_SIZE_SHIFT' buf_size |=3D buf_size_1k << IEEE80211_ADDBA_EXT_BUF_SIZ= E_SHIFT; ^ 4 errors generated. vim +505 net/mac80211/agg-rx.c 474 = 475 void ieee80211_process_addba_request(struct ieee80211_local *local, 476 struct sta_info *sta, 477 struct ieee80211_mgmt *mgmt, 478 size_t len) 479 { 480 u16 capab, tid, timeout, ba_policy, buf_size, start_seq_num; 481 struct ieee802_11_elems *elems =3D NULL; 482 u8 dialog_token; 483 int ies_len; 484 = 485 /* extract session parameters from addba request frame */ 486 dialog_token =3D mgmt->u.action.u.addba_req.dialog_token; 487 timeout =3D le16_to_cpu(mgmt->u.action.u.addba_req.timeout); 488 start_seq_num =3D 489 le16_to_cpu(mgmt->u.action.u.addba_req.start_seq_num) >> 4; 490 = 491 capab =3D le16_to_cpu(mgmt->u.action.u.addba_req.capab); 492 ba_policy =3D (capab & IEEE80211_ADDBA_PARAM_POLICY_MASK) >> 1; 493 tid =3D (capab & IEEE80211_ADDBA_PARAM_TID_MASK) >> 2; 494 buf_size =3D (capab & IEEE80211_ADDBA_PARAM_BUF_SIZE_MASK) >> 6; 495 = 496 ies_len =3D len - offsetof(struct ieee80211_mgmt, 497 u.action.u.addba_req.variable); 498 if (ies_len) { 499 elems =3D ieee802_11_parse_elems(mgmt->u.action.u.addba_req.variab= le, 500 ies_len, true, mgmt->bssid, NULL); 501 if (!elems || elems->parse_error) 502 goto free; 503 } 504 = > 505 if (sta->sta.eht_cap.has_eht && elems && elems->addba_ext_ie) { 506 u8 buf_size_1k =3D u8_get_bits(elems->addba_ext_ie->data, > 507 IEEE80211_ADDBA_EXT_BUF_SIZE_MASK); 508 = > 509 buf_size |=3D buf_size_1k << IEEE80211_ADDBA_EXT_BUF_SIZE_SHIFT; 510 } 511 = 512 __ieee80211_start_rx_ba_session(sta, dialog_token, timeout, 513 start_seq_num, ba_policy, tid, 514 buf_size, true, false, 515 elems ? elems->addba_ext_ie : NULL); 516 free: 517 kfree(elems); 518 } 519 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============0801251694421702761==--