Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp118114pxx; Mon, 26 Oct 2020 04:55:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCLPYiIMQ1jqL9DaHZeLadUAISEkAfKp1ESS2SZIEvSZueTCFgwLJHvDv9h/fPE2PADz5o X-Received: by 2002:a17:906:d1ce:: with SMTP id bs14mr14790717ejb.548.1603713343731; Mon, 26 Oct 2020 04:55:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603713343; cv=none; d=google.com; s=arc-20160816; b=PkSX7k/8nsCf44rOEP3JDF16szZP9L6IUyd1ocDE5Ebp9XDTw29pzRqF2ymiRsBZQU ETrvCbs+nML+LAkc7Sv99DXJ4a0eUhFhazCm4+ihpLVpajSVRdvBt5/MNrHmMKQUgDOA 3r6x167yMGit8rDD3JAlmmbbyDWLJk2SpwojGqIWWmVZbMqZ3NQgTfRJJXBULEHV3zh0 qDR+58ghK5zoQkIt+ZR+mR0IqPLK5N7+MVedARFMINr4MfSPRSKZJxUfb+1bpYI6qlaX ZlgSgwVVyjWOoGk5LRLWHz9nW0H7Z6Xtb0o+nwZEUS0It6Fuaq6mqhM6k58Min+ZnYZE TzLg== 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:date:dkim-signature; bh=JyXZi/ERFgCbfx8pduwl1A0Zv/jNhz7fITwwiik2EAE=; b=tFW+nFuNNQWTr+1mHeLODQ6Imkt3ANccWxAfTwiRDJCpL98792oFTkMJXRbmzzG1Pj rxE8zeyaK3oGmIvLMfxhJMhzQWITnNekFQ/Ei7wEuX4R/dW6Dqmfk9tn/z2vYrAPTowh z4EhNP5K0x5xwc23NxuXQbutkZb3IXPS1aCI/QeY30v3KZmeSglpc+rYdwP1GcL2VGkR janMEf57cL++cSzTUmsmOl40BoBifhUqbSlLsUXZ7OXmTiBVI3TrosqyvphL3KqYbiW6 GsTjqnrvcYXjifDUvqgA7zKY2v6T944Z3LNrd51wsSzu6xG9zYUA7aRkTO8SLz+VTzje Xcgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=z5MeP68s; 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 d4si6576489edr.173.2020.10.26.04.55.21; Mon, 26 Oct 2020 04:55:43 -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=merlin.20170209 header.b=z5MeP68s; 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 S1422542AbgJZJj0 (ORCPT + 99 others); Mon, 26 Oct 2020 05:39:26 -0400 Received: from merlin.infradead.org ([205.233.59.134]:47466 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422453AbgJZJi3 (ORCPT ); Mon, 26 Oct 2020 05:38:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=JyXZi/ERFgCbfx8pduwl1A0Zv/jNhz7fITwwiik2EAE=; b=z5MeP68s5Hpby0cnErRe3vB+nX 6uoKnjd5XfNZAB+yQSWF2NvVdlUE9oELbv3oy3DJf5tA2HjasYsJkpun3eH9EzHLR/2ng1fOwP6Rh YnJQIZYLqWQBkCmZ9aWCWcsu15ute6d2QpEMjuSSRmwhj4VlYGuoJjNaBRAkp8kDfpeDbOPfuaJ9v kVkSxjk4/ZN15Br9XwdmFQEkx37oSqNiHQQoQH8Sge2jgpMDfPxRrU3HgevSV6Gb2VxIeA6B0iyuc HJVBw635zaje1ZEUcwghbGFg8QYviyfHusbtBEKyZODZ92MkRF9bRL/vVtiWQ/CaAErV+T2L83GWz IW6kD3vw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kWyxL-0001px-I0; Mon, 26 Oct 2020 09:38:24 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 15DFE301179; Mon, 26 Oct 2020 10:38:22 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 0098320325EC8; Mon, 26 Oct 2020 10:38:21 +0100 (CET) Date: Mon, 26 Oct 2020 10:38:21 +0100 From: Peter Zijlstra To: Mauro Carvalho Chehab Cc: Jonathan Corbet , Kees Cook , Linux Doc Mailing List , Ard Biesheuvel , Ingo Molnar , Jann Horn , Will Deacon , linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 49/56] refcount.h: fix a kernel-doc markup Message-ID: <20201026093821.GG2628@hirez.programming.kicks-ass.net> References: <202010231039.DE05B63@keescook> <20201023193907.GI2974@worktop.programming.kicks-ass.net> <20201023134757.628f91b7@lwn.net> <20201024082827.08ad3010@coco.lan> <20201026081059.GB2628@hirez.programming.kicks-ass.net> <20201026101620.1a11ef3e@coco.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201026101620.1a11ef3e@coco.lan> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 26, 2020 at 10:16:20AM +0100, Mauro Carvalho Chehab wrote: > Em Mon, 26 Oct 2020 09:10:59 +0100 > Peter Zijlstra escreveu: > > > On Sat, Oct 24, 2020 at 08:28:27AM +0200, Mauro Carvalho Chehab wrote: > > > If the intent is to document the struct and its internal fields, > > > this kernel-doc should work: > > > > > > /** > > > * struct refcount_struct - variant of atomic_t specialized for reference counts > > > * @refs: atomic_t counter field > > > * > > > * The counter saturates at REFCOUNT_SATURATED and will not move once > > > * there. This avoids wrapping the counter and causing 'spurious' > > > * use-after-free bugs. > > > */ > > > > > > Which produces this result: > > > > Who cares... :-( > > Anyone that would need to use refcount_t, instead of atomic_t. They can read the .h file just fine today.