Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2195741pxb; Fri, 25 Mar 2022 12:49:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTGh1mQAlTnyJjPeAiYDjoRLonIzB7s5h8iUCNMuzXyMOlqMOX3Boi7WpWMsvOo3WbLefy X-Received: by 2002:a65:6d0c:0:b0:382:a4b1:c93 with SMTP id bf12-20020a656d0c000000b00382a4b10c93mr932284pgb.237.1648237785057; Fri, 25 Mar 2022 12:49:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648237785; cv=none; d=google.com; s=arc-20160816; b=1KwmtZb8raKzHU0FAWsM6CIlcWsRZdrPPHMarxw8XKWVytFacwF3cqARRxAkR3MSle vZL0coW9CrkkMiBlp649/PA+HAQPlmq5iRlec6Dx4dLGh5jCtcXD0jVZIr9LANl7sApf 1R2mHmjWC+vIVPNAaQ+U9mBxPEOb7h6cqhD+6b/E1Ho2EpxPxERl5tuJR4t87sut9PV0 nA4lx/Grb6TaubjmQHD9QP/U1LyARcubV+We8wb4OhEFm15ZwlGd+RATHNX/o8Fr31nN CnOhDpefZko2UA1AspZeCasuradYtVFwDMy9WK5yM22bPoZpyjN8q2dl3B3PvXfGukPG skDQ== 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:date:subject:cc:to:dkim-signature :dkim-signature:from; bh=G2K1bd9HAywoNYrUHng0l9se10lIg8eInYuxNMOXcG4=; b=ri1hAEIUGxj1GrJ9NfRxerxtF16u3oDhRN7j1UJU2Af6rlj8OfNuawbV5t6CisLXAs NH9fn6dPMoOJOEbH0V9Jfh3DUj6TW8AMLEWLLhXsIwfL7WHiHh4cErHS4SJsJkEyuRY6 gnZwAH0fYg4K314JsNrLsqlTD+WrW8BqYc8YlbL3DMmf4Z/RKHt1Zm3ilMVj3PzkpNWy aPTlq9tDreEqD+2c78tXrjdevTAGzy9etd6dJOa/W3A2pUcw6sJvZhCA6rseyqqmPr/N ojt8Pn6nB3Iu5zV/gPV3nE8utoCXn2h8JFvMNYQ04hKmKSwq+FSKdEtAZb7S0JuA6XO9 J76g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=IG+Jsu6x; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id m16-20020a170902f65000b00153b2d16444si3354603plg.76.2022.03.25.12.49.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 12:49:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=IG+Jsu6x; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BC4F32C5ECB; Fri, 25 Mar 2022 11:39:31 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352338AbiCXRlT (ORCPT + 99 others); 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 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 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