Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp179137pxv; Wed, 21 Jul 2021 19:22:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKoQ/sfT8OpxSZhEr5lMydKuLE1LWFVnAOP91rme7beE/431kP7Z9kiBcCNrcLtKTxIkAY X-Received: by 2002:aa7:c857:: with SMTP id g23mr51277824edt.100.1626920560394; Wed, 21 Jul 2021 19:22:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626920560; cv=none; d=google.com; s=arc-20160816; b=0kRCV4CWOsd8SzuAMs0kKBDSuGoHAPOqnLkTuq4A/wFNwO758V9mDvPJojMEsEOzZ9 thGzBHHIbq18UlM6LYL//O05eAx94Xs+xwEVO2e8p/6yyahzZ+Zu7ZwhOjmmpXsU9mPi Kn3lQ1sjQvHkZkm+29F5Yag3mSRfLYUyuZGr+yD/9LzVeJCmA9xX+UMxfBoqxdWbjNfJ hVumWosiULMvb1RQK1XVGmnTuv4G6NpeAHolV0tXGKTJHz4s34LSPTDmaz1c7ZXjONn+ F3YiCERp7B7IJ978Pn3TivjrV4uXs3MzXbIZABHrJEUlpZ8Mq2YhWI92JTdefWB7wBSw cWoA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=ZAUM6JsORpXKtfzwUl7e2bOgLpFXq7TN7LD+yIvdhvk=; b=TOC7fFma6mzBCRq2xHjXtKNc9UpLwKHTmW87Hj6n4iEN4imvNNKEgMklAaXl4pUDUY Ju4uHFd9cJ+5dj8A761Uqen+i/3MgAXnSVLlvy6TxLW+gMDM3WzGGn2uUw6QmiPZiX+a 84jOB9v0F6TQgTI0rogtCLG5KP5cTznbcnJ5VOHxJLZmgofsbJv4rwpLD9GZNr0MCkBs Iz5diDlmIuL7jXmKuZUBKyfi2Cqyg5koQBKyHj4ZX74VA/DBend03KqW11NtHaec7v2r PDk38bznWRtk2j28K2i7dMgFsVR1Vk2axRU8DlrB4DB5uHrEW3fZp9eTLFoxVRv2Eujs +OZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=FMiOv7Ke; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e9si4931379edj.380.2021.07.21.19.22.17; Wed, 21 Jul 2021 19:22:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=FMiOv7Ke; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230281AbhGVBjx (ORCPT + 99 others); Wed, 21 Jul 2021 21:39:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229916AbhGVBjw (ORCPT ); Wed, 21 Jul 2021 21:39:52 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5248FC061575 for ; Wed, 21 Jul 2021 19:20:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=ZAUM6JsORpXKtfzwUl7e2bOgLpFXq7TN7LD+yIvdhvk=; b=FMiOv7KeBzACwgx99SAkMWD60i ERupB85JGmpDr6YRZLeypz5ORgguEbKl9ZPRcYowzNk4fTnsDMoe8XBF40ihVy0Obi4HwvyayWDor WZMTWEbNY9BRwA95cdM5bw+Ff5xeB/At9x1xDM6J6RKCjAUt4n1nDL6A0dQBeUpvifH3ALeTSBS9z IJH1ND2GvhC2HoXcOihX/eR6sSMYR4yPoUouu0xV03W4r9KjLxRJrniYZymJeWuQnnIzsHaaFOUv0 hmZ1jUB25EBqX8uBU+UYVgxSu34zW5FqFlNxvBNmnmggvReYyzv1Lpv+Zj/y6OylH0CXF8i29TEjU VhdpZRBQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1m6OIS-009nkq-EC; Thu, 22 Jul 2021 02:18:54 +0000 From: "Matthew Wilcox (Oracle)" To: Andrew Morton , Thomas Gleixner , linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: "Matthew Wilcox (Oracle)" Subject: [PATCH] mm/doc: Include highmem.h in kernel-doc Date: Thu, 22 Jul 2021 03:18:42 +0100 Message-Id: <20210722021843.2336117-1-willy@infradead.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is lots of good documentation in highmem.h that isn't being pulled into the html documentation. Fix up a couple of minor glitches and include it. Signed-off-by: Matthew Wilcox (Oracle) --- Documentation/core-api/mm-api.rst | 1 + include/linux/highmem.h | 17 +++++++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/Documentation/core-api/mm-api.rst b/Documentation/core-api/mm-api.rst index 395835f9289f..2027aee5f2d9 100644 --- a/Documentation/core-api/mm-api.rst +++ b/Documentation/core-api/mm-api.rst @@ -54,6 +54,7 @@ Virtually Contiguous Mappings .. kernel-doc:: mm/vmalloc.c :export: +.. kernel-doc:: include/linux/highmem.h File Mapping and Page Cache =========================== diff --git a/include/linux/highmem.h b/include/linux/highmem.h index 861ad00fb32a..fc43e81cf4db 100644 --- a/include/linux/highmem.h +++ b/include/linux/highmem.h @@ -37,8 +37,8 @@ static inline void *kmap(struct page *page); /** - * kunmap - Unmap the virtual address mapped by kmap() - * @addr: Virtual address to be unmapped + * kunmap - Unmap the page mapped by kmap() + * @page: Page to be unmapped * * Counterpart to kmap(). A NOOP for CONFIG_HIGHMEM=n and for mappings of * pages in the low memory area. @@ -69,13 +69,13 @@ static inline void kmap_flush_unused(void); * * Requires careful handling when nesting multiple mappings because the map * management is stack based. The unmap has to be in the reverse order of - * the map operation: + * the map operation:: * - * addr1 = kmap_local_page(page1); - * addr2 = kmap_local_page(page2); - * ... - * kunmap_local(addr2); - * kunmap_local(addr1); + * addr1 = kmap_local_page(page1); + * addr2 = kmap_local_page(page2); + * ... + * kunmap_local(addr2); + * kunmap_local(addr1); * * Unmapping addr1 before addr2 is invalid and causes malfunction. * @@ -156,6 +156,7 @@ static inline void *kmap_atomic(struct page *page); * the side effects of kmap_atomic(), i.e. reenabling pagefaults and * preemption. */ +static inline void kunmap_atomic(void *addr); /* Highmem related interfaces for management code */ static inline unsigned int nr_free_highpages(void); -- 2.30.2