Content-Type: multipart/mixed; boundary="===============5298024007923527455==" MIME-Version: 1.0 From: Dan Carpenter To: kbuild-all@lists.01.org Subject: Re: [PATCH v3 3/6] staging: r8188eu: add error handling of rtw_read8 Date: Wed, 25 Aug 2021 15:51:59 +0300 Message-ID: <20210825125159.GU1931@kadam> In-Reply-To: <9743e1ee-75f4-6231-427b-8c7f659fb252@gmail.com> List-Id: --===============5298024007923527455== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Wed, Aug 25, 2021 at 03:17:06PM +0300, Pavel Skripkin wrote: > On 8/25/21 3:05 PM, kernel test robot wrote: > > Hi Pavel, > > = > > Thank you for the patch! Yet something to improve: > > = > > [auto build test ERROR on staging/staging-testing] > > = > > url: https://github.com/0day-ci/linux/commits/Pavel-Skripkin/staging= -r8188eu-remove-read-write-_macreg/20210824-162756 > > base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.= git 093991aaadf0fbb34184fa37a46e7a157da3f386 > > config: arm-buildonly-randconfig-r001-20210825 (attached as .config) > > compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project ea= 08c4cd1c0869ec5024a8bb3f5cdf06ab03ae83) > > 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 11.1.1 > > # https://github.com/0day-ci/linux/commit/d4e4bbed4e59df379670= 86f60fe92cb1b4504d37 > > git remote add linux-review https://github.com/0day-ci/linux > > git fetch --no-tags linux-review Pavel-Skripkin/staging-r8188e= u-remove-read-write-_macreg/20210824-162756 > > git checkout d4e4bbed4e59df37967086f60fe92cb1b4504d37 > > # save the attached .config to linux build tree > > mkdir build_dir > > COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross= O=3Dbuild_dir ARCH=3Darm SHELL=3D/bin/bash drivers/staging/r8188eu/ > > = > > If you fix the issue, kindly add following tag as appropriate > > Reported-by: kernel test robot > > = > > All errors (new ones prefixed by >>): > > = > > > > drivers/staging/r8188eu/hal/usb_halinit.c:2022:3: error: expected e= xpression > > u8 tmp; > > ^ > > 1 error generated. > > = > > Kconfig warnings: (for reference only) > > WARNING: unmet direct dependencies detected for QCOM_SCM > > Depends on (ARM || ARM64) && HAVE_ARM_SMCCC > > Selected by > > - ARM_QCOM_SPM_CPUIDLE && CPU_IDLE && (ARM || ARM64) && (ARCH_QCOM = || COMPILE_TEST && !ARM64 && MMU > > = > > = > = > We need to fix Kconfig, ok, I will take a look at it later > = This is not related to your patch. Ignore it. > > vim +2022 drivers/staging/r8188eu/hal/usb_halinit.c > > = > = > > 2020 case HW_VAR_BCN_VALID: > > 2021 /* BCN_VALID, BIT(16) of REG_TDECTRL =3D BIT(0) of REG_TDECTR= L+2, write 1 to clear, Clear by sw */ > > > 2022 u8 tmp; > = > Hm, I don't know anything about ARM compilers, so should I wrap this code > block with {}? Yep. > = > My local gcc 11.1.1 (x86_64) does not produce any warnings/errors > = You should figure out whats up with that because it shouldn't compile with the gcc options that the kernel uses. regards, dan carpenter --===============5298024007923527455==--