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 7B172C433EF for ; Thu, 24 Mar 2022 17:39:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352344AbiCXRlT (ORCPT ); Thu, 24 Mar 2022 13:41:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352325AbiCXRlQ (ORCPT ); Thu, 24 Mar 2022 13:41:16 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 608AA91AF4 for ; Thu, 24 Mar 2022 10:39:44 -0700 (PDT) From: Sebastian Andrzej Siewior DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1648143582; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=G2K1bd9HAywoNYrUHng0l9se10lIg8eInYuxNMOXcG4=; b=IG+Jsu6xJoPNea+9yEPMBFIoYU5UwvP5LwmJY+sO8P4uAGj2JWW0GZ9eTvfrP5puQT4DWR yjO/IC3R+XtrOMF3naF6IdNtluZHjNuAZeGQsBzkcU5GW9MeEAmlj3P3rtpL2lFBReFm6F zg4sidf3kSc4rcwDHAARj//bneagHVRhN+cH+GrCpjkPCtHFYfQy447lnn2oAEvWwf0JbZ wFZjAkuYinpwuxKsgi4haMTUfyoDOSxv4Gz+Jt5jCVI+4q5bFzyO/cLr9Qrrq1+COXWXDX emTxgpTOiICqg0gOd7pboKoex2SDiua39Q/ryt2krD+IhjUFisvIU0KZEclezA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1648143582; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=G2K1bd9HAywoNYrUHng0l9se10lIg8eInYuxNMOXcG4=; b=ScpZeZ4n6mXN+Srm59nk50TSTHLHjzLgc+gXeSO/vZplZ/UWoB9cZ6kx09KKFWxqkdr4jl Wum0MFgxtRK/fYBA== To: torvalds@linux-foundation.org Cc: akpm@linux-foundation.org, bigeasy@linutronix.de, boqun.feng@gmail.com, bp@alien8.de, linux-kernel@vger.kernel.org, longman@redhat.com, mingo@kernel.org, peterz@infradead.org, tglx@linutronix.de, will@kernel.org, Dennis Zhou , Tejun Heo , Christoph Lameter Subject: [PATCH 2/3] Revert "locking/local_lock: Make the empty local_lock_*() function a macro." Date: Thu, 24 Mar 2022 18:39:26 +0100 Message-Id: <20220324173927.2230447-3-bigeasy@linutronix.de> In-Reply-To: <20220324173927.2230447-1-bigeasy@linutronix.de> References: <20220324173927.2230447-1-bigeasy@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org With volatile removed from arch_raw_cpu_ptr() the compiler no longer creates the per-CPU reference. The usage of the macro can be reverted now. Signed-off-by: Sebastian Andrzej Siewior --- include/linux/local_lock_internal.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/local_lock_internal.h b/include/linux/local_lock= _internal.h index 6d635e8306d64..975e33b793a77 100644 --- a/include/linux/local_lock_internal.h +++ b/include/linux/local_lock_internal.h @@ -44,9 +44,9 @@ static inline void local_lock_debug_init(local_lock_t *l) } #else /* CONFIG_DEBUG_LOCK_ALLOC */ # define LOCAL_LOCK_DEBUG_INIT(lockname) -# define local_lock_acquire(__ll) do { typecheck(local_lock_t *, __ll); }= while (0) -# define local_lock_release(__ll) do { typecheck(local_lock_t *, __ll); }= while (0) -# define local_lock_debug_init(__ll) do { typecheck(local_lock_t *, __ll)= ; } while (0) +static inline void local_lock_acquire(local_lock_t *l) { } +static inline void local_lock_release(local_lock_t *l) { } +static inline void local_lock_debug_init(local_lock_t *l) { } #endif /* !CONFIG_DEBUG_LOCK_ALLOC */ =20 #define INIT_LOCAL_LOCK(lockname) { LOCAL_LOCK_DEBUG_INIT(lockname) } --=20 2.35.1