Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp190977rdh; Mon, 18 Dec 2023 16:20:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IGchrFEjTJv75yueBx9Ok5wz8/VEKynFbaF9ErwLK5XthjYz12WUqOV19vz6tPHac1qnv3R X-Received: by 2002:a05:6e02:20e2:b0:35f:b151:c5d4 with SMTP id q2-20020a056e0220e200b0035fb151c5d4mr3217225ilv.27.1702945256167; Mon, 18 Dec 2023 16:20:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702945256; cv=none; d=google.com; s=arc-20160816; b=rS2c3W6nU9pwBrA+kK4cUSlmTRXS5V9hdKgw4RDRtbnl/kG3W5j62ouSfKYsUxaOom Yy0px8XaUAlFOXqu4LZuwRVKavNKBv4YeHTDDldOFIfbBtyVErMbDTavslDEcgVYqpxc tItTXmyCpRXRucTYW7iSV4+N1Dl3wuChhe/RZE+QUV3aIH/GzOYv+z9SYk30xDDmWl3G 6NHN2J/Fb2ZdHjkPyYzYQqxXsgUQjhSlq54mSP8CfcKFW2UBGUNyDGuUW7Eurn+noPuI hx8RLxrEwT0b/QvqjUS1PWCyVcTolNYIloucPw4rs+1AyzmfqrItv9YRtxtd6T7jN8EJ /EWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=QBT2MHBx+y5abq1sXonRsiucdEtIv/n+gKwOtgqZBuo=; fh=JztXY4WW5IXHcQ9PnZCywzjUZPqGuKTWZ7IrRSKWkJ4=; b=u9NhumO2rTTqU53PSczgd3/vomGfGWxRMTd+H7mMmixexjPO7dhmz4VrJu65Yq9++G 7Jk8+meQk5ntZcVBFPwwJW35YhTn4M3NDRT/1KQIiAXLs1X83DwBPdSC2cfgoXnM9DIJ 95KBUfj9u2rZXFYtpqN1wlf/OZNcDaa7DSfEVHbo3cz3E0Q1lpQ2CKVGJA1f8h9El/+v CnoS5TreqYogHioNjr8/ZxUGrQjduLSseap4OA0wlZpzMHKercDYI4pOUqBwfpMTTSsV a1A0HBJMfmhagOHH87rD/Kly6b47vS/oT6YYBgpyI0FjLtGCIZHD1+/Uf0gScOTgb9c/ EbqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=aiw8NLPg; spf=pass (google.com: domain of linux-kernel+bounces-4516-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4516-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lwn.net Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id r69-20020a632b48000000b005ca4098bf5esi10892127pgr.613.2023.12.18.16.20.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 16:20:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-4516-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=@lwn.net header.s=20201203 header.b=aiw8NLPg; spf=pass (google.com: domain of linux-kernel+bounces-4516-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4516-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lwn.net 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 40F68282016 for ; Tue, 19 Dec 2023 00:20:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C57597E1; Tue, 19 Dec 2023 00:20:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lwn.net header.i=@lwn.net header.b="aiw8NLPg" X-Original-To: linux-kernel@vger.kernel.org Received: from ms.lwn.net (ms.lwn.net [45.79.88.28]) (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 7B55810E3; Tue, 19 Dec 2023 00:20:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lwn.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lwn.net Received: from localhost (unknown [IPv6:2601:280:5e00:7e19::646]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id 687F32E5; Tue, 19 Dec 2023 00:20:46 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net 687F32E5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203; t=1702945246; bh=QBT2MHBx+y5abq1sXonRsiucdEtIv/n+gKwOtgqZBuo=; h=From:To:Cc:Subject:Date:From; b=aiw8NLPgeOujllSLA3waUlFDJ101gJ/kWdM5r/H2WIeQZPfmc0RE6lj9xZ52nm94C 06Db9JgfNR0m34PZfjXwhJez12hj0KMnjxtvY5v6GRCoH9ZKhLGCN5E/y6Mlv3hLEB js8W4OXhoioGHkSjFULBM3vCId9q+hAl7262N6LFoL6EEHatUUGkE93um3fSNjeNe5 Cj3BN5LWak1i+MPJX8CO7h19Tn/aLXoiioWlc9VqELpp/Gi5aM2ZISq00dNDvp1AJs KUg4DsqMj9IVIATn2/mJpP6951jjE9UY4C0UIdrz8Ofock1wTiEpbnTOSwrpLF8cPg nzCLPQIOOU+Zg== From: Jonathan Corbet To: linux-doc@vger.kernel.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH] docs: ignore __counted_by attribute in structure definitions Date: Mon, 18 Dec 2023 17:20:45 -0700 Message-ID: <87le9rjb4y.fsf@meer.lwn.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain kernel-doc appeared to ignore __counted_by, but appearances can be deceiving; it caused member names to not be recognized, which manifested as a number of spurious "Excess struct member" warnings. Filter that attribute out and reduce the warning onslaught slightly. Signed-off-by: Jonathan Corbet --- scripts/kernel-doc | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/kernel-doc b/scripts/kernel-doc index df158c3a9abc..6acc39c56ac3 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc @@ -1143,6 +1143,7 @@ sub dump_struct($$) { # strip attributes $members =~ s/\s*$attribute/ /gi; $members =~ s/\s*__aligned\s*\([^;]*\)/ /gos; + $members =~ s/\s*__counted_by\s*\([^;]*\)/ /gos; $members =~ s/\s*__packed\s*/ /gos; $members =~ s/\s*CRYPTO_MINALIGN_ATTR/ /gos; $members =~ s/\s*____cacheline_aligned_in_smp/ /gos; -- 2.43.0