Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4058409rwr; Sat, 22 Apr 2023 19:35:25 -0700 (PDT) X-Google-Smtp-Source: AKy350bzaJWNfoufE40dZA3fQteys+6JhYVUcNtFZfMgTrjkbxNCv+WLmgmNUipXyAwx8hwaEEgE X-Received: by 2002:a17:90a:1d0:b0:240:cf04:c997 with SMTP id 16-20020a17090a01d000b00240cf04c997mr9015588pjd.2.1682217325166; Sat, 22 Apr 2023 19:35:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682217325; cv=none; d=google.com; s=arc-20160816; b=ojoUbvztrZkXBNaF2EPLewwi7YYos17c5GXo4uLgdASNqyXiI3w42defOi9Tnk8dvP /cjv4p/wq5IY3wDvpnk5AjOcVtixCUYDmPUIKExEfP89HGLyTHcHjJuTqTN1VZb/OCZW lec7CE1NteZrUemgE1PweUwvzRUl0jWZUF7Ax5WSlr7zZJyLn5m5S2FulQjgT7Lfa0y0 HLLCtp9cwKGwD0iNGGWffiUYsJmgx8IAzdFVAu7aEyjqykAwJ3ajxn7pQUyvB6AfyKUe Fj3Mkd8C7islRkw08yiqgmQ7uyd/AdW4rp1UGvfJGse6cxX7xlMUTP9px2wH+RWAfjRy mNPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :from:content-language:references:cc:to:user-agent:mime-version:date :message-id:dkim-signature; bh=SD+cu19efRH/swo6YlAnL1pYIvVQ+HyMj0r6uTC3UjU=; b=UjWbkLqeMwFGScqhnSkf12olf2yvhPaUNPoy2CNY4siCtyoTEUaspmCAz/ch7wJmr2 48ToW1eFsnrrGV3iapWZmtOoLacjntTmeNfqIE1fgmb0jdm2rd1pUJVR7GPJ+KJbFBoU ywyLv//CwvG6YgFGRGLWjjp6FuZX+qqawsYgkNPyYu5tHM/GZsTg2M3ugv2SKdd2LZOX rpwbPHWdCs87EFW4DxTOtJF0h+Vy02IreHY6lpZyDQu0mqmBjz6I1faJP/Pp+2xPJzaw DXACETzHivVsF9t8tjI2da1cQNlzo8g0WOq5dGb4BuTTejPaAeGBcJQE1+W+tBCpGwx+ yh2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gnuweeb.org header.s=default header.b=CSFV+zOZ; 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=gnuweeb.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p10-20020a17090a868a00b002369d39671fsi8009598pjn.160.2023.04.22.19.35.14; Sat, 22 Apr 2023 19:35:25 -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=@gnuweeb.org header.s=default header.b=CSFV+zOZ; 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=gnuweeb.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230071AbjDWC1i (ORCPT + 99 others); Sat, 22 Apr 2023 22:27:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229556AbjDWC1h (ORCPT ); Sat, 22 Apr 2023 22:27:37 -0400 Received: from gnuweeb.org (gnuweeb.org [51.81.211.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64ACC1717; Sat, 22 Apr 2023 19:27:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1682216855; bh=TfWcaPmoDuhSCE6hW+wduHuwMC5aJ3DDU6N4QD3d+Pw=; h=Date:To:Cc:References:From:Subject:In-Reply-To; b=CSFV+zOZPUR4emS5UgsShLmELXOC47132AYTrq5Vpi8NL5qUJ+Ev1Q6o5iNwwnnBp MjK2M6mgd59iO5XcPIJo+P4Ay5baO2e0X3bgcW877mGyVyVw+kzam+cvtdx1vlRU4y NDrn9onMJTPrXXFYAX7I6r5Soqa47Y3xTwP1dsKntc383sLUkGUgqJYCGUF2rjw9li GCagKursDN62VGDh5f+Sm3LYWAtW18eXMfKBy4q5W4Dx1clfbC9us2lD2jVzp0a6wO BsEyTdHN/LUsRLTKTJ36UXIwL03CKPo57hh9NWpRP+Ei9p5hqe5zC5s/B4Owh3Gx1S W9km3qZcp6vMg== Received: from [192.168.238.80] (unknown [182.2.68.80]) by gnuweeb.org (Postfix) with ESMTPSA id 4280B2457F9; Sun, 23 Apr 2023 09:27:33 +0700 (WIB) Message-ID: <4b35f3a4-9972-b7f0-287f-165a817c0f73@gnuweeb.org> Date: Sun, 23 Apr 2023 09:27:30 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 To: Linus Torvalds , David Sterba Cc: Qu Wenruo , Josef Bacik , Memet , Linux Btrfs Mailing List , Linux Kernel Mailing List , GNU/Weeb Mailing List References: Content-Language: en-US From: Ammar Faizi Subject: Re: [GIT PULL] Btrfs updates for 6.3 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_PASS, 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 2/21/23 4:02 AM, Linus Torvalds wrote: > On Mon, Feb 20, 2023 at 11:26 AM David Sterba wrote: >> Other: >> >> - locally enable -Wmaybe-uninitialized after fixing all warnings > > I've pulled this, but I strongly suspect this change will get reverted. > > I bet neither you nor linux-next is testing even _remotely_ a big > chunk of the different compiler versions that are out there, and the > reason flags like '-Wmaybe-uninitialized' get undone is because some > random compiler version on some random config and target archiecture > gives completely nonsensical warnings for odd reasons. > > But hey, maybe the btrfs code is special. Maybe it's too late for 6.3. So please fix this in 6.4 and backport it to 6.3 stable. If someone fixes it, kindly add: Reported-by: Memet Compiling with GCC 9.4: gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 Copyright (C) 2019 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Linux version 6.3-rc7: CC [M] fs/btrfs/volumes.o fs/btrfs/volumes.c: In function ‘btrfs_init_new_device’: fs/btrfs/volumes.c:2524:2: error: ‘seed_devices’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 2524 | list_add(&seed_devices->seed_list, &fs_devices->seed_list); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/btrfs/volumes.c:2621:27: note: ‘seed_devices’ was declared here 2621 | struct btrfs_fs_devices *seed_devices; | ^~~~~~~~~~~~ cc1: all warnings being treated as errors make[7]: *** [scripts/Makefile.build:252: fs/btrfs/volumes.o] Error 1 make[6]: *** [scripts/Makefile.build:494: fs/btrfs] Error 2 make[5]: *** [scripts/Makefile.build:494: fs] Error 2 make[4]: *** [Makefile:2025: .] Error 2 make[3]: *** [Makefile:357: __build_one_by_one] Error 2 make[2]: *** [debian/rules:8: build-arch] Error 2 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 make[1]: *** [scripts/Makefile.package:120: bindeb-pkg] Error 2 make: *** [Makefile:1656: bindeb-pkg] Error 2 fs/btrfs/send.c: In function ‘get_cur_inode_state’: fs/btrfs/send.c:1909:13: error: ‘right_gen’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 1909 | } else if (right_gen == gen) { | ^ -- Ammar Faizi