From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795886830; b=2C/ZUYS5Z4KzTB3N6UneA1DHShseceU8P/G4N/UOmQeeH3Vc6cpAdOMHzExLWtSZxeSK FMTtLf0CNyKB5G+vWfbnyq3njln2EOFCs7sGexmbSbxum0Tj/e2JeiD0yst7eh1FXGD0w y0N/2mDzhQAFNG0OmMVPg7Bt4NwKqs4Eps0oyHB+JoacrGf7TpnRPNUV5iGdpJb4CNo86 TNhgYyIZhFObYX7JNNUkouNrzoajRXOemFMlyY6MsFoZWEYtzm7hQ0uzNRTMz+UXoQYmu xAYpLnKkHBbhyID376p2tClY/2JR4payxZaL6BnIa8o7Wh8S3/PE06ZO6qIBpCHgp0A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795886830; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:MIME-Version:Content-Transfer-Encoding; bh=nDC7bDInyzpZMQrdLIuDLKE24jKb1bTBG7qDm+SWefc=; b=hUforzDwLVEmYWw9DyGmxL+LeJ3u/yhLKub6aqxfXtxwFVvFRiKuYAhHTrb2/oN8jF6w lCWQ6+pVCTCBM3dAAT1iKwH9ZucMdmL2nG5sB/MM316oLbXn01IlYQsQHUexJUFYdhVDQ x5JsAiczoVM9h4mpkf150hGBNW0ni+D1aL1DgFIakBI3/VM+k6AhclPtcsnaAP0+5TDw9 sTHv14JAgsOgYaiUGdmFFcJ0Tb0ecGh+a3GsmVn85krrjEci5GLpysId7S2gwJlTwZysd dbELb2bNfj2pTuspwkWeS91+YRMYNq7lHHDDBTd30yumVPIzKSLpHlsdFKAnBtQUDYw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=FRSyZK5L; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 96F51606A682 for ; Sat, 28 Nov 2026 17:27:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=FRSyZK5L Received: by smtp.kernel.org (Postfix) with ESMTPSA id DD1371F0092A; Sat, 28 Nov 2026 17:27:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795886830; bh=nDC7bDInyzpZMQrdLIuDLKE24jKb1bTBG7qDm+SWefc=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=FRSyZK5LvlbTjSsdWfDe+lf5oWtVDhjEjP7V0c43gaIpYxPYec44XW6BDNi/n40Qy SmyKxDDvvUJvsFU2vMUqJmMJfXRDTo/3C0PGjyFB67iERPumxCrwmUMLCJxWCTyEVM 8lj7Xj/Jixrwq6kuEEIMGz6JZRzCm8DlazfD6BhbthSzW1gwK6RJZw7E/YX7ZFIUsM d3cabTuwKWZSpiANNUZre99MbTBrn5jjq82JKxKo/G0yCYpb73HEtSPEb0FFoecNsC N0gsAkxjIZXvXegD52X5d+Qdb9SffpsWrfRR3YlWTwY4+EJADT0xELDB59JZGOW6wS TqgAAX7a/Xgvw== From: SJ Park To: kernel test robot Cc: SJ Park , oe-kbuild-all@lists.linux.dev Subject: Re: [sj:damon/next 8/115] mm/damon/core.c:2897:6: warning: variable 'sz' is used uninitialized whenever 'if' condition is false Date: Sat, 28 Nov 2026 09:27:02 -0800 Message-ID: <20261128172703.87664-1-sj@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261128131145.Nl6CvXC3-lkp@intel.com> References: X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On Sat, 28 Nov 2026 13:18:16 +0100 kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/sj/linux.git damon/next > head: 48de80bb219cbce999fe877fcf3256d863908567 > commit: 6c2c2ebe06271b1f829f6eac8b56baab5ca71b11 [8/115] mm/damon/core: do not update stat for core filter rejecting region > config: powerpc-randconfig-2200-20261128 (https://download.01.org/0day-ci/archive/20261128/20261128131145.Nl6CvXC3-lkp@intel.com/config) > compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 578b1f2d6a9776b63cbb6b86f4cca6208d429f48) > smatch: v0.5.0-9187-g5189e3fb > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261128/20261128131145.Nl6CvXC3-lkp@intel.com/reproduce) > > If you fix the issue in a separate patch/commit (i.e. not just a new version of > the same patch/commit), kindly add following tags > | Reported-by: kernel test robot > | Closes: https://lore.kernel.org/oe-kbuild-all/20261128131145.Nl6CvXC3-lkp@intel.com/ > > All warnings (new ones prefixed by >>): > > >> mm/damon/core.c:2897:6: warning: variable 'sz' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] > 2897 | if (c->ops.apply_scheme) { > | ^~~~~~~~~~~~~~~~~~~ > mm/damon/core.c:2930:23: note: uninitialized use occurs here > 2930 | damos_update_stat(s, sz, sz_applied, sz_ops_filter_passed); > | ^~ > mm/damon/core.c:2897:2: note: remove the 'if' if its condition is always true > 2897 | if (c->ops.apply_scheme) { > | ^~~~~~~~~~~~~~~~~~~~~~~~ > mm/damon/core.c:2864:18: note: initialize the variable 'sz' to silence this warning > 2864 | unsigned long sz; > | ^ > | = 0 > 1 warning generated. Thank you for this report! I added a fix to my tree. Thanks, SJ [...]