From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4D4A0C433EF for ; Thu, 14 Apr 2022 20:29:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346305AbiDNUcS (ORCPT ); Thu, 14 Apr 2022 16:32:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240868AbiDNUcQ (ORCPT ); Thu, 14 Apr 2022 16:32:16 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F1C799EE5; Thu, 14 Apr 2022 13:29:50 -0700 (PDT) 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 ams.source.kernel.org (Postfix) with ESMTPS id 276ECB82B9B; Thu, 14 Apr 2022 20:29:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7F5B0C385A1; Thu, 14 Apr 2022 20:29:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649968187; bh=UK4HRG23mKXLkm6rpA/BwBKA58oQpPcAKodZxTGowVc=; h=Date:From:To:Cc:Subject:From; b=SLWFsfBhjUDrZOeseBKhf86OMoxqGwYiiHp9g46ZfdfQi294OzElbzNP00dxuxja7 3SybmIJhXwaR9bHKdI75mKsHYIOT2Sy4Ls3E8SJ1AorOo5goOnpU88HDwgQM0ya4cE /q6eDpNc8nFgn3bm+xQNnVASm3nhuFznag0ndeaWZ+8el+ptENcLyRiAoz8X8pLUHx pUsgCpQD/wYbp+K1qz4LNcy2xnnqO/dy8AsIiRmXOXricEiyC65NuV2r3Cby8WbVxa BkVjFzO1DY+o3qwKN7DgegWHbxkOBUdrtRwxDiDXwdqKAHSrCCjPVTkCYugawbts++ U+JkRVQaMNYkQ== Date: Thu, 14 Apr 2022 13:29:45 -0700 From: Nathan Chancellor To: Greg Kroah-Hartman , Sasha Levin Cc: stable@vger.kernel.org, llvm@lists.linux.dev, Nick Desaulniers , linux-btrfs@vger.kernel.org Subject: btrfs warning fixes for 5.15 and 5.17 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org Hi Greg and Sasha, Please apply ad3fc7946b18 ("btrfs: remove no longer used counter when reading data page") 6d4a6b515c39 ("btrfs: remove unused variable in btrfs_{start,write}_dirty_block_groups()") to 5.15 and 5.17 and cd9255be6980 ("btrfs: remove unused parameter nr_pages in add_ra_bio_pages()") to 5.15 (it landed in 5.16), as they all resolve build errors with CONFIG_WERROR=y and tip of tree clang, which recently added support for unary operations in -Wunused-but-set-variable. They all apply cleanly and I do not see any additional build warnings and errors. Commit 6d4a6b515c39 was specifically tagged for stable back to 5.4, which should be fine, but it really only needs to go back to 5.12+, as btrfs turned on W=1 (which includes this warning) for itself in commit e9aa7c285d20 ("btrfs: enable W=1 checks for btrfs"), which landed in 5.12-rc1. Prior that that change, none of these warnings will be visible under a normal build. Cheers, Nathan