Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2948394pxb; Mon, 4 Apr 2022 03:55:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxcoO5sD842lTk5RFFQ993ndId0WN59r9KpLCxbsrtWkoxnbZPdefv4wQxVT2TaxrnvJZ0Z X-Received: by 2002:a50:9fa2:0:b0:41c:d9c2:6b19 with SMTP id c31-20020a509fa2000000b0041cd9c26b19mr1998184edf.393.1649069736400; Mon, 04 Apr 2022 03:55:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649069736; cv=none; d=google.com; s=arc-20160816; b=G4u86tAUEcGSnbR0v5VOfAJVHxjySgQp/RzH/NDI3T0JnMNOvOm0XChqJVmca4too9 NmGXnXDRkwrpP5PgTO2QT+u0AxROOiFFEfh2Uj2yGM0jbwvYG5Ky0AOj8PxE9k4SI45U 17+9jntCnMG8xu8k+eK8RoPUshA/MKHndZYwP0wQyph0lyJlOYP/K8nu9rQHi41eFwVO bNMMYfNyQo+jccEeAG+EKUI9r2cYyod/n2rowBQp1wfHmF+t+1ludWaZjrZDCklCmXhU xSevFoX/LvhVqoHt8JmG8LS8jrljVLstPPViH3vF5dR8IIy6NWWot16mQhKwFYmfHBbO iscA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=1rFOz+whygw87QqNdKIUe0mawCMOnyiKe/ajAaJwqQ0=; b=BXDCFgsgOC+4h4z6rVQ7f6/r4UOPjDQyV5t/UJhOK/4eA8gfDx+UzzYTQSGhA/TaCS W0oT/GAl1/HD1s3IJenc5Jqt67YV11nolRi3K+cMikw68FLh1Daxcfi5B9ed/GmHCbjq QJLN17I+sHTtfJygZ2vdXsGcp32F5UrB8YiWsSfpnqbrcFpaofp6rzWIVBd5KblEcU7i k5ObNSSt6yQIpvjIeV422JTtZu4LY6zYIu1exQirj6d+54VCy2oJ8raPvKVJXupQC3Vh TiEcOEwxzFf5tMpHIXl+Zg/2B0CcNsBaTv1Iy5bZfWjJuux5s3tN4gK3Ex2Vev7wlBAg ybSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=BkT+hohg; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hh21-20020a170906a95500b006df8839b405si3094011ejb.640.2022.04.04.03.55.11; Mon, 04 Apr 2022 03:55:36 -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=@gmail.com header.s=20210112 header.b=BkT+hohg; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243076AbiCaXll (ORCPT + 99 others); Thu, 31 Mar 2022 19:41:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240168AbiCaXlk (ORCPT ); Thu, 31 Mar 2022 19:41:40 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D36F19D63D for ; Thu, 31 Mar 2022 16:39:51 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id i16so2369226ejk.12 for ; Thu, 31 Mar 2022 16:39:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=1rFOz+whygw87QqNdKIUe0mawCMOnyiKe/ajAaJwqQ0=; b=BkT+hohgrsNHQmrOE7TF1hF2tfSk+JERhkzFEr09TnJI5Gk2SBU0QAJ7LX13mijAWS 1jLMD+chhQYsg5P7Js5lh/1Xy/JcZXcSA+c2T1adk2G8fs2h1bTPITvhwTM+A/WZMT56 EtOSn2TjfZp2N8UuWYfx6SVkfPTVEHq4a4El+WHBC2gLTiSSmxO1jS4HyBGF9eRX1xQI U1Y8U2gUT7VCWjG8TduYRExOTf77V8mtuAc13xdq3eUc4MD9vPWtbx3xHHWYFwipvA9n oxfGikm+C+VW/lVLAyWkhuhQOUUz2ohvqD/RPozk8hrgvwlE/PZfz2EnRU2RgBMuwcBZ cezw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=1rFOz+whygw87QqNdKIUe0mawCMOnyiKe/ajAaJwqQ0=; b=NoJbmbAfPrIimbgHcX37MrA60gnEVOUYJPZCla8FARVJhN0/dY2S8ob5m19NS6Ej2z Kvya925DJbyJ/+kssGn+SbTCsg9+n2Z3rZS4YNgijJsSKRsSAhwc3ANt2gPjxKUzcb3d xAI4W0eGANJMr9assYY7mPaEvEwY+KW2hgKJhJ6wDsoQRkExpYeeNMVlRvgiPvrEdRwQ sFgA29KQWXnWeqJKlpv32RUTdPjgssIvexDUv7+y1OeZI9IPgM9hMMB3kcEivst1QnIj XxuvoZbRmt7lkl9S8CmB7eVRCl+8wckCoku0wFN49/Yu1+Zu8KhaxHXnK8mV5NLyag7Z 0vJA== X-Gm-Message-State: AOAM532nCqVXuLINMbny2dmYvLeYTS9o//SKZEtL65e68I+RWrUczDyH CqqSjJNUS2PTuIUvzeYPzyI= X-Received: by 2002:a17:906:3a55:b0:6ce:c2ee:3e10 with SMTP id a21-20020a1709063a5500b006cec2ee3e10mr6563660ejf.210.1648769989961; Thu, 31 Mar 2022 16:39:49 -0700 (PDT) Received: from smtpclient.apple (i130160.upc-i.chello.nl. [62.195.130.160]) by smtp.gmail.com with ESMTPSA id n13-20020a170906724d00b006cedd6d7e24sm326157ejk.119.2022.03.31.16.39.49 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 Mar 2022 16:39:49 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.80.82.1.1\)) Subject: Re: [PATCH] ftrace: remove check of list iterator against head past the loop body From: Jakob Koschel In-Reply-To: <20220331193411.2fdbeb88@gandalf.local.home> Date: Fri, 1 Apr 2022 01:39:48 +0200 Cc: Ingo Molnar , linux-kernel@vger.kernel.org, Mike Rapoport , Brian Johannesmeyer , Cristiano Giuffrida , "Bos, H.J." Content-Transfer-Encoding: quoted-printable Message-Id: References: <20220331223752.902726-1-jakobkoschel@gmail.com> <20220331191005.2954969f@gandalf.local.home> <212AE797-912E-47D1-9DC4-03B5351AFC57@gmail.com> <20220331193411.2fdbeb88@gandalf.local.home> To: Steven Rostedt X-Mailer: Apple Mail (2.3696.80.82.1.1) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, 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-kernel@vger.kernel.org > On 1. Apr 2022, at 01:34, Steven Rostedt wrote: >=20 > On Fri, 1 Apr 2022 01:22:58 +0200 > Jakob Koschel wrote: >=20 >>> Can you move this to the first declaration to keep the nice = "upside-down >>> x-mas tree" look. =20 >>=20 >> Thanks, I'll fix that up. It seems like this is not applied on the = entire kernel >> making treewide changes a bit more difficult. Is it documented = somewhere, which >> parts of the kernel enforce this? Just looking two lines down from = here it >> seems to be 'broken' already so just from looking at existing code = it's often >> hard to judge. >=20 > It's one of those things that some maintainers prefer (I'm one of them = ;-) > because it makes it easier to read IMHO. >=20 > But as you noticed, it's broken even in the same file. That's because = I > don't strictly enforce it. If there's a lot of code that looks good to = go > in, I don't ask to fix it. But as this was a small trivial patch, I = figured > I'd mention it. I'm happy to fix it, I was just checking coding-style.rst and = checkpatch.pl and was hoping to find this documented somewhere. >=20 > Thus, it's something that you do when asked, but don't worry about = doing it > across the board, you are not going to upset anybody by forgetting to = do it. I guess then I'll stick with the strategy to incorporate when it's = obvious or to my knowledge (net/*) and otherwise fix when pointed out :) Thanks for the additional info. >=20 > -- Steve Jakob