Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 94AF1C2CA; Fri, 4 Aug 2023 17:58:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 75C9EC433C7; Fri, 4 Aug 2023 17:57:59 +0000 (UTC) Date: Fri, 4 Aug 2023 13:57:57 -0400 From: Steven Rostedt To: Marco Elver Cc: Andrew Morton , Kees Cook , Guenter Roeck , Peter Zijlstra , 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: <20230804135757.400eab72@gandalf.local.home> In-Reply-To: References: <20230804090621.400-1-elver@google.com> <20230804090621.400-2-elver@google.com> <20230804120308.253c5521@gandalf.local.home> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: kvmarm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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() ? -- Steve