Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5634447rwp; Mon, 17 Jul 2023 07:16:38 -0700 (PDT) X-Google-Smtp-Source: APBJJlGnLlVeptNm90+gIdeWyrp5t0/EojaeKIxGuLWP7XeSA0NF5a6qCstjQWs2H3Aq6GhlIj9+ X-Received: by 2002:a17:90a:6644:b0:262:f579:41db with SMTP id f4-20020a17090a664400b00262f57941dbmr9288655pjm.6.1689603398248; Mon, 17 Jul 2023 07:16:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689603398; cv=none; d=google.com; s=arc-20160816; b=WUnzxIUG0Zkyg1FiJuShFpynOqJk+ArvMmKs1ZxQHrbqBp/Iw4X6ZZBeqBsTjO3QKV p67K+HcTFNiP6yQHQt3+5lyFnDpvxANd/wtPik25i6BUH7jWHg4GqoFP5wUTKyqhSps4 Qh3838glO82AmRtb7yamwB3TUT06hXaEyFcqIBL/pJgy2WnyQL1Zll23H4u0Vss8AUfr jpAtJmDrKjAAOw9DO/5mB4wk/jW9XkBa1NOb9gcWczxVfIrWJjqfqIsTezU7AVacJgyE VYWGiogOdLJt3EfOzMrFZT3yNGOTqSxrtGouiF5ktExNV3jU9G1fBmt5WtXc6I0ShEbo uOmg== 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=VnFbSXt8NXHMK7BryRXLqHDAsVcv7CiPOttIOyLR2tQ=; fh=DnlA3c7v/Fe1peG8PnquA33y0So8rPwSiwdJIUPb8cQ=; b=OgulmgupVFLJqxCLurFZc/7C20T4ISz92qTHh5eyxEF+AIeGk3GEkcBA0UXSVTLHvF OYuGshsw2FLDlvNiFEnVHyBO15+CGWg2rL5yAVNvVP+LU3Atuv2lZxdbITOJlkaWfde6 9q2J3O7aii5MfHAFpqPP7nZ9aGV7r21KaA6mgnccxmo0/Urcu9WwXk1tw9teM7r2ur97 +7E6Fr5D3TslcVvRGm1skmIgbBbpCoiEcoataijKVE+tWL1XgqWe+ZLFtsfdC0drhPkT lNErG6WfzaIfS86zUKgdzXbztW59bwe5kZPeFNwGISsPDkeSION0VSE3YTlk7IGZW8uz JExA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=L61XKSSx; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r7-20020a63e507000000b0055390839e3dsi8964269pgh.528.2023.07.17.07.16.24; Mon, 17 Jul 2023 07:16:38 -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=@kernel.org header.s=k20201202 header.b=L61XKSSx; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231319AbjGQN0Q (ORCPT + 99 others); Mon, 17 Jul 2023 09:26:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231704AbjGQN0G (ORCPT ); Mon, 17 Jul 2023 09:26:06 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53024172D; Mon, 17 Jul 2023 06:25:43 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id EA40A6115A; Mon, 17 Jul 2023 13:24:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C1806C433C8; Mon, 17 Jul 2023 13:24:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689600268; bh=buEyDtOD+tAaVWRktB28z7fW6D13J5yAHEKQhMLZQu4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=L61XKSSxsznWwcDppB67UBRbXxw5UM0mEsoBltz2n5auT1pzJoo8sPFXI80yNg8eQ w0UlFS0z4UQNQNSUlF3vFWKacZp8xkn30u2kOlQ/xnGN1hf6z7Y8hvURby/TGNnhwP XP5sgBvpBukoqJoJphBnmewpOnhOW4zY8mlOT27EfRvVHOVXT8esXI4fiu/ky/67hY LJvAUReEu1iMKiggSpZxoWsTmkbHecl63tQBNF9QOyVfHOCIg5njyJSrzvX203jmOz 2gxwXoFfwfGxaKx6wcZlDnE8q9rqQ4cPkB0HAg1qpr4+wcqejc0vTOtJ2tmOoBp5KF wyHeyFIieC5tg== Date: Mon, 17 Jul 2023 06:24:26 -0700 From: Nathan Chancellor To: Naresh Kamboju , Greg Kroah-Hartman , Sasha Levin Cc: linux-stable , open list , clang-built-linux , lkft-triage@lists.linaro.org, Nick Desaulniers , Anders Roxell Subject: Re: stable-rc 6.1: x86: clang build failed - block/blk-cgroup.c:1237:6: error: variable 'ret' is used uninitialized whenever 'if' condition is true Message-ID: <20230717132426.GA2561862@dev-arch.thelio-3990X> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 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,T_SCC_BODY_TEXT_LINE 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 Mon, Jul 17, 2023 at 12:55:42AM +0530, Naresh Kamboju wrote: > Linux stable-rc 6.1 build failed x86 and i386 with clang. > > Reported-by: Linux Kernel Functional Testing > > Build log: > ----------- > block/blk-cgroup.c:1237:6: error: variable 'ret' is used uninitialized > whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized] > if (init_blkcg_llists(blkcg)) > ^~~~~~~~~~~~~~~~~~~~~~~~ > block/blk-cgroup.c:1287:9: note: uninitialized use occurs here > return ret; > ^~~ > block/blk-cgroup.c:1237:2: note: remove the 'if' if its condition is > always false > if (init_blkcg_llists(blkcg)) > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > block/blk-cgroup.c:1222:33: note: initialize the variable 'ret' to > silence this warning > struct cgroup_subsys_state *ret; > ^ > = NULL > 1 error generated. > > Links, > - https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-6.1.y-sanity/build/v6.1.38-599-g5071846d06ef/testrun/18327562/suite/build/test/clang-lkftconfig/history/ > - https://storage.tuxsuite.com/public/linaro/lkft/builds/2SfFoWj9NmKWHRijR0hcoXGjLhr/ > > tuxmake \ > --runtime podman --target-arch x86_64 \ > --toolchain clang-16 \ > --kconfig https://storage.tuxsuite.com/public/linaro/lkft/builds/2SfFoWj9NmKWHRijR0hcoXGjLhr/config > \ > LLVM=1 LLVM_IAS=1 > It looks like 6.1 needs commit b5a9adcbd5dc ("blk-cgroup: Return -ENOMEM directly in blkcg_css_alloc() error path") if it wants to take commit 3b8cc6298724 ("blk-cgroup: Optimize blkcg_rstat_flush()"). Cheers, Nathan