Content-Type: multipart/mixed; boundary="===============6054666308572423413==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH 2/3 v2] staging: rtl8723bs: Drop get_recvframe_data() Date: Sat, 15 Jan 2022 17:12:35 +0800 Message-ID: <202201151724.U21w0KEg-lkp@intel.com> In-Reply-To: <20220115042427.824542-3-keescook@chromium.org> List-Id: --===============6054666308572423413== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Kees, I love your patch! Yet something to improve: [auto build test ERROR on staging/staging-testing] url: https://github.com/0day-ci/linux/commits/Kees-Cook/staging-rtl-Chec= k-for-NULL-header-value/20220115-122817 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git = fa783154524a71ab74e293cd8251155e5971952b config: riscv-allyesconfig (https://download.01.org/0day-ci/archive/2022011= 5/202201151724.U21w0KEg-lkp(a)intel.com/config) compiler: riscv64-linux-gcc (GCC) 11.2.0 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 # https://github.com/0day-ci/linux/commit/0ee2a9ea6309b9087293fe3b3= 8a76421998bff7d git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Kees-Cook/staging-rtl-Check-for-NU= LL-header-value/20220115-122817 git checkout 0ee2a9ea6309b9087293fe3b38a76421998bff7d # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= O=3Dbuild_dir ARCH=3Driscv SHELL=3D/bin/bash drivers/staging/rtl8723bs/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): drivers/staging/rtl8723bs/core/rtw_recv.c: In function 'portctrl': >> drivers/staging/rtl8723bs/core/rtw_recv.c:468:15: error: 'precvframe' un= declared (first use in this function); did you mean 'precv_frame'? 468 | ptr =3D precvframe->u.hdr.rx_data; | ^~~~~~~~~~ | precv_frame drivers/staging/rtl8723bs/core/rtw_recv.c:468:15: note: each undeclared = identifier is reported only once for each function it appears in vim +468 drivers/staging/rtl8723bs/core/rtw_recv.c 449 = 450 /* set the security information in the recv_frame */ 451 static union recv_frame *portctrl(struct adapter *adapter, union rec= v_frame *precv_frame) 452 { 453 u8 *psta_addr =3D NULL; 454 u8 *ptr; 455 uint auth_alg; 456 struct recv_frame_hdr *pfhdr; 457 struct sta_info *psta; 458 struct sta_priv *pstapriv; 459 union recv_frame *prtnframe; 460 u16 ether_type =3D 0; 461 u16 eapol_type =3D 0x888e;/* for Funia BD's WPA issue */ 462 struct rx_pkt_attrib *pattrib; 463 = 464 pstapriv =3D &adapter->stapriv; 465 = 466 auth_alg =3D adapter->securitypriv.dot11AuthAlgrthm; 467 = > 468 ptr =3D precvframe->u.hdr.rx_data; 469 pfhdr =3D &precv_frame->u.hdr; 470 pattrib =3D &pfhdr->attrib; 471 psta_addr =3D pattrib->ta; 472 = 473 prtnframe =3D NULL; 474 = 475 psta =3D rtw_get_stainfo(pstapriv, psta_addr); 476 = 477 if (auth_alg =3D=3D 2) { 478 if ((psta) && (psta->ieee8021x_blocked)) { 479 __be16 be_tmp; 480 = 481 /* blocked */ 482 /* only accept EAPOL frame */ 483 = 484 prtnframe =3D precv_frame; 485 = 486 /* get ether_type */ 487 ptr =3D ptr + pfhdr->attrib.hdrlen + pfhdr->attrib.iv_len + LLC_H= EADER_LENGTH; 488 memcpy(&be_tmp, ptr, 2); 489 ether_type =3D ntohs(be_tmp); 490 = 491 if (ether_type =3D=3D eapol_type) 492 prtnframe =3D precv_frame; 493 else { 494 /* free this frame */ 495 rtw_free_recvframe(precv_frame, &adapter->recvpriv.free_recv_que= ue); 496 prtnframe =3D NULL; 497 } 498 } else { 499 /* allowed */ 500 /* check decryption status, and decrypt the frame if needed */ 501 = 502 prtnframe =3D precv_frame; 503 /* check is the EAPOL frame or not (Rekey) */ 504 /* if (ether_type =3D=3D eapol_type) { */ 505 /* check Rekey */ 506 = 507 /* prtnframe =3Dprecv_frame; */ 508 /* */ 509 /* else { */ 510 /* */ 511 } 512 } else 513 prtnframe =3D precv_frame; 514 = 515 return prtnframe; 516 } 517 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============6054666308572423413==--