Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1556363rwr; Thu, 27 Apr 2023 21:06:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4HhwtEuxvyiu04PdXE9MkcNcFzOQ9isJ7HPCc/csc45yA4uccTTobkXdEhuMgKLrUpuZxc X-Received: by 2002:a17:902:9b87:b0:1a6:3c64:513c with SMTP id y7-20020a1709029b8700b001a63c64513cmr3220977plp.37.1682654768914; Thu, 27 Apr 2023 21:06:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682654768; cv=none; d=google.com; s=arc-20160816; b=z9nN0/9LJroyUfjCLn6i25hbhM36aoVzpChyoaPT0BNGrQ9+QUcZ3jWhp1pVPBJ6wR JMRIcxeTFn5aWpTxRPE9DnRWKsSy65ZCLtNlGtHKHmjSY6SichwvXOYf7T8qf0kTa2Oc B4hDz4KS//z4ojKkSVirxK8dKsLUEGYoUip12zbIzltWGp/NwkYMjddEDI1tSVXOPev4 dBKyhIrm6vSuVEoLu79r0LXoCASxm/eagd6/EpchZ37SkL95HvEA1Pf2G2TnnxWH1FNQ kopPQ7hmwF4zBDrc8bIndyKjmFo3qdicr0H6hIl0sjAWogp8HpDl4hyvijQjan408L9T qT9Q== 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=rJG4QUYVQuDw+rva/sHAU7EUHGEMW5bSJq1Bth2ZQU0=; b=Tjmfb35xFz09ROomxjbqyVMM/jEMqGsxMQwLPFiOTbsa33beVltaXjV4Fnog7SXRe7 8FZSvvldxcZNmwbn3iXnaJ9w7xAiSlDO4HJuVzi7Dda6rl52fEXMt1vusml1zcMGGH8k vN17sBLSwQEfNZjG6+j1UtLYEzK1J9ymRUTlikwShglphIfjD9p4AB4ANSHYOGf9FPL3 5Goy63Y8Qzk2GiIgbYbZLmK4IOCPmHIGM8smHHbQINTEMvNlRh0pbfmhKY+M7BMYC8N0 U8Dn6oHK1ghMvvsEk7ZporQbcllTMu1C9ZEopENapCJf+QsACobRIsRdSANw6kHT4PJf wd7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mit.edu header.s=outgoing header.b=J1Jd5zfe; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mit.edu Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z3-20020a170902d54300b001a812c741d2si20189894plf.168.2023.04.27.21.05.56; Thu, 27 Apr 2023 21:06:08 -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=fail header.i=@mit.edu header.s=outgoing header.b=J1Jd5zfe; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mit.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229570AbjD1EAz (ORCPT + 99 others); Fri, 28 Apr 2023 00:00:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229475AbjD1EAw (ORCPT ); Fri, 28 Apr 2023 00:00:52 -0400 Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEFDF26A6 for ; Thu, 27 Apr 2023 21:00:51 -0700 (PDT) Received: from letrec.thunk.org ([76.150.80.181]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 33S40KQ9013520 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 28 Apr 2023 00:00:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mit.edu; s=outgoing; t=1682654422; bh=rJG4QUYVQuDw+rva/sHAU7EUHGEMW5bSJq1Bth2ZQU0=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=J1Jd5zfec1WBMNm05X/qSmdzaTxVeaecIiVZ+yhXQpvQusNJBV1XeDAYp/XD0uSff SRmwslNx3WpEjyT6FbJDIR6RAiqzJAgq2ErL08yMo/yFw8ikvTCOebO8im0cblhnk0 HccfC0pEa/vVbmqINyXHfNW5j/1Kzts0Ox1AHzWYEwd+mg5JhUHSoLvVT9A1ijfjNo uVjmEtQCP8+0A4DuixGffnQXUr1Ph2gSvJDgny9thd9tdH11J6/kzMtu+uzJXPubny vILcmzzWoLAJ1YJluS8K/1c34YV5L0T8SWZ/SUt/FKb5GGCTlmnfxdjgjYdh9X1oTx TLE7LoNJ6tD/w== Received: by letrec.thunk.org (Postfix, from userid 15806) id A67198C0208; Fri, 28 Apr 2023 00:00:19 -0400 (EDT) Date: Fri, 28 Apr 2023 00:00:19 -0400 From: "Theodore Ts'o" To: Nathan Chancellor Cc: adilger.kernel@dilger.ca, yanaijie@huawei.com, linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ext4: Fix unused iterator variable warnings Message-ID: References: <20230420-ext4-unused-variables-super-c-v1-1-138b6db6c21c@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230420-ext4-unused-variables-super-c-v1-1-138b6db6c21c@kernel.org> X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Thu, Apr 20, 2023 at 09:51:24AM -0700, Nathan Chancellor wrote: > > The kernel has updated to gnu11, allowing the variables to be declared > within the for loop. Do so to clear up the warnings. This is OK for this patch, since it's fixing a patch that landed during this merge window, and it's unlikely this cause problems with any future security patches that will need to be backported into 5.15, 5.10, etc. --- or result in patch conflicts that will be any worse than what we already have. However, for anything that might be something that needs to be backported into LTS kernels, or be in code that might get be involved with a LTS backport patch, let's not use any C11/GNU11 whenever possible. - Ted