Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp814823imn; Sat, 30 Jul 2022 04:18:07 -0700 (PDT) X-Google-Smtp-Source: AA6agR5G6a4Hq5EdBCjvVgLbOCyvKVZJEPa7dZ3M40yQ/UQ0QzutJB1OTPsOFs5D7PZqv8fGVM4r X-Received: by 2002:a50:bace:0:b0:43d:370a:e1c1 with SMTP id x72-20020a50bace000000b0043d370ae1c1mr4599598ede.193.1659179887502; Sat, 30 Jul 2022 04:18:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659179887; cv=none; d=google.com; s=arc-20160816; b=EVyGsh40tt1VSOzT16yKSqKumaOTeT7dXVZ4oywoY6mUfQzqABfVsZiztifmJHFIsp cfLt3L53Q/b3MFfg0PysEpUqICxqBfPn//l5ky4+fOjU27XoA8xx8qu8EvtL4/gqwr+2 +chr5JRdco1yALyhCP665F1wLUNu1sgRJmVXnzoF1OeHkNiC9/+9bjJhn4wqYnBmcnl1 13f8ML+LKSZRsXTSzVZk54B0hIhIibvXzz+7DGmXfE+JD2O/Q0+P+yrJqGrdooV9zcS2 4jb+hthzSLMib703//mLsjKkiP2ijNA47sOkdojbMr5uZLVB8Ds35gz9Ie4HYaJ6i6vQ OWkg== 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:to:from:date:dkim-signature; bh=SSgFDPaStcfJGm8cjBz2pcmqsBWJiZEFVIClESfWiGg=; b=mj/n05ObmQnE36SPRBA6VN5llkCbQFFjzsfdCfgwSOatCBah1pwnNdwU86vQQOfY3G LfxVHUQC14opxa/L403mD4jUwXoINiWI8Uuobygslze5Mcb4Q5mibJi9yk8M8nD/0HUp 8rfLi+NNv186cq8db46Cs9e5VY8Cp9hvtSwphMQzUPLTK3/oA8MFhVXJBtbLNeizKb8O HJEB7GQBm7I4AX9X/A5ddJdpC+K69c8i5vxacJ/5ML4VwAxfUQavFIY+sLGnfpOSqpNn PZk3liV/MzKCP3whEqbpJCnMee34pQJf554hJNh4N8o8pocZz1XtbdaG141pNEOxtnAh lfsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zlf3jV1i; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qa36-20020a17090786a400b0072b4791e326si5887530ejc.181.2022.07.30.04.17.40; Sat, 30 Jul 2022 04:18: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=@linuxfoundation.org header.s=korg header.b=zlf3jV1i; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234095AbiG3LIa (ORCPT + 99 others); Sat, 30 Jul 2022 07:08:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230036AbiG3LI3 (ORCPT ); Sat, 30 Jul 2022 07:08:29 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BE621F60D for ; Sat, 30 Jul 2022 04:08:28 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 567F9B8037A for ; Sat, 30 Jul 2022 11:08:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB801C433C1; Sat, 30 Jul 2022 11:08:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1659179306; bh=RFCjEIXYtlsw0dHGNFpOiQWzJCSmz+sziuYk25gdzf8=; h=Date:From:To:Subject:References:In-Reply-To:From; b=zlf3jV1iEv/KZ41B6aCeByR1ALRNOGb2PcKLD+qouI5CbbsBcYxkFtxYPoSop0RYj DmsrIs8SG0K6TCs7TIzNRXJ14P/EZDhFLk80exNE2Illh7ltx6QYld0N7D6ESw0obl WrLRL5hN3/cewfLL5A9g+ltHgfUcNaXZ/r+nqsbU= Date: Sat, 30 Jul 2022 13:08:23 +0200 From: Greg Kroah-Hartman To: 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: <202207301623.BfMKLfhv-lkp@intel.com> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 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