Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp7702144rwr; Wed, 10 May 2023 11:20:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7ko+Vb8M5hsISSHhvJ24Ha1KnyTD5XMzv7sXHKMJDgwgh3/EzCgY9493M1eF9TG26BHG+d X-Received: by 2002:a17:903:25c2:b0:1a6:a405:f714 with SMTP id jc2-20020a17090325c200b001a6a405f714mr19387157plb.63.1683742835437; Wed, 10 May 2023 11:20:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683742835; cv=none; d=google.com; s=arc-20160816; b=jpGY9GvDxJhI1rqlmSqfJiJ5eNhNNjVRc6+IEvPFXB/CPjtlrobq86814BSHOS8M6G mo0ghOSwm2+NyPaqxC6AW9eyF1xYeVh3DBCNZFnJ1YwvQSCP/2eNneIZW+/gTX88Ze89 +RP0L9QpXshu97g4Atfb9GlWpyTEiCplnFMFgOWOp0bs3vUUaepH8E11ErFj42UBeENW igYcGnULMXYd9oeba9Ni849AJj4RyjiVQaqEYCG1Hnbq8aubNsDWwlxnoNaJpw9o9Vi9 ea6AU5CE12esqxoXcvSupSEnpbUHhbXpnHInn3t6oxJp0TsvO1kIVxV314Q9FlklUNAj jABg== 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:from :dkim-signature; bh=aheu2F40vnH9i2Zujo0TojrK+n4g7W55UhYp+zpM+mA=; b=ywbDVTNluA0I2SABQBHkqim3gxiVf3G2/i8IfMan4ze6IeLzvqAcSdtj8ixZJJB2pU TElhYW3PkJjRUmPh59jU93Dlan+Vbw8RJ81v2VI9y4nLmxrnpZU8h4FYbEt/YYhQMvnu fwq4WcHuZgh4dGmONOHhC2C7zlZ6jMtZXTyLvqzEaXquX+ncMdPmvdcJLMEyVhLF246T PtCsLorZLGDqGhBYAoz+CQ1cQbkXHOwb0C3ocdG5FuvrzX8TJ4/vl/OVKPEmaZgzjuRm PMHXl+ORfZJocqtVZVBft9I8voK26PIwGZb16uTwRuZMuE6RO3zaPewTnRGkmU++hnfu qWWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hrtuScck; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r3-20020a170902be0300b0019c93e0dce0si4435751pls.254.2023.05.10.11.20.20; Wed, 10 May 2023 11:20:35 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hrtuScck; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236161AbjEJSTC (ORCPT + 99 others); Wed, 10 May 2023 14:19:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236086AbjEJSSQ (ORCPT ); Wed, 10 May 2023 14:18:16 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6097B35AB; Wed, 10 May 2023 11:18:05 -0700 (PDT) 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 dfw.source.kernel.org (Postfix) with ESMTPS id C262163F8B; Wed, 10 May 2023 18:17:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B494DC433A8; Wed, 10 May 2023 18:17:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683742644; bh=938G6zjstowu8jkLfQwOfPppGEFi6/h20gxxEv4pKds=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hrtuScckU1FqLRkp02MZHPh7X2V9uGIK3cXaf6OJl9tOUkIrNKx6WICOIN68mBOkT tcppCT7rbf2yDmS0eyK1RfcUdPLm/78ZtwryjthZRMyU2Ak51mhlpBsTBmrZEvMfpM vXksW7Iu/pE6tInVfjjwJF1hVnai5vO6dO7V1zZR1PPayYRPxLL5eAngyDYuJpUY7C mgkvebQHfLxC8SvO6ZcjE9KUdX9kQjP273voEX6fH/og2ODkfLOvqB5ih1yDJW0y44 FHQufgCMlP9nLVCUOrfCtV2GWCvFMF+WTtwKSicprf4gDVXLltL3pdhHReHTfRLRhX mZsRC/o1HcIew== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id EAA23CE1EA5; Wed, 10 May 2023 11:17:18 -0700 (PDT) From: "Paul E. McKenney" To: linux-kernel@vger.kernel.org Cc: x86@kernel.org, akiyks@gmail.com, linux-doc@vger.kernel.org, kernel-team@meta.com, "Paul E. McKenney" , Will Deacon , Peter Zijlstra , Boqun Feng , Mark Rutland Subject: [PATCH locking/atomic 11/19] locking/atomic: Add kernel-doc header for arch_${atomic}_set_release Date: Wed, 10 May 2023 11:17:09 -0700 Message-Id: <20230510181717.2200934-11-paulmck@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <19135936-06d7-4705-8bc8-bb31c2a478ca@paulmck-laptop> References: <19135936-06d7-4705-8bc8-bb31c2a478ca@paulmck-laptop> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Add kernel-doc header template for arch_${atomic}_set_release function family. Signed-off-by: Paul E. McKenney Cc: Will Deacon Cc: Peter Zijlstra Cc: Boqun Feng Cc: Mark Rutland --- include/linux/atomic/atomic-arch-fallback.h | 16 +++++++++++++++- scripts/atomic/fallbacks/set_release | 7 +++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/include/linux/atomic/atomic-arch-fallback.h b/include/linux/atomic/atomic-arch-fallback.h index a90ee496bb81..7ba75143c149 100644 --- a/include/linux/atomic/atomic-arch-fallback.h +++ b/include/linux/atomic/atomic-arch-fallback.h @@ -258,6 +258,13 @@ arch_atomic_read_acquire(const atomic_t *v) #endif #ifndef arch_atomic_set_release +/** + * arch_atomic_set_release - Atomic store release + * @v: pointer of type atomic_t + * @i: value to store + * + * Atomically store @i into *@v with release ordering. + */ static __always_inline void arch_atomic_set_release(atomic_t *v, int i) { @@ -1706,6 +1713,13 @@ arch_atomic64_read_acquire(const atomic64_t *v) #endif #ifndef arch_atomic64_set_release +/** + * arch_atomic64_set_release - Atomic store release + * @v: pointer of type atomic64_t + * @i: value to store + * + * Atomically store @i into *@v with release ordering. + */ static __always_inline void arch_atomic64_set_release(atomic64_t *v, s64 i) { @@ -3132,4 +3146,4 @@ arch_atomic64_dec_if_positive(atomic64_t *v) #endif #endif /* _LINUX_ATOMIC_FALLBACK_H */ -// 3fd0ec685588b84c6428145b7628f79ce23a464c +// c46693a9f3b3ceacef003cd42764251148e3457d diff --git a/scripts/atomic/fallbacks/set_release b/scripts/atomic/fallbacks/set_release index 05cdb7f42477..46effb6203e5 100755 --- a/scripts/atomic/fallbacks/set_release +++ b/scripts/atomic/fallbacks/set_release @@ -1,4 +1,11 @@ cat <