Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp114190pxb; Wed, 20 Apr 2022 17:32:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEM4epuzL13LdqH/Uyl7hHSBU/eMvSLG6yuXe+wpewCiELPoMX68M1Ewlskq0NR74bMtZY X-Received: by 2002:aa7:c5d4:0:b0:420:11ef:c1c9 with SMTP id h20-20020aa7c5d4000000b0042011efc1c9mr26160142eds.392.1650501156012; Wed, 20 Apr 2022 17:32:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650501156; cv=none; d=google.com; s=arc-20160816; b=YgcN7OeAQmERAdUbYNRKPlqwGbfxFqR1+6N6tySYA/jxoKQpWymNzDK/ygym08fv6X voRC+BqNqfRffhrm0kiKA9BoewjS6cJX0DllxlGAff1HetP9e1d3D6zh/8Yrc1u2oKHM uMEudiHRYHm8mWiDAtk6Cjq08D7O+JqkgwA628fHp//h5F+A3+0pYV/cJDf7r6f5X18U gXoQ26Yh+h7nfwi9oMKyDw2dOE8XX7MzTxoaXZjFE2VL+q3EeCBmoLOeZWODCANcdzxG ThlVKJLh/JCTKRfTHBUqAw8d/Vpfn+OsqJpxlkOL9BuA53Q1+z78PKOWeO3F9JzkzrbQ Q6Cw== 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=NYGYZ+AaeH1UkoR29hN0ONV45IHPGeVO496rVaCsOeg=; b=xaFw2Vec5z9j3E7tbiADHQ4DWLifB5VzL8NUIADcXHDDgQ8OCmlvGFaH3H492LEnke btThw99Df48KP3Mgmx4Mt9sCdbrI8sVDSVznMkQ2HOGt0zRLLJinPxoSyVb396T5CWui FjcW+OAV3D76aqOhoSJx6DD5Y8u7wl9qdrfnTpszyU4XCQl2OctJxGtOtvmeUkLxGhH2 zcqY77KMg3yXN6JIP3SekSkAJUcNl+RsNHci0qGzTRHkr3LFqvnQzX0UlMjneO7jumai XlrtEokMIvmzRbNI0oO4I3A1RCSk2QBr9cWJY+r5UcH17ztudGmC8XRA8ZQaOjk+/wog MFdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZcP63KQb; 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=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gl9-20020a170906e0c900b006e89332a292si2790202ejb.340.2022.04.20.17.32.01; Wed, 20 Apr 2022 17:32:36 -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=@gmail.com header.s=20210112 header.b=ZcP63KQb; 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=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242402AbiDSN2o (ORCPT + 99 others); Tue, 19 Apr 2022 09:28:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243934AbiDSN2D (ORCPT ); Tue, 19 Apr 2022 09:28:03 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5728F21E19 for ; Tue, 19 Apr 2022 06:25:20 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id t25so21250497edt.9 for ; Tue, 19 Apr 2022 06:25:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=NYGYZ+AaeH1UkoR29hN0ONV45IHPGeVO496rVaCsOeg=; b=ZcP63KQbJe/fq2lztFobt+4aFZJsU7bmacoc7UrvUOEBPRCGkn8K2Uwgz1TudU1vVm m/AG5apYjCzvfnZjgqvfy3ERIKR46quwZkbQs6eqYdyzvjhjwgawy2pmk6QIFggBSFoT oOKSlIa+QZB5Z7Bi0bVwZYyRH3vmhvpt/+PYNbftMzYV9afjOcEAj3kVfmrGObuF8erl S1u/FdJMXedCwFu88jEuVQme82CXHn/xWoapZfPCRfd5muPPBWXap3gonUSvM6oHhfj4 XeFBi/ldwlcGrKX5nmEVdrRi5ehZTc/DFaN3NTDOXvRCXPer+X26HBfyvbV7Q2q5oNP3 6/CA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=NYGYZ+AaeH1UkoR29hN0ONV45IHPGeVO496rVaCsOeg=; b=vlbTXdifRr5Mq+cepOxK4nOR0M5/JtqJkxxYYLaiPN8dTsseGJlp6y3afissitTMdR 6peGwYOMLpDLKD11BNSo9mU3mTVav1VObVJUxuQOL4crdZRqJu6Zjoy+3Nee+PwffIE9 gVMv6RnDQZ56sggNhypkZgOhdUZY+L7+2IjGs2uqsVErqTcmVBJRaUQXUozkvNXDkwIr rQf+gPfN5vT1RgW5zU0QhpgCVVK5SjPb10X9PI01nPDwW8EbcEaTlFFGTtbvqGOeS6Wy r3pbFStg3E/c2jCJ9ZiGoo+f1KVOxrTBtaUivpf0hkQnW5EIaiuJ7SoqzM3bnco+nbwH 13sw== X-Gm-Message-State: AOAM533a9bKUFD596CaB4wArO8NJbkV5GS0ExrbUN3LabxBczDnlUaw+ bzsFohenD+aMNgvR+ruvZTU= X-Received: by 2002:a05:6402:2318:b0:413:7645:fa51 with SMTP id l24-20020a056402231800b004137645fa51mr17623149eda.201.1650374718896; Tue, 19 Apr 2022 06:25:18 -0700 (PDT) Received: from leap.localnet (host-79-50-86-254.retail.telecomitalia.it. [79.50.86.254]) by smtp.gmail.com with ESMTPSA id fx3-20020a170906b74300b006daecedee44sm5661666ejb.220.2022.04.19.06.25.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Apr 2022 06:25:17 -0700 (PDT) From: "Fabio M. De Francesco" To: Matthew Wilcox Cc: Ira Weiny , Andrew Morton , Catalin Marinas , Will Deacon , Peter Collingbourne , Vlastimil Babka , Sebastian Andrzej Siewior , Mike Rapoport , linux-kernel@vger.kernel.org, outreachy@lists.linux.dev Subject: Re: [PATCH v2] mm/highmem: Fix kernel-doc warnings in highmem*.h Date: Tue, 19 Apr 2022 15:25:16 +0200 Message-ID: <4058661.1IzOArtZ34@leap> In-Reply-To: References: <20220418175638.30018-1-fmdefrancesco@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_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 On marted=C3=AC 19 aprile 2022 14:44:14 CEST Matthew Wilcox wrote: > On Mon, Apr 18, 2022 at 07:56:38PM +0200, Fabio M. De Francesco wrote: > > +/** > > + * kunmap_atomic - Unmap the virtual address mapped by kmap_atomic() > > + * @__addr: Virtual address to be unmapped > > + * > > + * Counterpart to kmap_atomic(). >=20 > I don't think this is a terribly useful paragraph? I agree but let me remind you that this patch is _only_ about fixing=20 kernel-doc warnings. This warning was simply fixed by moving kdoc comment=20 from highmem.h to highmem-internal.h (which is the file where the=20 definition of kunmap_atomic() resides) and merging the text with few lines= =20 that already were in highmem-internal.h. =46urthermore, I've already had an "Acked-by:" tag from Mike Rapoport. I=20 suppose that if I changed the paragraph here I could not forward his ack to= =20 the next version. > > + * Effectively a wrapper around kunmap_local() which additionally=20 undoes > > + * the side effects of kmap_atomic(), i.e. reenabling pagefaults and > > + * preemption. Prevent people trying to call kunmap_atomic() as if it > > + * were kunmap() because kunmap_atomic() should get the return value=20 of > > + * kmap_atomic(), not its argument which is a pointer to struct page. >=20 > I'd rather this were useful advice to the caller than documentation of > how it works. How about: >=20 > * Unmap an address previously mapped by kmap_atomic(). Mappings > * should be unmapped in the reverse 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 kmap_atomic(). > * The compiler will warn you if you pass the page. A change like this should go to a separate patch and indeed I'll send it=20 ASAP. Probably, when I'll rework this text in a separate patch, I'll also=20 copy-paste the paragraph you wrote as-is (too easy!). However, since the rework of the text in paragraph can only be applied on=20 top of this patch, I'm not sure if I should either (1) make a series with=20 two patches or (2) make a separate patch with a warning to Maintainers that= =20 the changes in the new patch can only be applied on top of this patch. Actually, I don't yet know how the Community wants tasks like these to be=20 carried out. Any suggestion? Thanks for your review and for suggesting a better suited text for the next= =20 patch. =46abio M. De Francesco