Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp737052pxu; Fri, 23 Oct 2020 12:00:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhLosrsJ0DQ3FNOK4oYiBoceAN3VXyXnwbypJmQDJUH+N3L0ENR5dy89ukYYvM1N5gJW5g X-Received: by 2002:a17:906:34d1:: with SMTP id h17mr3318823ejb.87.1603479654504; Fri, 23 Oct 2020 12:00:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603479654; cv=none; d=google.com; s=arc-20160816; b=VV5RvbE6wM5pyr7h2uytKPCK8IPU4cE8Nmg4KpD+qYJqTYc0mt1Pv8g2VC9LsKvKfw 3KwG7gpvdP4f6Bgh432BaVrx9EwekTbs6duJloOGCV4aG7Wie3/ahhMKqH174v7VYJYv q4CKZffi+YGOToSPIfsC1qOCXhkfl8oSE3xV7AxsO/6jXSIY5kPzNhVaisPuyiZ3+yc1 NHXTe0rtDvqlKW1EZDHWnOj+8s/5HzhixI0NICg6gLZIozUI6dt7UpRokzVPjSg4BrWT lO29Iabjn9V6FeRMQ+yoEvcvY/SYq3aDxXLRXxu8vzsXQkKqZ9i7QZPQOAyeW6TNXoFg HY+w== 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=ZqP+pDAqwl0vm0EDa5k2rDU/fo01GdgiAMIENZpdsv8=; b=MssD+5JA2E3oK+ABwJPHYcYYQM0XNmfL8g6negIzvQ7r+eGNsE7tMkpVJRDZyYmltm vEpu0eIafAZQLfsj1Z+GZKJLwRowDICFv1JDGWm1NyCCCU93dWbiBAJiTp084A4onA4m Y5rKGjrA81kHRdhyMOPoikKoc23lpgX6O/QpmqOvbiIZcBRdU0XMTX2GCxfyxB7s/Agc 04pYGWd595XZ0DZkfDSv5+HYP6Zda1Swek5QPPzsdw94CcP27JqVl0AAEu7AKwY9g2fe 96FHxo814GlrTjJ+McgY1O9pZq95C7J6+/KxSY/g2Zm1bYZf+LQUIhVBGlTSZNbskXan ltLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=mj2T49J8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j12si1396957edy.197.2020.10.23.12.00.32; Fri, 23 Oct 2020 12:00:54 -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=@chromium.org header.s=google header.b=mj2T49J8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753648AbgJWRkN (ORCPT + 99 others); Fri, 23 Oct 2020 13:40:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753644AbgJWRkN (ORCPT ); Fri, 23 Oct 2020 13:40:13 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B91DCC0613CE for ; Fri, 23 Oct 2020 10:40:11 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id i26so1463825pgl.5 for ; Fri, 23 Oct 2020 10:40:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=ZqP+pDAqwl0vm0EDa5k2rDU/fo01GdgiAMIENZpdsv8=; b=mj2T49J8gQrFFhGKsZgQtKxY6nwyDd/Lnm8MbigzTINw9idCg+Zh7Avel0YyxyiPNI 7ajVBvQ7xY9MGEW1BVpHZzR9fnaix9drV82PY/rwqxzihi6o64MnanSr1etwLEefw0eS LuhVSmg+s89rKvzqg6jY5Nf9X+/eP96X3Ao+Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ZqP+pDAqwl0vm0EDa5k2rDU/fo01GdgiAMIENZpdsv8=; b=jd/PULQd+A8ip7GpztZEGp9SlNSz+wgNR393C1muZZg4uuN9/5IfMq2g1NfMY6SehJ nBQDb9ZXMaim3bCJNkbkcC5xAYdBRzebj6zry3hVNDYxysuJGREL1TETcYUAHIqis39R cWUI+C4bS/INaHW+K+KXrWiSgQIz2Nlhy0bMkazM/t5VFM5HafgwMiuthAZnr11n4UhR Il7awL4iVgWdfCmda3jh3OBqWleTu0WKq5u+dJCxrH4nX2SPBih8CXgjU+d9HbbAlkQ3 JzxwIDfTM2TE1rsrQZjii1/hIheVIZuwwhVfB9Aa4ZHE83J6J8DzWuSMB1oh5xg27WAi kVIg== X-Gm-Message-State: AOAM531IA/AmCzEm8d7ra5CH+2Szi/t8grMPnken0MniU0cJR/TOEyQu B8v56KFcdwuo4jJtiY/wHMZxRw== X-Received: by 2002:a63:2d05:: with SMTP id t5mr2935833pgt.178.1603474811368; Fri, 23 Oct 2020 10:40:11 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id t129sm2695390pfc.140.2020.10.23.10.40.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Oct 2020 10:40:10 -0700 (PDT) Date: Fri, 23 Oct 2020 10:40:09 -0700 From: Kees Cook To: Mauro Carvalho Chehab Cc: Linux Doc Mailing List , Jonathan Corbet , Ard Biesheuvel , Ingo Molnar , Jann Horn , Peter Zijlstra , Will Deacon , linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 49/56] refcount.h: fix a kernel-doc markup Message-ID: <202010231039.DE05B63@keescook> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 23, 2020 at 06:33:36PM +0200, Mauro Carvalho Chehab wrote: > The documented typedef just after the kernel-doc markup > is named "refcount_struct". > > Signed-off-by: Mauro Carvalho Chehab > --- > include/linux/refcount.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/linux/refcount.h b/include/linux/refcount.h > index 497990c69b0b..8f431b0e69e4 100644 > --- a/include/linux/refcount.h > +++ b/include/linux/refcount.h > @@ -101,7 +101,7 @@ > struct mutex; > > /** > - * struct refcount_t - variant of atomic_t specialized for reference counts > + * struct refcount_struct - variant of atomic_t specialized for reference counts Hm, this is a weird one. Yes, it's actually "struct refcount_struct", but the usage should be refcount_t (through the typedef). I'm not sure what the right way to document this is. -Kees > * @refs: atomic_t counter field > * > * The counter saturates at REFCOUNT_SATURATED and will not move once > -- > 2.26.2 > -- Kees Cook