Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp383591rdb; Tue, 19 Dec 2023 22:50:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IEDXtWxRmwwAQZLsLPouAPrbgVEjuJ7O6F+W8SzyXoyzb5+eBsIODpdC0gLoFcjsw67c9u9 X-Received: by 2002:a17:907:9189:b0:a23:6c63:30a3 with SMTP id bp9-20020a170907918900b00a236c6330a3mr2009905ejb.32.1703055006766; Tue, 19 Dec 2023 22:50:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703055006; cv=none; d=google.com; s=arc-20160816; b=L7RK48XghJ4poaScyfBQupm8nQ3V0Qddxe9noRF4hBsMh6LTOaLcuAU9GmaBCJ3INr 4aaZdMhsrASWZyghW39fjUaF6JwcN0WIN0AtZnWqAB4NNx+x8Amdeune7P7CvEQV/9Av 6SuYC0G3g+PgI4X+BjcM+VzbQlXsyMHF/RS056YQIGsApkk1CIkE9bfcIb0BxBRkusEq h6pGu2Ww101xJnlgUxwlljjHRsH9Y0fVvTNj9BtYuZaiNXPJiD6fduJAknBfvyG1MiMg x5DIF5FeZ78ynnEhyPXRRdnfqkJO5oKyXqd0hSGc+X7tacPtsVfUqNlrQDlPxhpjH0Q/ HTSQ== 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=CLJcevJg8ePh6WU3ddptLA4N7F3zd833b6TMvJ3Gz4o=; fh=njRHGAGEgfpHNfjXXzA7k4gzlVIlTElgdKYAmvXDvqk=; b=ssyTtU9XdwhAlDJF45gUpvCVoEtM1ZLxxNBc3hKyr2SqreeKyMiOKRnU3wPk35xArj XkZCr8qC+PzFtWSKLCFhL/hiG0D1/ieli3ECYPdLkANalk011wvizyk3ID9wOFr2ErVu eILry4Qvvuh7oVqpiAmzv4N9SRFr8HSbJ1pCineEOsNrOqEdJo0yksf9thbpHwH9zovB /ZeYJjNZyCX2S1BOHA3MiWqxudts4vFihNo9oTmRh0t0vcFNe1YnwIUY9rjUtwdMwvzf RMiMZfTojNDOB6z8qnWOeQmQKUyjWXt4yobAdBduT6gqdza+4+1BvY50IUpbfY1auhjT PzAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=CpwZpYqj; spf=pass (google.com: domain of linux-kernel+bounces-6437-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6437-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id q26-20020a1709064c9a00b00a1f78a5b5c1si10990665eju.613.2023.12.19.22.50.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 22:50:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6437-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=CpwZpYqj; spf=pass (google.com: domain of linux-kernel+bounces-6437-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6437-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 81F8B1F26024 for ; Wed, 20 Dec 2023 06:50:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6021813AF3; Wed, 20 Dec 2023 06:49:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="CpwZpYqj" 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 84729168C4; Wed, 20 Dec 2023 06:49:55 +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=CLJcevJg8ePh6WU3ddptLA4N7F3zd833b6TMvJ3Gz4o=; b=CpwZpYqjLJSEUWoJzmtt/m5BTK ZzcaZe9X0HGRtBtlP11C0DiUVPgr2IQ0lXpJ2cbYyBLSJEJuttvlArFm9SvZ2xpwwrhKFhQrTrCRP SAx2xkjsFSZPS/x37e5gI+bDjwNZUXGjHjXZuyn7yyfjLya29GSW7oU7TPlAYi/7m01Bi+KRqGkk9 HTvL6ZiCG45+jOTWLBWExjjuIm5hUdyPBLkcLyvMUIjU/0FHofjB/jOym4AxtlWCE/aEyifBYzZqG bkeKuP7afS7OZqRDoEt4pkh2uvlc4+EKoc2H6dcXAe4Bf3wTn0KilgOsqotFyUIpftLhND8ZuUdCN WeSKKtlg==; 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 1rFqOw-00GKeE-1R; Wed, 20 Dec 2023 06:49:54 +0000 Message-ID: Date: Tue, 19 Dec 2023 22:49:54 -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] scripts: kernel-doc: Bug fixed for erroneous warning Content-Language: en-US To: Muhammad Muzammil Cc: corbet@lwn.net, gustavoars@kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org References: <20231220062446.14511-1-muzammil@dreambigsemi.com> <4155c90e-cdb1-4645-8bcc-fed4ea01ac83@infradead.org> From: Randy Dunlap In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 12/19/23 22:35, Muhammad Muzammil wrote: > HI, > > 1) I already have the below patch but it does not work. > https://lore.kernel.org/linux-doc/20231215001347.work.151-kees@kernel.org/ > > 2) When I applied the below patch. It works. > https://lore.kernel.org/linux-doc/87le9rjb4y.fsf@meer.lwn.net/ Thanks! > On Wed, Dec 20, 2023 at 11:29 AM Randy Dunlap wrote: >> >> Hi, >> >> On 12/19/23 22:24, Muhammad Muzammil wrote: >>> From: Muzammil Ashraf >>> >>> kernel-doc: fixed erroneous warning generated by '__counted_by' >>> >>> Signed-off-by: Muzammil Ashraf >>> --- >>> scripts/kernel-doc | 1 + >>> 1 file changed, 1 insertion(+) >>> >>> diff --git a/scripts/kernel-doc b/scripts/kernel-doc >>> index 1484127db104..ea9688df0e93 100755 >>> --- a/scripts/kernel-doc >>> +++ b/scripts/kernel-doc >>> @@ -1661,6 +1661,7 @@ sub check_sections($$$$$) { >>> } >>> elsif (($decl_type eq "struct") or >>> ($decl_type eq "union")) { >>> + next if (index("@_", "__counted_by") != -1); >>> emit_warning("${file}:$.", >>> "Excess $decl_type member " . >>> "'$sects[$sx]' " . >> >> One of both of these patches should be enough. Can you test these >> instead of your patch, please? >> >> https://lore.kernel.org/linux-doc/20231215001347.work.151-kees@kernel.org/ >> >> https://lore.kernel.org/linux-doc/87le9rjb4y.fsf@meer.lwn.net/ >> >> Thanks. >> >> -- >> #Randy >> https://people.kernel.org/tglx/notes-about-netiquette >> https://subspace.kernel.org/etiquette.html -- #Randy https://people.kernel.org/tglx/notes-about-netiquette https://subspace.kernel.org/etiquette.html