Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6794810rdb; Fri, 15 Dec 2023 08:29:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IEM10lY4uIhV+ibOnS7qz6dlASxtOLKWmk7TkRZJ+sboFeFaj+q0tbk/ESkuTz83URUgESR X-Received: by 2002:a17:907:962a:b0:a1d:53d8:427e with SMTP id gb42-20020a170907962a00b00a1d53d8427emr7536831ejc.119.1702657752851; Fri, 15 Dec 2023 08:29:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702657752; cv=none; d=google.com; s=arc-20160816; b=ARii7J8OCQU+ZDqpzqXI6wDKlyuQ8+UmfdSCk999mJU9/GbamZu3gkrbS6ZnU7SO70 hRV1gyylRKf3EuJPbPDyemksHK6gpNchRLqwEXmc4XxsKatACKflSJ1VYQKtAGouz+76 NilgLYslvdqSUWq8GId/7j1S0KD/uWXsBVUFszgrUsIyexUOJ+mb+Zjj1/SHKQLf9W/k K8xQsed8HnVkAR8srSjZvC9a+fVHNjlzGdswK7ARFUjAaOoM8TI7MEXQxKT1LO2w8R19 GAJ6H+noejy4EFizQVJo7IwOBlK0D3yUPjuIxWOBAxtpA8qmkXEjulS8GNtlu8La7zhy 0+dA== 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:references:in-reply-to:subject:cc:to:from :dkim-signature:dkim-filter; bh=CgAKQtM1ov3AkxMJyAU3ESVKdSBQLRwSeuZfB5322bY=; fh=emOSj5aJLtCYMv4SjNQEEDwHIqneTEpBBXacSHv7zSs=; b=ZZ+mSvrwEtaxkby2aYtgpIKVnmag/g+FCqMkEH6RlwFxYOt9H3z7SMXJOR8C+mCqKA TCW/BBDlUhdxHjqmyA6q59rahpfavDXn61ZDCkpJ2K7/MOhSLxy+PqlT5QXUCm4qPKpx GdJBIwu+ozC29dMgfGvTL9Omg8oivqFsIpz63/BkFH6erkaBO2Q+KSuY9qUOZ4i6NWWh 4+IZDxHJQT79iErsag80tDxb30qTbVnm51/tdwhNr07Nns8WAcOHQ7ElTPp4I3NfMZAg erHM0KYiF1YTJp4DJjU85AfWD3RSQO/FSlsHhJsbV/EwK7P0/tXv/o5SMdN8nempWwf4 qcOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=TnXbcwOI; spf=pass (google.com: domain of linux-kernel+bounces-1294-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1294-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id bm16-20020a170906c05000b00a1c7c770507si7256335ejb.286.2023.12.15.08.29.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 08:29:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1294-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=TnXbcwOI; spf=pass (google.com: domain of linux-kernel+bounces-1294-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1294-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 9818D1F24B88 for ; Fri, 15 Dec 2023 16:29:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B67D93D3B7; Fri, 15 Dec 2023 16:28:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lwn.net header.i=@lwn.net header.b="TnXbcwOI" 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 B7BB43DB81; Fri, 15 Dec 2023 16:28:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (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 F124346A; Fri, 15 Dec 2023 16:28:56 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net F124346A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203; t=1702657737; bh=CgAKQtM1ov3AkxMJyAU3ESVKdSBQLRwSeuZfB5322bY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=TnXbcwOI46VA2bH9AFFM/xw40kwnNlHyql7QzN2kp2pGlr+589CRxYrp7KidE7aOv ByJtesSe2WmXyt83TiuFtca3ve0maZQikXiFl9ba85Xj06AtGgpc1VGi89QRabNmiW Cb8HjWTXOjvej70WL78EZo5z5KDwkatBvfiAVuE7IFE0SMRxqvIwETraOL+OuQ8o5C lWpmNLVq2bf4IQ9OsTQf/X0yheK4XxmJQoKJ2GOD5qywjRyzUnmHiGVXl2tUp/8tDj B/+yFSHi+UWHr6NeD6TVAJSSEcInr+8YYCOdqfc15oI6H4by+XlMXI50Qdvvbm4dPb XMy9wjAJ4JfkA== From: Jonathan Corbet To: Randy Dunlap , linux-kernel@vger.kernel.org Cc: Randy Dunlap , Mauro Carvalho Chehab , linux-doc@vger.kernel.org Subject: Re: [PATCH] scripts/kernel-doc: restore warning for Excess struct/union In-Reply-To: <20231214070200.24405-1-rdunlap@infradead.org> References: <20231214070200.24405-1-rdunlap@infradead.org> Date: Fri, 15 Dec 2023 09:28:56 -0700 Message-ID: <875y0zqvjr.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 Randy Dunlap writes: > The warning for Excess struct or union member description was > removed when the $nested parameter of check_sections() was removed. > This causes some kernel-doc notation warnings to be missed. > > Recently the kernel test robot somehow reported an Excess member. The > code in kernel-doc has not issued that warning since kernel v4.16, so I > don't know how the robot did it. (See the Link for the report.) > > drivers/net/wireless/intel/iwlwifi/fw/dbg.c:86: warning: Excess struct/union/enum/typedef member 'trans_len' description in 'iwl_fw_dump_ptrs' > > I patched that warning away even though I could not reproduce the > warning from kernel-doc. The warning should be issued for extraneous > struct member or union member description, so restore it. > > Fixes: 1081de2d2f91 ("scripts: kernel-doc: get rid of $nested parameter") > Signed-off-by: Randy Dunlap > Link: https://lore.kernel.org/all/202312060810.QT9zourt-lkp@intel.com/ > Cc: Mauro Carvalho Chehab > Cc: Jonathan Corbet > Cc: linux-doc@vger.kernel.org > --- > scripts/kernel-doc | 7 +++++++ > 1 file changed, 7 insertions(+) *sigh* This adds nearly 600 new warnings. Anybody gonna help fix them? Of course, most of them are duplicates. Someday it would be really nice if we could find a way to only emit each warning once. Anyway, I've applied it. Thanks, jon