Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp488119pxb; Wed, 25 Aug 2021 07:53:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWHzlIqp963o0KyOQg7eFzEJXwuvXjczguU0yOg0FfNEbRx+RV/J3TfudrDapYWx465bTw X-Received: by 2002:a05:6402:1b10:: with SMTP id by16mr11863503edb.297.1629903193591; Wed, 25 Aug 2021 07:53:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629903193; cv=none; d=google.com; s=arc-20160816; b=gp5Nxs1/Yx2i9TI1/CjmdjuGBPPqdRknsoHsJrbiYL9nTG7S/xVzAVmTmFE88xquJ3 BpMvfKtRDMnlB5zK3vgNaxISoF0H3Lw8bIMyHJwAm8pcrrvINOclIIDk6DncmikTuQMk oLmiGvtytdO+X77CE0xmPmJJr9vOuRk3UeiAiCBqvTqc42H+YJSl/HHtq0x4RIRVGdII e+TlO9KwRtEZEgYM6pgGV3w1Aa6yaDvQArfz48eu/tx+kQ/hPmpxvlvJeW4+vQWZT1bi GiXhNg/7RCFrAUDwP+jRB/VwlNHV5r5FcBuhPkvhwLfnF7LevkWR8mpJqE2dDQE1bV6e 63bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=zCxZkeEen3d25W+uS0Sr+vZJbSneoSqKjRT90Qz8wDY=; b=qPdJYhYpwMGMRR6AlmPr5NWZLbisFuiBHFlWiyBQonkZZO24ZD7pz1HuqqGySjco1M sznEIWm7Hd/vszNvtyOcEf9F1Lg54oCuuRWIuYntrHDwOwJ+d/pwbOpp3ObeVCY/qD96 xFA8xIBPkJsimgZqotpL8LW8MsspWUvGdKA+sLtDGwaKMxjbzt9O2mwsbup0TMbLgQF5 2NVMfEyC2SyUpf4ODfmV+wgPdC21m53IdPr1s8bXDmJ6IX44K0lTQzHqwyI9gPV6S1Wc dTLuNbnk8VTXhj/OMp6ENmvJJ8z3q1HuCFLN8qvco5eA4TFFFTCJIGtAMaUvuHr3BvbR uhcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EoeO8sZS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mp19si33164ejc.630.2021.08.25.07.52.48; Wed, 25 Aug 2021 07:53:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EoeO8sZS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240709AbhHYMR7 (ORCPT + 99 others); Wed, 25 Aug 2021 08:17:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240602AbhHYMR5 (ORCPT ); Wed, 25 Aug 2021 08:17:57 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5F3DC061757 for ; Wed, 25 Aug 2021 05:17:11 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id y34so52466346lfa.8 for ; Wed, 25 Aug 2021 05:17:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=zCxZkeEen3d25W+uS0Sr+vZJbSneoSqKjRT90Qz8wDY=; b=EoeO8sZSweVS76zmvaXo7TSanEDmUv72pgj1aVfwGzvdSvJ5l7aV2BjFf55W+p7QMz w1GK6WecmUbmp5EkVBEbUG+eJfq+2DSacwK7pk23bmQm/FLDsp5n2kP/vsSh9HtCIgPI FEbSifT8MdNygUuqGCXzkbmnKygM93LG9WwPDrqqi09jPxvacewoiJLZnA+j6vpdGOIL 20gI7OoyI8Sx61FkDKuIwBPviAxbqwndHLelanQIdK7bBuJxZJGL39h0+VjatdIsiSDZ r1EB9yLI8ahyi0uNez9/69sMHonnu599OXrROV+b4R8dFCbnYv5ZeMXCWBjqzQVq7+Ew T/uA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=zCxZkeEen3d25W+uS0Sr+vZJbSneoSqKjRT90Qz8wDY=; b=VLvocpuH7ZgSs1Yx0O1A2Xt1Q4UR2Iq7H22OIT7mnHyEBvzWCSqhu4kGE1/XxTRJwz Qw6zB1GGSVgk82MERrDPmAFkxAK66HsH6lqnn8qfsds8RxTgJLsNDw1NZ++pG9kL1ReG MyuubLleh6dya3C0QdDTfPw8PqLJqBsxDn39Rx1Dk9otsT6MWrJ4IkZUqa1EoQt5Zfny oxbN4MXzx8Sxee2NhO7cfmF3ksX7YcMSoyYAEr4UrubkefE15Z+UlHXh5PMxngFeEa2N rzB85VtsMnTmfxzYVBAOTaG/CrG5MOOGLh8eyctaonUXm3Y3B0gPcT8RnIBlPVMfZPzg qn9g== X-Gm-Message-State: AOAM5329vteumAbHR3ZREWpkKEujDvN8q+NAKxwZAurO18d+fB07WqYA GOWyZ/63eFru6asuJ95AGkN9Ldkhpc9tYA== X-Received: by 2002:a05:6512:3391:: with SMTP id h17mr31707375lfg.173.1629893829901; Wed, 25 Aug 2021 05:17:09 -0700 (PDT) Received: from [192.168.1.11] ([46.235.66.127]) by smtp.gmail.com with ESMTPSA id bt38sm2049619lfb.213.2021.08.25.05.17.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 25 Aug 2021 05:17:09 -0700 (PDT) Subject: Re: [PATCH v3 3/6] staging: r8188eu: add error handling of rtw_read8 To: kernel test robot , Larry.Finger@lwfinger.net, phil@philpotter.co.uk, gregkh@linuxfoundation.org, straube.linux@gmail.com, fmdefrancesco@gmail.com Cc: clang-built-linux@googlegroups.com, kbuild-all@lists.01.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org References: <202108251911.Vwmzl4rI-lkp@intel.com> From: Pavel Skripkin Message-ID: <9743e1ee-75f4-6231-427b-8c7f659fb252@gmail.com> Date: Wed, 25 Aug 2021 15:17:06 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <202108251911.Vwmzl4rI-lkp@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 ea08c4cd1c0869ec5024a8bb3f5cdf06ab03ae83) > 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 11.1.1 > # https://github.com/0day-ci/linux/commit/d4e4bbed4e59df37967086f60fe92cb1b4504d37 > git remote add linux-review https://github.com/0day-ci/linux > git fetch --no-tags linux-review Pavel-Skripkin/staging-r8188eu-remove-read-write-_macreg/20210824-162756 > git checkout d4e4bbed4e59df37967086f60fe92cb1b4504d37 > # save the attached .config to linux build tree > mkdir build_dir > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=arm SHELL=/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 expression > 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 > vim +2022 drivers/staging/r8188eu/hal/usb_halinit.c > > 2020 case HW_VAR_BCN_VALID: > 2021 /* BCN_VALID, BIT(16) of REG_TDECTRL = BIT(0) of REG_TDECTRL+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 {}? My local gcc 11.1.1 (x86_64) does not produce any warnings/errors > 2023 > 2024 error = rtw_read8(Adapter, REG_TDECTRL + 2, &tmp); > 2025 if (error) > 2026 return; > 2027 > 2028 rtw_write8(Adapter, REG_TDECTRL + 2, tmp | BIT(0)); > 2029 break; > 2030 default: > 2031 break; > 2032 } > 2033 > With regards, Pavel Skripkin