Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7367823rwb; Wed, 23 Nov 2022 05:49:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf5u7Q56orJZpD/+z195lqbMYc/+ujqsYEDfHgrqt3Lf0ESdul5Vk94ccXLxD86JP1inOywq X-Received: by 2002:a05:6a00:4009:b0:563:2ada:30a3 with SMTP id by9-20020a056a00400900b005632ada30a3mr10432367pfb.27.1669211347358; Wed, 23 Nov 2022 05:49:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669211347; cv=none; d=google.com; s=arc-20160816; b=rvfRJVV4Mv0UxikqCWJpIyzFqYms3U/NbcD7plvq/M6IBGIUVHh6jKMEG47GnLhPR3 Uv3WpXo6wai98u5Ye7TajokP0GhHJHuPWYt3kNcmJlMX3+4/+INJA6wIhTU4Vn+D8Ely 3q76Il1b6vg0xBsEC6UH4CgdOZH95ns05LVa7zmLJ+G4XoWzNwi2Csoy8DIQJ821MkzW MBl92iVSJS+uFQs/8VUaK573rNbhmmDx9IG+1vtRV6AjzGyhix/KGT6ZZPG9JWbGDquV salkV2MumEPQkmryPsTqjQS3qWoNAZApD3v936OP8aVyFVITDfkymcQLxgfsZ9I/ZAKU y6/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=NL8J3wq9BK+nvWIDUdWd1UyD73O922/3g1hcMLDfJ+8=; b=MfH7yU3fB/O7MuFjzOplDh90Unpkzwap3hNJTLCLwkTIDZcA5yZfkdxRueYmLaF3yx N/bxRvbuLI2K7jjCXk/w8VthiD/0a1m/rNlrCr9tnKWoY04l/fVlg9CvBMBRfNLotygb Icngv+mianYpSMQBwh7Gbm8u6ppeWYU1B5CcVmeBbajpK80jXQgS+wfgvr/NN/t9yToA omJmliTIJXpZTZQR8y2JG8Jpd0hISTaPdWqJ+TSqfZN9DpWwx8YJPBx/+v5FBNQAkC4e fYyB1EgIvztp9KQH38W88WCHs3U9Hz0dG83HRWJ+odRFRbxoma99SS2IcspW9aivfaE6 bB/Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m16-20020a056a00081000b00571fc323489si17860057pfk.361.2022.11.23.05.48.55; Wed, 23 Nov 2022 05:49:07 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237946AbiKWNkI (ORCPT + 89 others); Wed, 23 Nov 2022 08:40:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238286AbiKWNju (ORCPT ); Wed, 23 Nov 2022 08:39:50 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1869B9A27D for ; Wed, 23 Nov 2022 05:26:52 -0800 (PST) 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 BF65FB81FEA for ; Wed, 23 Nov 2022 13:26:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA220C43151; Wed, 23 Nov 2022 13:26:48 +0000 (UTC) Date: Wed, 23 Nov 2022 08:26:47 -0500 From: Steven Rostedt To: Peter Zijlstra Cc: Uros Bizjak , linux-kernel@vger.kernel.org, Josh Poimboeuf , Jason Baron , Ard Biesheuvel Subject: Re: [PATCH] jump_label: use atomic_try_cmpxchg in static_key_slow_inc_cpuslocked Message-ID: <20221123082647.4531eabf@gandalf.local.home> In-Reply-To: References: <20221019140850.3395-1-ubizjak@gmail.com> <20221122161446.28907755@gandalf.local.home> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS 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 Wed, 23 Nov 2022 10:08:59 +0100 Peter Zijlstra wrote: > On Tue, Nov 22, 2022 at 04:14:46PM -0500, Steven Rostedt wrote: > > > > + for (int v = atomic_read(&key->enabled); v > 0; ) > > > > Although it's permitted by the compiler, the kernel style is to not add > > declarations in conditionals. > > I'm thinking the whole motivation for upping to C99 was exactly so that > we could start using this pattern. OK, if you are fine with it then sure. I personally like seeing all variables declared in one place. Maybe because I've been trained that way, and I can easily be confused when I see a variable somewhere and don't see it in the beginning declarations. -- Steve