Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6355058rdb; Thu, 14 Dec 2023 16:25:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IHzwcpCXl7Hh3wkN4oLjX/7GI2v3ArBnwg5ga6CeAdvrJPLtgDOge0p4bdKdxTZWcOEzNdL X-Received: by 2002:a05:6a20:9481:b0:18b:37b4:e6a7 with SMTP id hs1-20020a056a20948100b0018b37b4e6a7mr5407145pzb.7.1702599918355; Thu, 14 Dec 2023 16:25:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702599918; cv=none; d=google.com; s=arc-20160816; b=ILwC9Sj/qoXASGul4TWQRhb3cJYxrO/xUfqloigciGE2hZA4Uk80dRkUo/wcTbkjJi sDyo6OiRIh6YgmZ9Kgn62lQLczNxxP1XbtAOfk8SE2J9sbQVUC7tg82SaJAslcFUsktQ 4SoMufrc3U6YeArMVOKWtslTZvC4MdTykoVNRZfcLmeJ2USjSnrksa0ka9ZutJyp5XVi yPKTuKuZbVULr59ofEwp3GKIEjquP9qJdkGWJIUvpKYeoSX1ghTl/amIAYENPVYBf/l3 AVcnPEjpQyNcdFNRieLaY0JE2e/jcSiFlOcUIPYf1DWMw4R01z387QnXnUzDsGN/qJCv 20pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=JFWfhbeTwDASZ337P19lefmMmN0AmzjVJlFATdWyObU=; fh=NyiHu0PxkMUufdVffihxFHvuewqRNoBh+If8Oq7kA5w=; b=oy2u1IyepXea6kK29CCg9/mXCrPu9GUnylN6taWQHMrmUh/XKOW/pXA/mNcyIfgxI6 0kl5J0bp+y9RCTUuU9nRAt8MzCrsdvwbGY7RZnVAyl6flYMwrJDbenMnntY+1/nQsmHB CDRAuyjVYzkSqlqcsG/y14t3vPWu3BQXlzG6UNqDsiMaBWQ3ABwXZ6k9V9tv0LezLnpe xS3S3vume9cGk738mVWy7Mnlg48ACLmhFbg+GITdE9oJgVMDPXmsOUt6k4aKc/sRfp0E J0/nLTSKLEzxBQsLj5poZBLK4ADDQ/HJg+7I5BAM0IHCpplerGdVDtDf31bkn4/Wm66g TUBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=HyzXi8PA; spf=pass (google.com: domain of linux-kernel+bounces-286-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-286-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id b15-20020a170902b60f00b001cf5d537eb6si4558573pls.190.2023.12.14.16.25.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 16:25:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-286-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=HyzXi8PA; spf=pass (google.com: domain of linux-kernel+bounces-286-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-286-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 04286283F07 for ; Fri, 15 Dec 2023 00:25:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0787262F; Fri, 15 Dec 2023 00:25:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="HyzXi8PA" X-Original-To: linux-kernel@vger.kernel.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EF24920F7; Fri, 15 Dec 2023 00:25:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=JFWfhbeTwDASZ337P19lefmMmN0AmzjVJlFATdWyObU=; b=HyzXi8PAmRO/+DNsjoC+lMtqvO t6IjeWDC1uIlZiahXutT4wahuT599cofu+3DjUOHEYAeh4I+LAJX0pB5i+617GTXO/JnhytUibKFI jFLQWgSXU+sEgUl4koCW8Ob3Yne36UmElcfypDwQ5JGjrHKosvrs+7ku6SllMPiwIofi+cHxzFrQa EzTXADwZVNUmHpoCjdTubcu7F0cCJ86eJFV0n9LgyN59kZ1I4KlhSsmkHzyjLK1Ok0hkfXIWcYinV E4k88qMn0m/awPz96EV+DbMoPNzFQoL3t97Vxr8uw6DBSAhwyqMBjDQxBt/r7BkveUKZsdsoR6xIe /v/IrbHg==; Received: from [50.53.46.231] (helo=[192.168.254.15]) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rDw0k-001dLv-23; Fri, 15 Dec 2023 00:25:02 +0000 Message-ID: Date: Thu, 14 Dec 2023 16:25:01 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] docs: conf.py: Ignore __counted_by attribute Content-Language: en-US To: Kees Cook , Jonathan Corbet Cc: kernel test robot , "Gustavo A. R. Silva" , linux-doc@vger.kernel.org, linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org References: <20231215001347.work.151-kees@kernel.org> From: Randy Dunlap In-Reply-To: <20231215001347.work.151-kees@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 12/14/23 16:13, Kees Cook wrote: > It seems that Sphinx is confused by the __counted_by attribute on struct > members. Add it to the list of known attributes. > > Reported-by: kernel test robot > Closes: https://lore.kernel.org/oe-kbuild-all/202312150614.kOx8xUkr-lkp@intel.com/ > Cc: Jonathan Corbet > Cc: "Gustavo A. R. Silva" > Cc: linux-doc@vger.kernel.org > Cc: linux-hardening@vger.kernel.org > Signed-off-by: Kees Cook > --- > Documentation/conf.py | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Documentation/conf.py b/Documentation/conf.py > index d4fdf6a3875a..5898c74b96fb 100644 > --- a/Documentation/conf.py > +++ b/Documentation/conf.py > @@ -106,6 +106,7 @@ if major >= 3: > "__weak", > "noinline", > "__fix_address", > + "__counted_by", > > # include/linux/memblock.h: > "__init_memblock", If Sphinx needs to know about that, then fine. OTOH, for scripts/kernel-doc, a similar change could have been made to dump_struct(), along with these others: # strip attributes $members =~ s/\s*$attribute/ /gi; $members =~ s/\s*__aligned\s*\([^;]*\)/ /gos; $members =~ s/\s*__packed\s*/ /gos; $members =~ s/\s*CRYPTO_MINALIGN_ATTR/ /gos; $members =~ s/\s*____cacheline_aligned_in_smp/ /gos; $members =~ s/\s*____cacheline_aligned/ /gos; -- #Randy https://people.kernel.org/tglx/notes-about-netiquette https://subspace.kernel.org/etiquette.html