From patchwork Sun Apr 30 22:54:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Palmer Dabbelt X-Patchwork-Id: 1775398 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org (client-ip=2404:9400:2221:ea00::3; helo=gandalf.ozlabs.org; envelope-from=srs0=nxex=av=vger.kernel.org=linux-ext4-owner@ozlabs.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=rivosinc-com.20221208.gappssmtp.com header.i=@rivosinc-com.20221208.gappssmtp.com header.a=rsa-sha256 header.s=20221208 header.b=yNvFmJli; dkim-atps=neutral Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Q8hWr60nLz1ymp for ; Mon, 1 May 2023 08:55:36 +1000 (AEST) Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4Q8hWk6z92z4x45 for ; Mon, 1 May 2023 08:55:30 +1000 (AEST) Received: by gandalf.ozlabs.org (Postfix) id 4Q8hWk6wb4z4x47; Mon, 1 May 2023 08:55:30 +1000 (AEST) Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: gandalf.ozlabs.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: gandalf.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=linux-ext4-owner@vger.kernel.org; receiver=) Authentication-Results: gandalf.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=rivosinc-com.20221208.gappssmtp.com header.i=@rivosinc-com.20221208.gappssmtp.com header.a=rsa-sha256 header.s=20221208 header.b=yNvFmJli; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4Q8hWk38lbz4x45 for ; Mon, 1 May 2023 08:55:30 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232135AbjD3Wz3 (ORCPT ); Sun, 30 Apr 2023 18:55:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231834AbjD3Wz2 (ORCPT ); Sun, 30 Apr 2023 18:55:28 -0400 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83F71E44 for ; Sun, 30 Apr 2023 15:55:27 -0700 (PDT) Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-1aaf21bb427so3609795ad.1 for ; Sun, 30 Apr 2023 15:55:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20221208.gappssmtp.com; s=20221208; t=1682895327; x=1685487327; h=to:from:cc:content-transfer-encoding:mime-version:message-id:date :subject:from:to:cc:subject:date:message-id:reply-to; bh=FTeQMFZNuHYlYUUxNwsXVAMIwRhL+BegLWUet8ZwLDA=; b=yNvFmJliaB3az3prptc5S/KsvuiSnjFHW/uLnZaPh/KhVTNIA7v11bBlSk4F2zuLUp tPAYnIUo90DXC/MpTXrbM1uIKy7hTIqmqz+vMr+0mUHJaKsP07SVjUs5TAq+/htuKnBC /TlxqboLZpapVPUIvF+Z9zDh58n/QmTmR3WaHT+rkWPP7sRinUxl4AGFTwG5u9pTaXSg QcJHq0IhbqNfNiOY8hhTBTvniwR1B80JsjiS+5vbXGWe/Gleqa2j+kDGxAgtorOj0O9R bo2uNokVTaIw3ZSCjK0oInPXJpBaJ36V6no+Yeo62cz1b1dWR4Hrj3JmdhAqJZyB9TAH HVQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682895327; x=1685487327; h=to:from:cc:content-transfer-encoding:mime-version:message-id:date :subject:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=FTeQMFZNuHYlYUUxNwsXVAMIwRhL+BegLWUet8ZwLDA=; b=e5OakFAHHeDk3VzoQToxIcyu5hdPU5gESsHEc7hCPj+KKmeC15oYuDQS87giykXYuF oXa/ED2GIWvR84AMpkPkqR12LVVvVojRKq6UAyjJN42jE9x1c9Eu4lPd8Y1fbzATs3hu LSqQlme3a3JjDY7CR+FF8eqU5hqI4QVyf6gpgZQXipvjf36EPKnL6K3ZQxHVYj5JxU3f PFBC8AfH4BnvWkS014bpFijilYq2qiV3qP27Hkvyw54wnjDGjISYy5wLWB3egU7kgJK9 x92J8NAh8W+vk4ybXfR2RTxUKDdL0y+A42aCcTUgGN2yhV5kzobfIbbnmPWOA1iDNA1a 3o/g== X-Gm-Message-State: AC+VfDwdedrG6f2zmQmezhfSqyrX+Kmm89xKUqYa0o22tz4UHfpNbOfL APLaaVEsSWjVWOz+Zq6/o54vAQrLmA9aokllYPQ= X-Google-Smtp-Source: ACHHUZ4JgrtGlDr4E9YDi9Q8WEAgwskYEPQJbd0qrbUNJWIARzpNdTrFAfK3tnzkPdn8CmTcyGtNDA== X-Received: by 2002:a17:902:da82:b0:1a6:68fe:2ea2 with SMTP id j2-20020a170902da8200b001a668fe2ea2mr16130744plx.2.1682895326902; Sun, 30 Apr 2023 15:55:26 -0700 (PDT) Received: from localhost ([50.221.140.188]) by smtp.gmail.com with ESMTPSA id o10-20020a170902d4ca00b001aafde0cd8fsm62431plg.53.2023.04.30.15.55.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 Apr 2023 15:55:26 -0700 (PDT) Subject: [PATCH 1/2] ext4: Elide an unused variable warning in ext4_put_super() Date: Sun, 30 Apr 2023 15:54:55 -0700 Message-Id: <20230430225456.19790-1-palmer@rivosinc.com> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 Cc: Palmer Dabbelt From: Palmer Dabbelt To: tytso@mit.edu, adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,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-ext4@vger.kernel.org i is only used under CONFIG_QUOTA, so mark it as __maybe_unused to avoid a warning. Signed-off-by: Palmer Dabbelt --- fs/ext4/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ext4/super.c b/fs/ext4/super.c index d03bf0ecf505..09f3e1d714d6 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -1259,7 +1259,7 @@ static void ext4_put_super(struct super_block *sb) struct ext4_sb_info *sbi = EXT4_SB(sb); struct ext4_super_block *es = sbi->s_es; int aborted = 0; - int i, err; + int __maybe_unused i, err; /* * Unregister sysfs before destroying jbd2 journal. From patchwork Sun Apr 30 22:54:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Palmer Dabbelt X-Patchwork-Id: 1775399 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org (client-ip=2404:9400:2221:ea00::3; helo=gandalf.ozlabs.org; envelope-from=srs0=nxex=av=vger.kernel.org=linux-ext4-owner@ozlabs.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=rivosinc-com.20221208.gappssmtp.com header.i=@rivosinc-com.20221208.gappssmtp.com header.a=rsa-sha256 header.s=20221208 header.b=Eg+K6DAK; dkim-atps=neutral Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Q8hWr72MWz20fW for ; Mon, 1 May 2023 08:55:36 +1000 (AEST) Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4Q8hWl1cKLz4x47 for ; Mon, 1 May 2023 08:55:31 +1000 (AEST) Received: by gandalf.ozlabs.org (Postfix) id 4Q8hWl1ZPyz4x49; Mon, 1 May 2023 08:55:31 +1000 (AEST) Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: gandalf.ozlabs.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: gandalf.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=linux-ext4-owner@vger.kernel.org; receiver=) Authentication-Results: gandalf.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=rivosinc-com.20221208.gappssmtp.com header.i=@rivosinc-com.20221208.gappssmtp.com header.a=rsa-sha256 header.s=20221208 header.b=Eg+K6DAK; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4Q8hWl1TTnz4x47 for ; Mon, 1 May 2023 08:55:31 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232139AbjD3Wza (ORCPT ); Sun, 30 Apr 2023 18:55:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232132AbjD3Wz3 (ORCPT ); Sun, 30 Apr 2023 18:55:29 -0400 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88559E45 for ; Sun, 30 Apr 2023 15:55:28 -0700 (PDT) Received: by mail-pj1-x1029.google.com with SMTP id 98e67ed59e1d1-24dfc3c662eso262675a91.3 for ; Sun, 30 Apr 2023 15:55:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20221208.gappssmtp.com; s=20221208; t=1682895328; x=1685487328; h=to:from:cc:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:from:to:cc:subject:date :message-id:reply-to; bh=DJluIybvv9+4VROOfwa3fnVto2xWOyknEp0NMGOCLUI=; b=Eg+K6DAKuNhW3+GWXgkQfSni+v9+ZwjUG8Y4aODgbgX76uAH9TZk/WQEA/DwO7AKgn Rca9tiDdflX6lEkA96MLZPerhxqd4HPHchPKIZvJCiE0YPQcSfkU6d5bumzH+gEE3o2Q h6bXQY5+5LjTA+XrC3xR+Hj0DLX24dpn3qj00YvcR8ec2sZ3XKEevlVzAhoybHgUjUM7 8iHlrpqRwdXqxL6YWSgYOMNEXTcLoZve/k7FLMcKZfaKKBsxw9vsACUaolUfhtoUhgyI 2mUHE0W4prthZPwxxOxK6YBSEEXC9OnbSn85QwWrktY+69TxW9r7aWHLwJSshTO77CtE JVXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682895328; x=1685487328; h=to:from:cc:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DJluIybvv9+4VROOfwa3fnVto2xWOyknEp0NMGOCLUI=; b=JVeKyS3jguH68eR4azCSsrgS031wFBaUshnvyKIn7RJdBukURZzoFw+YAX9WdpEbTK 5HM1Vqo3l5FVG7E41MSRwJVzXOiuUhkC6ZhrEFLaTLpPEHRkDXR0tfbiJBeP93/nIZHS tg5CE4cE+DEDrsTeDHRJjq9u/W617X0bDEX3byMB1K6dxvesjw/LB9PYy/APxDgnccg/ GhJB2YzvMhomtEgRgtOlRp70iw6tcDK+prOen0wC+o6aMLvh9S106pNp/pkE6HPktNti mcfoO1KmLi2W1K6HgKCG7wOacdg6ABytklQBYW1Mn035nWYXiQo6dx+EsYGo/jXa8TU1 WzTw== X-Gm-Message-State: AC+VfDzmtd3SQ5RI3jRYliw7xbYaFnpMK5+Tj3ulRkLzW5iFiCGGEth4 OeSBwlvSY18JVbE6ztOKluYETw== X-Google-Smtp-Source: ACHHUZ4Is1upx/2QNKfEAcbuQ8zwKxKcGj6UjDSGEY9Gd4DQQjYrOCwD71HDEkCj70YNvfmD7l4vKA== X-Received: by 2002:a17:90b:190d:b0:24e:9e6:7067 with SMTP id mp13-20020a17090b190d00b0024e09e67067mr348687pjb.7.1682895327981; Sun, 30 Apr 2023 15:55:27 -0700 (PDT) Received: from localhost ([50.221.140.188]) by smtp.gmail.com with ESMTPSA id k5-20020a17090ad08500b0024e07ae2cfesm176082pju.38.2023.04.30.15.55.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 Apr 2023 15:55:27 -0700 (PDT) Subject: [PATCH 2/2] ext4: Elide an unused variable warning in __ext4_fill_super() Date: Sun, 30 Apr 2023 15:54:56 -0700 Message-Id: <20230430225456.19790-2-palmer@rivosinc.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230430225456.19790-1-palmer@rivosinc.com> References: <20230430225456.19790-1-palmer@rivosinc.com> MIME-Version: 1.0 Cc: Palmer Dabbelt From: Palmer Dabbelt To: tytso@mit.edu, adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,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-ext4@vger.kernel.org i is only used under CONFIG_QUOTA, so mark it as __maybe_unused to avoid a warning. Signed-off-by: Palmer Dabbelt --- fs/ext4/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 09f3e1d714d6..3bf2449befcc 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -5197,7 +5197,7 @@ static int __ext4_fill_super(struct fs_context *fc, struct super_block *sb) ext4_fsblk_t logical_sb_block; struct inode *root; int ret = -ENOMEM; - unsigned int i; + unsigned int __maybe_unused i; int needs_recovery; int err = 0; ext4_group_t first_not_zeroed;