From patchwork Wed Dec 20 06:24:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Muhammad Muzammil X-Patchwork-Id: 13499596 Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7919914A8D; Wed, 20 Dec 2023 06:24:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="RwV8dcQT" Received: by mail-pf1-f173.google.com with SMTP id d2e1a72fcca58-6d47bb467a9so305290b3a.1; Tue, 19 Dec 2023 22:24:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703053498; x=1703658298; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=M+Gywa6hos2k92mPKfc1Jr7T/X9o9bZ/INu1pAC6uQc=; b=RwV8dcQTVmRXqfsGZphhChrbjAbYE/NAjRcEzt+U7IRlP/QRhsW405E/ULI0RblWoh /QqjVkMKNBJzwU/bsjrT08NSLTc8junE+QtGIN2bCIwgiI/ulqFjwadLt8cWa33iZoWX WqYUBzOVlInETLnGjhFlE2Hc3wW/AvRpD31cnOYpz3XE7U21Dt2THUPdtMptOoMu2SZe myeSg/Cqy6P2rzvKwfd2Xoi3qaXxtUYHPvtkOAi0Fj09yWhRUHEQf/AvxIExShQ4kK5T HhU7LQohkPDsmr5C+txCt+azwHEnBy+t1ShRtJ6VxDHsKCpX4q9kLdawqMhDV81Y5avM 6mNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703053498; x=1703658298; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=M+Gywa6hos2k92mPKfc1Jr7T/X9o9bZ/INu1pAC6uQc=; b=LZZ9nZPnBcJLT2Lga7zuoESq3QZKSlBnG1LQjRYxXc4vDQn+X9JzY69LaL40MB46KR 4DZjaa/INxjMwlLygVtlNpAqfI7Jtsl3YFhQ6hBT//VyKiAfmRSmV+9xIzcc+gK71E6n xovJTgfFcJ4Ko6zIcZKvbAfah/VPI0Qnicf/VlsliZnVQgPLn9lY97J93dHuDI+WqGg/ Zzw+EhDatdX8Wa7/zbErhoQ28m5nD2HCcstzh4KX6yrEDgzjA8uALffC37I86eQQswCf zzCSHiou+H4Wc+GjLJShxwBqiDHilnEw/Wv0Q+1hIdRtfunujCvjNINsBIrU6vnRjYeo bOgA== X-Gm-Message-State: AOJu0YyN8kZvIKodVphXJb9hYO1vwxTl5nwN86f+hqXvveZ+iW5eypjU GpGJVVSSdulat9KQuKQpOHirugG+JBdBO6+B X-Google-Smtp-Source: AGHT+IHDqa1wvVE1/rDngwKohpTQVr0wR38rdYzcr4/wzebcnvxcCmR6HiPTENMqAWwMucNp7QEXSQ== X-Received: by 2002:a05:6a20:ba02:b0:194:1d9:aafc with SMTP id fa2-20020a056a20ba0200b0019401d9aafcmr2393121pzb.46.1703053497591; Tue, 19 Dec 2023 22:24:57 -0800 (PST) Received: from dreambig.dreambig.corp ([58.27.187.115]) by smtp.gmail.com with ESMTPSA id f16-20020a631f10000000b005cdc081bd2asm1824405pgf.24.2023.12.19.22.24.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 22:24:57 -0800 (PST) From: Muhammad Muzammil X-Google-Original-From: Muhammad Muzammil To: rdunlap@infradead.org, corbet@lwn.net, gustavoars@kernel.org Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, Muzammil Ashraf Subject: [PATCH] scripts: kernel-doc: Bug fixed for erroneous warning Date: Wed, 20 Dec 2023 11:24:46 +0500 Message-Id: <20231220062446.14511-1-muzammil@dreambigsemi.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-hardening@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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]' " .