Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5939116rwp; Mon, 17 Jul 2023 11:58:10 -0700 (PDT) X-Google-Smtp-Source: APBJJlFYZWC9Eo5+nHOu0UysX/SpYqTK+kh0Q98pjS3L858UGyjoMOVGLa1pCe0ce+TxX+qF3NmN X-Received: by 2002:a17:903:11c6:b0:1b8:a67f:1c0f with SMTP id q6-20020a17090311c600b001b8a67f1c0fmr17038467plh.39.1689620290261; Mon, 17 Jul 2023 11:58:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689620290; cv=none; d=google.com; s=arc-20160816; b=v0gngB35w68qgb48xSf85xRtXLviweTUfGvp4aswv5GzNCwGuEcoh2r9Pkoqls49xm h8SJYJ57reF4BPks8+tx9cD+BkkPVHCG4K2izNBEZlRBPt2/XNpEbjkws35zbMZqnPF8 4Ef4YTbRaM1sbbR5xCMS9QnvrgNmmddJLaYP3w9Z1dRC/Tb7FFVd8Mw3MSW4v/JmW+1a vXba9EfnlKgRMt+JOw+3CTUOG2TvNyImxyiD5WlS0JiQskBGunEMhoRmpD0sm5/6FmZQ K1VBEAXxjYSVlhgExG5cU72usii7oAGech0qiMKz7P6HqX2CwYBzdKzGJ6RTrUkfHgr2 /EAQ== 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=nVCjqjBvEo4u3xzplTb73ZclyxDdaDfUWoGiREAOJUY=; fh=0COVXccjq3ECJxMq9anVxNcRq1zJNg9e4XASB8SCHd4=; b=LhMWi4MB7ud6aKlcpiCSCYn7jtVrF+D1oOOr9ETzJ1rEJ8o4CFj4clUZ7hQ89djwhD Kx37S5EUUl1miN3QDoBI61FgjukvPXT/iEX8ldQgj+AgFmuc925UxMco07t10w+4sWQy O3TPkA1gUKvogBaof+RpDRTBuxa2d05H1HMexTTi3y+fcvgsCL0IHoGCTj3ROOz7Pb26 UOQ9ahUxokoCQfK9X64Qu9Ho8P0ZLy2w75ubzuqOi3JPd3sohOlSTL3IdhUeB9CM/Vbn pzImHSyAb2gU3epBM8b5qx9Jn7ps6gl3LI8DXluaRlD232rBABmoaLtQ4cbgPGWXz4ic yErw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=O1OJZgHQ; 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 j3-20020a170902da8300b001b8ae11bf57si274142plx.491.2023.07.17.11.57.56; Mon, 17 Jul 2023 11:58:10 -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=O1OJZgHQ; 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 S231207AbjGQSr0 (ORCPT + 99 others); Mon, 17 Jul 2023 14:47:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230291AbjGQSrW (ORCPT ); Mon, 17 Jul 2023 14:47:22 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12EE799; Mon, 17 Jul 2023 11:47:22 -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 5E749611E7; Mon, 17 Jul 2023 18:47:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 40684C433C8; Mon, 17 Jul 2023 18:47:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1689619640; bh=gG8Qtg+6gAPECuyv5M9ybxIcpPtXFhZu0+wr3l878S4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=O1OJZgHQjwWIylW/GnYltW3mG3ittxtGjzkGYptUF9FmQKinWYSQOw1GTFoTrVb1v QGdl/N9RdiLNjrh7dzcHCEXn3ZCer9cOQ6jFpyHLAf+DJifLGY7Hz4xipEL6mydEqM rhzF6Km/b1jU0Yrq3o4hZ+Bf0RfeNkv7CAngbB54= Date: Mon, 17 Jul 2023 20:47:17 +0200 From: Greg Kroah-Hartman To: Nathan Chancellor Cc: Naresh Kamboju , Sasha Levin , 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: <2023071705-enforced-overplant-fd80@gregkh> References: <20230717132426.GA2561862@dev-arch.thelio-3990X> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230717132426.GA2561862@dev-arch.thelio-3990X> 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 06:24:26AM -0700, Nathan Chancellor wrote: > 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()"). I'm going to drop the offending patch now, thanks. greg k-h