Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5249233rwd; Mon, 5 Jun 2023 00:12:44 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5lNUOvViCYOqKYTcB76tHiz7heBIyjnUz3DrG5m3s7NOQ8CH0VYZzsVL2WFn3L6QH2bxOV X-Received: by 2002:a05:6a21:33a4:b0:115:1784:6a1f with SMTP id yy36-20020a056a2133a400b0011517846a1fmr3594601pzb.19.1685949163845; Mon, 05 Jun 2023 00:12:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685949163; cv=none; d=google.com; s=arc-20160816; b=NAaxXZ0x4OH5Qeqm6kJr5hwpOIZNjJ0pzBv0BAYrCIi4Q21z5LM78fCIqUwpWUmSga 5iXoQ6zuRH81hKXV75HBcGz2Cd4rfDzafFdT+nM6xp1FlXCilNzIXMEkMQju5WwVc9/l rW5xAoEyzqKvO3nKW772nv+JjYLInEVMSmeEdD7dhqqxNIfx05tYr/f1sG9eZ7hcp6C2 La3beBC4OZNbaf2adJe5o/gK/AllqhLmG14lXyZYttrsKrfrRtMoJRr9Nzh7VGuLqvaF DLqcHFWsnczg7T8cE6Mo6GB6E2xOneJPJA+NVn82YfBop8Ze0tuR328SyRvU5IspyxP1 2kog== 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; bh=7+junzn/3qiqrSBTSJCmpRhohHV5HR4IC5AQxkWrHWI=; b=YnbwPLGLm6oc4a4AI0zZQZrEnB2jUPPjZ4TFzZVIVMuiwbouYsxOIcma+7ZcD1sMbg 9cbqZ38v1RwAG0SFw6M58EzdpCrQULQ3DgdWZ8t/5Z7toVY9HHt8z3lcIxNlG0yOI45u R8WydG3JkBwfBMrdwNiopJxfl24OhwHzND/6bAFZPwFsN5OYX7qV/FD6SE0tD3IvQKek EDe4WJ4t5IoeT41VxXg+JzHZiEt4G0OKj2m+pa3ncIVryCbNmtTvS9ObAuWG6Jrhvui+ 8V7ozz2ix9Ty3FjdcvyDh/bKRNv+YHW3JMlsMHJ7L01L3fFf/O/nWOJbbuUbdjxTo1Cg ScDw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l188-20020a633ec5000000b00524eef20da6si5188588pga.642.2023.06.05.00.12.32; Mon, 05 Jun 2023 00:12:43 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231265AbjFEHEq (ORCPT + 99 others); Mon, 5 Jun 2023 03:04:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230219AbjFEHEV (ORCPT ); Mon, 5 Jun 2023 03:04:21 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1055E171C; Mon, 5 Jun 2023 00:03:39 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C420216F8; Mon, 5 Jun 2023 00:03:28 -0700 (PDT) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 7FABE3F793; Mon, 5 Jun 2023 00:02:41 -0700 (PDT) From: Mark Rutland To: linux-kernel@vger.kernel.org Cc: akiyks@gmail.com, boqun.feng@gmail.com, corbet@lwn.net, keescook@chromium.org, linux@armlinux.org.uk, linux-doc@vger.kernel.org, mark.rutland@arm.com, mchehab@kernel.org, paulmck@kernel.org, peterz@infradead.org, rdunlap@infradead.org, sstabellini@kernel.org, will@kernel.org Subject: [PATCH v2 26/27] locking/atomic: docs: Add atomic operations to the driver basic API documentation Date: Mon, 5 Jun 2023 08:01:23 +0100 Message-Id: <20230605070124.3741859-27-mark.rutland@arm.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230605070124.3741859-1-mark.rutland@arm.com> References: <20230605070124.3741859-1-mark.rutland@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,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 From: "Paul E. McKenney" Add the generated atomic headers to driver-api/basics.rst in order to provide documentation for the Linux kernel's atomic operations. At the same time, dtop the x86 atomic header, which provides kerneldoc comments for some arch_atomic*_*() operations. The arch_atomic*_*() operations are now purely an implenentation detail of the raw_atomic*_*() ops, and outside of implementing the atomics, code should use the raw_atomic*_*() forms. Signed-off-by: Paul E. McKenney [Mark: add atomic-{instrumented,long}.h, update commit message] Signed-off-by: Mark Rutland Reviewed-by: Kees Cook Cc: Cc: Akira Yokosawa Cc: Boqun Feng Cc: Jonathan Corbet Cc: Peter Zijlstra Cc: Will Deacon --- Documentation/driver-api/basics.rst | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Documentation/driver-api/basics.rst b/Documentation/driver-api/basics.rst index 4b4d8e28d3be4..7671b531ba1a8 100644 --- a/Documentation/driver-api/basics.rst +++ b/Documentation/driver-api/basics.rst @@ -84,7 +84,13 @@ Reference counting Atomics ------- -.. kernel-doc:: arch/x86/include/asm/atomic.h +.. kernel-doc:: include/linux/atomic/atomic-instrumented.h + :internal: + +.. kernel-doc:: include/linux/atomic/atomic-arch-fallback.h + :internal: + +.. kernel-doc:: include/linux/atomic/atomic-long.h :internal: Kernel objects manipulation -- 2.30.2