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 A3B81C001DE for ; Fri, 4 Aug 2023 18:19:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229952AbjHDSTx (ORCPT ); Fri, 4 Aug 2023 14:19:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230521AbjHDSTl (ORCPT ); Fri, 4 Aug 2023 14:19:41 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73C0B4C2D; Fri, 4 Aug 2023 11:19:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=98qOA2hy/eGle7yAA5GlRvkVWWpa8WdU1Y+K5iryPA0=; b=PnNUDq2PSjSDtK8+kcZ5YTA5uf apCqSPjXpn1RgT3/6WRhgG7ykJw/bB8q1375z6sbZIS2TvZVQjaLKU4edBI1b9/3Ye5nJKEaQ6Hyv lIc09SVlq7f4kxrLF5yNORL6ft8PRI91e2jwBfbbGefmjzXGubCU9xtzNTPes0g48fK3fmMxGPR3q 5PtsNA0nu28tO57agCKHP7aJqd8wER1pSdXGusQrNx/lXpnkLmHiL1kof/uq7qYMWAfsZUTahQh2H PPxCJHA7jXZzSrP8MdGFJ2/cmEKVC7/FXwjO5TPlPu7UF/uNuF/0LZaDI37Qo5mPomVdhQuygpp1A xNh5kZEw==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1qRzOM-00BKBq-3m; Fri, 04 Aug 2023 18:19:14 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id EF129300235; Fri, 4 Aug 2023 20:19:12 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id CB5C92130B4DC; Fri, 4 Aug 2023 20:19:12 +0200 (CEST) Date: Fri, 4 Aug 2023 20:19:12 +0200 From: Peter Zijlstra To: Steven Rostedt Cc: Marco Elver , Andrew Morton , Kees Cook , Guenter Roeck , Mark Rutland , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , Catalin Marinas , Will Deacon , Nathan Chancellor , Nick Desaulniers , Tom Rix , Miguel Ojeda , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Dmitry Vyukov , Alexander Potapenko , kasan-dev@googlegroups.com, linux-toolchains@vger.kernel.org Subject: Re: [PATCH v2 2/3] list_debug: Introduce inline wrappers for debug checks Message-ID: <20230804181912.GN212435@hirez.programming.kicks-ass.net> References: <20230804090621.400-1-elver@google.com> <20230804090621.400-2-elver@google.com> <20230804120308.253c5521@gandalf.local.home> <20230804135757.400eab72@gandalf.local.home> <20230804135902.7925ebb6@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230804135902.7925ebb6@gandalf.local.home> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 04, 2023 at 01:59:02PM -0400, Steven Rostedt wrote: > On Fri, 4 Aug 2023 13:57:57 -0400 > Steven Rostedt wrote: > > > On Fri, 4 Aug 2023 19:49:48 +0200 > > Marco Elver wrote: > > > > > > I've been guilty of this madness myself, but I have learned the errors of > > > > my ways, and have been avoiding doing so in any new code I write. > > > > > > That's fair. We can call them __list_*_valid() (inline), and > > > __list_*_valid_or_report() ? > > > > __list_*_valid_check() ? > > > > I have to admit, I think the main reason kernel developers default to using > these useless underscores is because kernel developers are notoriously > lousy at naming. ;-) Well, that and I detest novella length identifiers.