Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp1030466imn; Sat, 30 Jul 2022 12:21:07 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tyoda9lU82G869nrUSU0m5X1sdsHcIOQUHamle3O4tN1pC2o2po4rAQZzFLHPMJnYEklfZ X-Received: by 2002:a63:e942:0:b0:41a:b002:a22b with SMTP id q2-20020a63e942000000b0041ab002a22bmr7559857pgj.518.1659208867322; Sat, 30 Jul 2022 12:21:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659208867; cv=none; d=google.com; s=arc-20160816; b=QQpHSSEQQAfcvr5B0YkOEaLwQ8EDzjzIQaNk6Fkkin1oL24SXBFnNNO/x+drFVyGsP Gw5rkZXsPE72Mn5A2VQToKixnH0Enkpa3DCR4WJP4Kzm6gHUzxVg6glZPxrO23AL1pcK Cvv3JA9+2tMZ8wRtP2uLelaFpvp769T98MhgevB7wMTd2aV8cRuYE4So7iw34tXv9vQx r67xKZWINBg0rLczkHB4N3Gub3cYV/b21ZzV8Ag22JFUQdRi1QdmfGw7KF2g56/NhE58 bFmds6OLQs1n082L52FppQLCBrTnJDF0sDPNFuogP/H/XcZSpw1nU3Y1BX5RFa9DzaRA uqJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=H6EoWK2Xkx5f0BaLXMIdK1U61HtbiW4S6pMAj0sBMEU=; b=wCEFdLQ9LsznG1OIJx/SxMw89mM5TCHNf7OCOCCi1UuDNiYQVIjWlSuJQVlnzI7gRK LrRGZJUyXNsz3iRwYjqN2bxITpBOyLLf8RSyPVZuR7xt0mWXLRZoom9p03AWReFPqGrx TJT1n0c7mfj4o96+kOgmQ6kPNiiazqRkBztWm+5q/crjCFXTJ8Wjch5TpC5Icqptz/c6 19lLKNjfOyMrqucc8bhvVQbgT3CBQllSMBiNB6hTkBdwW3mxtkn8+gJY+Xti9p4iFmbY aDcVAFLOvloYKpCQ4awyoCJEFy+ibF5OcB8k9nJoK9r7HxKTEyJVquBN6yarOM+w9KAm kUOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@philpotter-co-uk.20210112.gappssmtp.com header.s=20210112 header.b=Cw4Ajigu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k18-20020aa79d12000000b005183434ec7csi7180146pfp.363.2022.07.30.12.20.27; Sat, 30 Jul 2022 12:21:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@philpotter-co-uk.20210112.gappssmtp.com header.s=20210112 header.b=Cw4Ajigu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235351AbiG3SmX (ORCPT + 99 others); Sat, 30 Jul 2022 14:42:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230266AbiG3SmW (ORCPT ); Sat, 30 Jul 2022 14:42:22 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2C1614015 for ; Sat, 30 Jul 2022 11:42:21 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id ay11-20020a05600c1e0b00b003a3013da120so5549361wmb.5 for ; Sat, 30 Jul 2022 11:42:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philpotter-co-uk.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=H6EoWK2Xkx5f0BaLXMIdK1U61HtbiW4S6pMAj0sBMEU=; b=Cw4Ajigu6wNyUc+igA/HWRNZT0U5EohtvaBtioSfOpz8foDZCRa7z+X0sN4iKX5Bg5 GxmKNlC2r3PYQRcd7yOKZWZ5cj5NIA+W5aT5Oz9hBo1FICAYThyQNSoQXvHVnbe9gfA9 Z6CiKWGCVvm2VsTGZP3J6X7m96sustGROUfJW04mXqAOYkMNWAFZ8wc+LsSM6TYazgck LAUAquyixb9rnIyVMWaSNemwdSMv2T8kkf8pdIzRX7mHwZ7wK10UdCXXe7sOxEQ+IagD KJKDAeOo/OMTw313Mlm7ToIS2g41+szHlHrjcrQ9FDVu5TKdF7QpL9/kb1Hlh/dehltg CGmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=H6EoWK2Xkx5f0BaLXMIdK1U61HtbiW4S6pMAj0sBMEU=; b=2ZC02nKTa3DN1Fx44vzdxXrUgPW9pEcMpaKOsqf5aH+tKDdNzkNyn9WRj25rLLU/An NBUJrw1W99DD8uF93Sdvs5m+rf+4bHaM1w/Db2Fnea/D5lSine03+37qAoXxwSvkMSYq aiNyk1VWYpCJoEtekUHnORG3KwwnzEvUSEn+5LKslVdrMIcAjyZ4uZVQGEsJbNjs0mNs 3iqohXBy7Hc/9eipkoVuXiowGspYJ1z2bQpjMlEMIE75L+BBP7G61717eAXrQvkFJPQZ J2SxkVrulcRKGRvBPG96qaVNwuNhwBD5l5bwboTvZRWrILffQt7BFtBSA3/ojwIXTS2O 9bhw== X-Gm-Message-State: AJIora/mhKmSBzKiwzWy+QIDfPXXV849YyM6C+OphGE81F9TbSgC47Hb 3f2s2038TE9Ls0BlzL5tiqhyj9tsJf98BAt2 X-Received: by 2002:a05:600c:3551:b0:3a3:1d4f:69ed with SMTP id i17-20020a05600c355100b003a31d4f69edmr6204521wmq.188.1659206540118; Sat, 30 Jul 2022 11:42:20 -0700 (PDT) Received: from OEMBP14.local (82-132-226-84.dab.02.net. [82.132.226.84]) by smtp.gmail.com with ESMTPSA id p15-20020adfce0f000000b0021ee28ff76esm7147601wrn.38.2022.07.30.11.42.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Jul 2022 11:42:19 -0700 (PDT) Date: Sat, 30 Jul 2022 19:42:17 +0100 From: Phillip Potter To: Greg Kroah-Hartman Cc: kernel test robot , Phillip Potter , devel@driverdev.osuosl.org, llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: Re: [staging:staging-testing 54/54] drivers/staging/r8188eu/core/rtw_pwrctrl.c:400:6: warning: variable 'ret' is used uninitialized whenever 'if' condition is false Message-ID: References: <202207301623.BfMKLfhv-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jul 30, 2022 at 01:08:23PM +0200, Greg Kroah-Hartman wrote: > On Sat, Jul 30, 2022 at 04:14:57PM +0800, kernel test robot wrote: > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git staging-testing > > head: f3a76018dd55d8ddcd28cb47049f46ae5c0ce557 > > commit: f3a76018dd55d8ddcd28cb47049f46ae5c0ce557 [54/54] staging: r8188eu: remove initializer from ret in rtw_pwr_wakeup > > config: hexagon-randconfig-r015-20220729 (https://download.01.org/0day-ci/archive/20220730/202207301623.BfMKLfhv-lkp@intel.com/config) > > compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 52cd00cabf479aa7eb6dbb063b7ba41ea57bce9e) > > 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://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git/commit/?id=f3a76018dd55d8ddcd28cb47049f46ae5c0ce557 > > git remote add staging https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git > > git fetch --no-tags staging staging-testing > > git checkout f3a76018dd55d8ddcd28cb47049f46ae5c0ce557 > > # save the config file > > mkdir build_dir && cp config build_dir/.config > > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/staging/r8188eu/ > > > > If you fix the issue, kindly add following tag where applicable > > Reported-by: kernel test robot > > > > All warnings (new ones prefixed by >>): > > > > >> drivers/staging/r8188eu/core/rtw_pwrctrl.c:400:6: warning: variable 'ret' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] > > if (padapter->bDriverStopped || !padapter->bup || !padapter->hw_init_completed) { > > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > drivers/staging/r8188eu/core/rtw_pwrctrl.c:409:9: note: uninitialized use occurs here > > return ret; > > ^~~ > > drivers/staging/r8188eu/core/rtw_pwrctrl.c:400:2: note: remove the 'if' if its condition is always true > > if (padapter->bDriverStopped || !padapter->bup || !padapter->hw_init_completed) { > > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > drivers/staging/r8188eu/core/rtw_pwrctrl.c:384:9: note: initialize the variable 'ret' to silence this warning > > int ret; > > ^ > > = 0 > > 1 warning generated. > > Phillip, can you send a follow-up patch for this issue? > > thanks, > > greg k-h Yes, of course. It will be a few hours though if that's ok - I've had to pop out to send this as someone decided to steal some telecoms cabling, thus knocking out DSL for us and three neighbouring towns :-) Regards, Phil