Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp578712rwb; Thu, 10 Nov 2022 05:01:32 -0800 (PST) X-Google-Smtp-Source: AMsMyM4SZ5uY7TVGcZzhcj6fnx6UobhAg7sZ6sTMEVNMaUX2/GE/J/h6X4eHoBgSS70vcLI1ElhO X-Received: by 2002:a17:906:1ec5:b0:78d:b3d1:183b with SMTP id m5-20020a1709061ec500b0078db3d1183bmr60919952ejj.709.1668085292329; Thu, 10 Nov 2022 05:01:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668085292; cv=none; d=google.com; s=arc-20160816; b=ojIMePqRTvxJhW5P6ib2fSJQ/sJGLJuefLNQ9r/sm7wxgf7SK717J1k0hdd9l+wmE8 0lrPzEvwgafYI2u+uJSSTko020szoQaK6qVIE3JHba7r83k91GIohoti9Da8hlb2wAx9 f8FhXkxBG2PrKupNW0a2OGWQKhh9L540Cz8RskWqLQVNuinuVW5ULZ3JtNEKDQXQJeLU nw1VBCCYH7PFW1txN6hoVyPrXl7l5Vl57hedVPWD8hqQpHEskJt7oS4nJcfunkITw3nW 2+FzXHcN0T02VGgyVgJC2MJfaHQHVgbi6eSSuvCMiaVOKBy+MDi3i5El0dLve9IbRujF ddZA== 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=efd+WP2/Q/nfvkztM8At7VI2KIyga7hknBvfuBNplkc=; b=jz9rLqmpWH5OTDtMrlpmMcfLrAZ7k5T1dYYdOvZf7cNDEge0kfr4wcHD64yLx9SH1J 6t9MKH4rrJdsQ/VV8KGGwZPG+rxHOTBVlM61SFAArC2NmGV7SFSlSObX4UU943mojySv 4+MP039SbRaLMcJ/mR1XawkuKDqISSYbHdocUsemSTnNKdjp5vGtR9YVawT2LVkKpgBY g0YyLrh+kxdnPQ2CDfqF75EEFZjqQl7wChz9dPd56pqvYtLwh9cC4kZv1pGeFl5yT4H8 c/28cu4T2VLkn3RtaXwDOpaJX8kfGpTuSPb+3lMARG7+3HkU+dpL+EOG3DvGix20of0e Kkrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=X7OBeTaf; 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 s4-20020a056402520400b00462e7873c10si18666974edd.337.2022.11.10.05.01.01; Thu, 10 Nov 2022 05:01:32 -0800 (PST) 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=X7OBeTaf; 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 S229867AbiKJMqs (ORCPT + 92 others); Thu, 10 Nov 2022 07:46:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229517AbiKJMqq (ORCPT ); Thu, 10 Nov 2022 07:46:46 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F147632BA9; Thu, 10 Nov 2022 04:46:45 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 8E363615D8; Thu, 10 Nov 2022 12:46:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 69FD9C433C1; Thu, 10 Nov 2022 12:46:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668084405; bh=AmZ6tHCpImbg6Vy4ACo1PQbNrrDox82e5K50AxZpNuk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=X7OBeTafIOzUbaAunGJQ2rqU8WowtnlOM/DY+i4E5OLfKChnbeCjhWTk7l/c/jL2m hx3me101CRRa9eV6v2w+zvD8sNjJ16SsluvSaqshFm7NmKnV/LUTTLxFdOpNGLEzOx G1Z4LunD8NRESHE8y0d9cxvUQjSbmK1YNLHk6SN6zNEY1PiyEKJqufxDm98ZWFwVdJ QOXzj3llitkkAkL+XZJMB5x5F6RF8vC0yyI5LpimAyACsYh44YpcuOJuaQXENv/gIt lzWTeXTsy2YOEA65HoNerkujMZDyOYu6WGyjHxMuKAwvdeoiUeRuNnkTJxADaHgLjR rO2iA6c9RADCw== Date: Thu, 10 Nov 2022 05:46:42 -0700 From: Nathan Chancellor To: Naresh Kamboju Cc: open list , Linux-Next Mailing List , lkft-triage@lists.linaro.org, llvm@lists.linux.dev, "Rafael J. Wysocki" , Viresh Kumar , Arnd Bergmann , Linux PM Subject: Re: x86: clang: acpi-cpufreq.c:970:24: error: variable 'ret' is uninitialized when used here [-Werror,-Wuninitialized] Message-ID: 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 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 Hi Naresh, On Thu, Nov 10, 2022 at 04:44:09PM +0530, Naresh Kamboju wrote: > [Please ignore email this if it is already reported] > > Kernel build warning noticed on x86_64 with clang toolchain [1]. > Build failures noticed from next-20221108 .. next-20221110. > > Reported-by: Linux Kernel Functional Testing > > make --silent --keep-going --jobs=8 > O=/home/tuxbuild/.cache/tuxmake/builds/1/build LLVM=1 LLVM_IAS=1 > ARCH=x86_64 SRCARCH=x86 CROSS_COMPILE=x86_64-linux-gnu- HOSTCC=clang > CC=clang > drivers/cpufreq/acpi-cpufreq.c:970:24: error: variable 'ret' is > uninitialized when used here [-Werror,-Wuninitialized] > acpi_cpufreq_online = ret; > ^~~ > drivers/cpufreq/acpi-cpufreq.c:960:9: note: initialize the variable > 'ret' to silence this warning > int ret; > ^ > = 0 > 1 error generated. Thanks for the report. I noticed this when it came down in next-20221108 and sent a patch for it: https://lore.kernel.org/20221108170103.3375832-1-nathan@kernel.org/ https://github.com/ClangBuiltLinux/linux/issues/1757 It just needs to be reviewed and picked up. Cheers, Nathan