Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp3313064ioa; Tue, 26 Apr 2022 00:44:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCGo1Ajr73ZbjCECVpFXGNakr0to1v+yPPWYTE/9wgW/bJYxBuH8igd5Fik03ep4XHCnuD X-Received: by 2002:a17:902:b696:b0:156:b63:6bed with SMTP id c22-20020a170902b69600b001560b636bedmr21616146pls.24.1650959075836; Tue, 26 Apr 2022 00:44:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650959075; cv=none; d=google.com; s=arc-20160816; b=SaQmVoIB61fJHpUIQfPt6w85Ivcl4iFjWDuM8F1HCIWAcmH/1M+m4ePJtQfqRd+Bsq JjUsJVK1LhNe4aMI3RmtFmhtcERDtEjKCLHm43tgJbJoyuhgbv8MqX2GsXJNJsuuEnc9 NLCZdrMYb5utVd3heKml/cjdMNP56V03bEjLgFkzF9lBU0cwGxGDh6FoMyJjtrJrQHud MhspAYn4W9MChHeqEnfsKQ7ORaiQtbr8e9KPKoLj4rd41+UORn4cKmz9LsTTmfEdn72c weLixsh+MOXsxZ5fd0mJk0GsD3Wk0oLDXsoq7b/y38sHjmiPNUq+K4oowjXI+ytXtLRf Hx5Q== 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-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature :dkim-signature:date; bh=VTCRMU626wUXdIQdsZJqxEPJIS21IoevEG8EtyqRngs=; b=LAaj8cMH2EXPBlFf62Di4PUoYW2M7SKvm1HDI+pwILsD30rrdSuDLJJ2pR6bwpyxvw W5HKAphru46Ya6ldYF0H+5QarO1KPyJyVoJQfC9JylwmvYUjJy26mDEP2IKhylLEdtev mHo/DFg5gQmA/go3qCurD5GvGRMqNQCOk6ehTxb+GTaMGk2K8JELWnIzCwheA6rUFHYj 8TXgHSAqluwVJGIZ1FUKikTgJv3rc+FuRzwUg8SyeUO4UsPtgzn3xj/LyqolVxL5uKIS BWiYJKJDXr6a4CB7ZioI9yf/jrH/y97ByLceUgW3Zr2w26yiDm4rFYeggYdlbTyMkySS 98XA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=G1YYFC7b; 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: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 s8-20020a637708000000b003ab2440ce56si6037813pgc.207.2022.04.26.00.44.19; Tue, 26 Apr 2022 00:44: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=@linutronix.de header.s=2020 header.b=G1YYFC7b; 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: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 S236637AbiDZHEp (ORCPT + 99 others); Tue, 26 Apr 2022 03:04:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236689AbiDZHEm (ORCPT ); Tue, 26 Apr 2022 03:04:42 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 888D365D37; Tue, 26 Apr 2022 00:01:36 -0700 (PDT) Date: Tue, 26 Apr 2022 09:01:32 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1650956493; 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: in-reply-to:in-reply-to:references:references; bh=VTCRMU626wUXdIQdsZJqxEPJIS21IoevEG8EtyqRngs=; b=G1YYFC7b9CA25F5dqZ9G3lB1okaKxhr7ktdUOimKsz4r416XIpu7aqXalKH35lsqmIgocG XtnjaBEKDpwPiIwmZ3fqNBM4Isdnl7FJnPAOj5hbHYVoY9ZT7UGNNBtszOi7+U1+bD3qY2 JbPL0FSSpvsfAFkiTeZjCs8vf/Y4gHkdfqNe0H4fGOaJeICEWrx8K9Lm1YR4qwsugidY17 8nOAUb5Ztub8G9FAhMj0cG0HjotfyV1EenDdoeb/yfGrwwjV7Ibg1v9PtHo4Er8/V5TBJS uwvSZ3E4pof+F3558WLSX6kvhxZl1Eq6LoisSWDhKx1G8QlD2Gi9TZ344r1a6Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1650956493; 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: in-reply-to:in-reply-to:references:references; bh=VTCRMU626wUXdIQdsZJqxEPJIS21IoevEG8EtyqRngs=; b=lYRgzZbkyghTMsuisYtZfHyNE6sUa/c2MsYt3zCtiyMmsqyoJQbiuBx91lqudW4h3ffaQ1 9nxLtOnBF63hLXDw== 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, Jonathan Corbet , linux-doc@vger.kernel.org, outreachy@lists.linux.dev, "Acked-by : Mike Rapoport" Subject: Re: [PATCH v2 1/4] mm/highmem: Fix kernel-doc warnings in highmem*.h Message-ID: References: <20220425162400.11334-1-fmdefrancesco@gmail.com> <20220425162400.11334-2-fmdefrancesco@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220425162400.11334-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-25 18:23:57 [+0200], Fabio M. De Francesco wrote: > index a77be5630209..aa22daeed617 100644 > --- a/include/linux/highmem-internal.h > +++ b/include/linux/highmem-internal.h > @@ -236,9 +236,17 @@ static inline unsigned long totalhigh_pages(void) { return 0UL; } > > #endif /* CONFIG_HIGHMEM */ > > -/* > - * Prevent people trying to call kunmap_atomic() as if it were kunmap() > - * kunmap_atomic() should get the return value of kmap_atomic, not the page. > +/** > + * kunmap_atomic - Unmap the virtual address mapped by kmap_atomic() > + * @__addr: Virtual address to be unmapped > + * > + * Unmaps an address previously mapped by kmap_atomic() and re-enables > + * pagefaults and preemption. Mappings should be unmapped in the reverse You mind adding "Deprecated!" like kmap_atomic() has? The part about disabling/ enabling preemption is true for !PREEMPT_RT. The part that worries me is that people use it and rely on disabled preemption like some did in the past. I've been told this API is about to be removed (or so I have been told) so I hope that it will be gone soon ;) > + * order that they were mapped. See kmap_local_page() for details. > + * @__addr can be any address within the mapped page, so there is no need > + * to subtract any offset that has been added. In contrast to kunmap(), > + * this function takes the address returned from kmap_atomic(), not the > + * page passed to it. The compiler will warn you if you pass the page. > */ > #define kunmap_atomic(__addr) \ > do { \ Sebastian