Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35642400rwd; Mon, 10 Jul 2023 10:15:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlHNhbq7/k7tZj31EHX0yERj3Be/ve5nQe4BFCdaygVXY9NB5JQyGKAZoz+rBQOhm8COvjJ9 X-Received: by 2002:a05:6a20:96d1:b0:12c:a57:6e46 with SMTP id hq17-20020a056a2096d100b0012c0a576e46mr9408454pzc.18.1689009332096; Mon, 10 Jul 2023 10:15:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689009332; cv=none; d=google.com; s=arc-20160816; b=M3wPShcjECAikzY0cYFFx9eW0PNxcBb/Vz5M8BWmIaY6Xtk25eCbNmnGWl8gUa7D8E rlcRmgKRTreJNRDstWVa9+jsPE2caz75/jxIjeGvDv35Yc4rh6vequ2Za1klCZKBcmnx CqnVWxNHqA7sDBfzCtONNbYzYvUr9zPp121/d7jz/zm/R0z8nbm1z4BLKnJTukYzFqQD m9KSI6/XEs+F7t9UAGkT+WDXc6WzOUFgNBryLmMKSFYgxIwpQGoEyxwXqoh9h2xCezn+ odks7i8uwd1phz7PdvQ/t1KpvPPi9bUdx9towXwYDlLErrDDfYECFWMGj1aqWTDtLrze BsQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:reply-to:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=kOtTX6s7w9z7D6aTHjb/pLRsGubENakrzEs/lihRqvc=; fh=E4vSS/ItmPLg7s67g0CeMPdMPjetf6uayDQwfHPVFIU=; b=mBHs+r4LIloAbocYQ72cBaKebUlhMWXQ5xCwV56D3/VoGHVVhUAFCJZvtfzaTmTXIn x1A2PdDGuhE3mQj3OUvZNvFfV95lQpxjZ+L78n5rEqMHAI8LOPUMrLJmt2bSAsEJfuho YujJqecqORqprU47u2gXmkTTq07ZevoJ5hxnsVLrl6j70ciUkM5mkftYfq3GTJnmR3d5 H3+L4C2cwcC1i9PbpM+y5SVCFqaf1hA9ux2G8pWzgJdFWDv5Cw7nU4LIA2ziDm3Jt4Az Z2YGPPH4uH3aTGpVtIO58NWPUX04CxNzHi8y5/tmRNJrv/JrujyDYjbXjz3iCv4OulNc wB0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=i0AXtNan; dkim=neutral (no key) header.i=@suse.cz; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a2-20020a056a001d0200b006762f8fe108si57580pfx.111.2023.07.10.10.15.20; Mon, 10 Jul 2023 10:15:32 -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=@suse.cz header.s=susede2_rsa header.b=i0AXtNan; dkim=neutral (no key) header.i=@suse.cz; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230308AbjGJRBq (ORCPT + 99 others); Mon, 10 Jul 2023 13:01:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229679AbjGJRBp (ORCPT ); Mon, 10 Jul 2023 13:01:45 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D733BD7; Mon, 10 Jul 2023 10:01:42 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 6326D22395; Mon, 10 Jul 2023 17:01:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1689008501; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=kOtTX6s7w9z7D6aTHjb/pLRsGubENakrzEs/lihRqvc=; b=i0AXtNanxc92LvaBMNLrkL+g2Hw11JA1Q/s0KG3ESKayp5bleB9MqynOl7k0FceGmJ4ydg cSgdkWqIAWaDWaoqfBxiL8NuG3U5a1s0u6912uTcIrk5i6k0K1ujTNmuPjKoKehTwpHWlB QVX4La3o1NvN+y5qswzakw5YuncmZDg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1689008501; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=kOtTX6s7w9z7D6aTHjb/pLRsGubENakrzEs/lihRqvc=; b=DB0AuoCvyPdxv0/oFtG7v1HQPXaYNpA1K42+/sp5Sec3cycozrj1uMYe0PQedXyh2cwM1a G9nhijO99RBrKpBA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 2AFEB13A05; Mon, 10 Jul 2023 17:01:41 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id qHi8CXU5rGSkCwAAMHmgww (envelope-from ); Mon, 10 Jul 2023 17:01:41 +0000 Date: Mon, 10 Jul 2023 18:55:06 +0200 From: David Sterba To: Arnd Bergmann Cc: Chris Mason , Josef Bacik , David Sterba , Arnd Bergmann , Johannes Thumshirn , Anand Jain , Filipe Manana , Qu Wenruo , linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] btrfs: avoid Wmaybe-uninitialized warnings Message-ID: <20230710165506.GA30916@twin.jikos.cz> Reply-To: dsterba@suse.cz References: <20230705140117.795478-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230705140117.795478-1-arnd@kernel.org> User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 Wed, Jul 05, 2023 at 04:01:08PM +0200, Arnd Bergmann wrote: > From: Arnd Bergmann > > The -Wmaybe-uninitialized warning option in gcc produces tons of false > positive warnings when KASAN is enabled, as that turns off some required > optimizations. Which version of gcc produces the warnings? I have KASAN enabled and don't see any warnings, with gcc 13. Making the warning conditional would effectively turn it off for me which means I can't catch the warnings early. We do get reports from various build bots with various arch/compiler combinations and fix the warnings. If there's a know minimum compiler version where there are no reports (or reasonably small nubmer to fix) then I'd rather make the condition bassed on that, neither on KASAN nor any similar feature for that matter.