Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp521001iob; Thu, 28 Apr 2022 07:27:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFkEH7m+LuyRb4Ac7OIFp/BxFES7qJcQy+1ZXk8/SHWtvV32SsHzd2bbx/Nq8S/CRRQALZ X-Received: by 2002:a05:6512:22d0:b0:472:3cb4:8a6c with SMTP id g16-20020a05651222d000b004723cb48a6cmr1604527lfu.588.1651156022334; Thu, 28 Apr 2022 07:27:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651156022; cv=none; d=google.com; s=arc-20160816; b=X2mi635kLZdBw2Z1x+Zpecngsp4VutDZ6DPQOadGePswdwA+/LQV/a1JkOC4HBIL70 RMfZMv6o876EG/GuXUJPYxgmrLrSSIuL4sNvbCX+GTlC2/qJoGhO6mdwAH2uuzvyasua J/4eFZJojO6i/Hu0XKtSrxlR5bcgKO+pALvDAZN9vPG0yqBMli2XK5K9Kjz6Spq//2ak NRXDlW27FaSNliqApmB6716mvSVBnyGzGs6NntDye9kKeGb1PSKqShGxdFL/U7NpRmIu rm/qQTBNbJdctPaihUkLLeU6uRNmcCp+7rv4zHJ3Jdj7cRDbiZBvPq6W2xyKObz6HPHf y2Eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:dkim-signature:dkim-signature:date; bh=nNOLzMN4GCAqBBfW+r8eqm5hDs3n5cjsSXnK/5QFPds=; b=RCPXdP/oTnTRVlHjWVyJ1m+FVGs9YGLb5mBeeYGTcx2IXiu4EsNqkv9GO6C/h4E6iL 9htFCdTnW+uUY4teoQQ93Di1GNrxrRgfi5eXT7Ks5BAgE8o49SFEYhDqZDN0EOOyV9ha JTHl1pj10Je6KO9Pavsvis17Tf5rl7EIIlr/5KuFGlukY2+cBtxB3TDKagt+4MiT+V/K f6RpMzEirQAMkwOlp2MOWakW4uC7ZZgd79rG77Bg5wp/tkMFxzHi3pT0NpHiq7X1otN/ brLLnOnExh5NL3pzMVQweYn+/0nD1Zl828phWhWwy/SIOpf1cbbBytKALh9IJG126CIp iZ6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=q9fWvipx; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f13-20020a19380d000000b0046b8bc039a6si4632613lfa.615.2022.04.28.07.26.11; Thu, 28 Apr 2022 07:27:02 -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=@linutronix.de header.s=2020 header.b=q9fWvipx; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345195AbiD1JRk (ORCPT + 99 others); Thu, 28 Apr 2022 05:17:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345389AbiD1JPD (ORCPT ); Thu, 28 Apr 2022 05:15:03 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C7225DE40; Thu, 28 Apr 2022 02:11:49 -0700 (PDT) Date: Thu, 28 Apr 2022 11:11:46 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1651137108; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nNOLzMN4GCAqBBfW+r8eqm5hDs3n5cjsSXnK/5QFPds=; b=q9fWvipxeyuuIhq4+NB4f0zZUeNRO9fKzRYos5WIhZ2FTHy8dYPMHVGR9bzNa3ITWgsq2J GqMGra6y+XiQ2aQl1i6HqvOofzVtblPQQe/dj5SbfpGTubLf0kTNg2rqcXkHFtoGFjfYah FOdw4duodfVpezANBfBJdprbLmZSXtsN77r9ambMrOqTOOcDrN/PBd8qGZjPyFsYKWU+Lu F9otqnAOa3RCZUVVm+f7geBY8fqswq1YvvsEZv0EipvwvgCwnY9ASCte0o0X80KAVIYABr u3P705AiBQ9FpbhbcZLHkPoiHWPDp5q61rGw597YAjo3wgVEOMtpqIwweRWW6A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1651137108; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nNOLzMN4GCAqBBfW+r8eqm5hDs3n5cjsSXnK/5QFPds=; b=7dCD8xWto1maJxrNTxYG+xqLePiWvXHnBLrZmkaeDiRqei49ZmGnJxR9LO7zRcSbHpPRjy ep9UlPjhOTH1ebCQ== From: Sebastian Andrzej Siewior To: "Fabio M. De Francesco" Cc: Ira Weiny , Andrew Morton , Catalin Marinas , "Matthew Wilcox (Oracle)" , Will Deacon , Peter Collingbourne , Vlastimil Babka , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, outreachy@lists.linux.dev, Mike Rapoport Subject: Re: [PATCH v3 1/4] mm/highmem: Fix kernel-doc warnings in highmem*.h Message-ID: References: <20220427183821.1979-1-fmdefrancesco@gmail.com> <20220427183821.1979-2-fmdefrancesco@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20220427183821.1979-2-fmdefrancesco@gmail.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS 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 On 2022-04-27 20:38:18 [+0200], Fabio M. De Francesco wrote: > --- a/include/linux/highmem-internal.h > +++ b/include/linux/highmem-internal.h > @@ -236,9 +236,18 @@ static inline unsigned long totalhigh_pages(void) { = return 0UL; } > =20 > #endif /* CONFIG_HIGHMEM */ > =20 > -/* > - * Prevent people trying to call kunmap_atomic() as if it were kunmap() > - * kunmap_atomic() should get the return value of kmap_atomic, not the p= age. > +/** > + * kunmap_atomic - Unmap the virtual address mapped by kmap_atomic() - d= eprecated! > + * @__addr: Virtual address to be unmapped > + * > + * Unmaps an address previously mapped by kmap_atomic() and re-enables > + * pagefaults, migration, preemption (the latter was disabled only for > + * !PREEMP_RT configurations). Mappings should be unmapped in the reverse Not sure how detailed you want to put it here as "reverses kmap_atomic() doing." might be okay ;) This indicates the "migration" is disabled for !PREEMPT_RT which is not the case. So maybe something like * Unmaps an address previously mapped by kmap_atomic() and re-enables * pagefaults, CPU migration (CONFIG_PREEMPT_RT) or preemption * (!CONFIG_PREEMPT_RT). Mappings should be unmapped in the reverse will make it clear. =E2=80=A6 > --- a/include/linux/highmem.h > +++ b/include/linux/highmem.h > @@ -138,24 +138,14 @@ static inline void *kmap_local_folio(struct folio *= folio, size_t offset); > * > * Returns: The virtual address of the mapping > * > - * Effectively a wrapper around kmap_local_page() which disables pagefau= lts > - * and preemption. > + * In fact a wrapper around kmap_local_page() which disables pagefaults, > + * migration, preemption (the latter disabled only for !PREEMP_RT > + * configurations). and here. Sebastian