From nobody Fri Dec 19 20:42:12 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 53C65212FB3; Tue, 15 Apr 2025 03:13:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744686800; cv=none; b=GZOdL/HbqZ8oKTU3bUR9DTPENYHig3XAWlK2jEXwjmWk4lwcwVEyhyK1uqkARC3vxtu3Alu8s1DIfMKKdXKH/IrXjjZNUOExXwsOcFmx9Of3WLH639AcMpbL0EhZ/7A4z66uSslNB+TpGWHEaPJnbAWXUCn1eTJvFmjoqZWqFSA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744686800; c=relaxed/simple; bh=+p0de2nK08IJUNkWKnZ2hUub4wqLuqIa0QBeJgsqMJI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=p4B9UGnwBYSKjPxXAXoBTqqP+VqZ2qkXtMtSWNrL0sQdVR8/TewC4DDTpYDih4x3/XpABg8bgF2TE3yt3VKydBo+Q1nG6zSu8hMJUCEakZxoCadKbqdOoacVnjytdRPmExvAunOSQA9Pvytv84RqtUZspmGmHh6jaVg3+sefEJM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=S6mUBNXX; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="S6mUBNXX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BD996C4CEEB; Tue, 15 Apr 2025 03:13:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1744686799; bh=+p0de2nK08IJUNkWKnZ2hUub4wqLuqIa0QBeJgsqMJI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=S6mUBNXXJvrHcnDdmS6V8pEUa0PNOvNOMEtD8gmuvwfk++DmBYDsALFL71Wb0IaMP ik+ipXVY/GjwvNF2DKnqxcUr6El/oRrD5y3U2Act8+eTzRCn8u6Ioc3uC3mLeCCX4e ON2NIbHxVVUBWGalmCVcM34Eg70Ypoy6pBJswpqS1zr4dly+BuC9cdsR5E4ocbTdGh SbDC4p+rDkspf7hb7TXn/Kxkp9zZa0d0zvs90AnEUUquN52D/nq2DCwNsnLhhu1MDQ PFo5u6Og0g8aX1iYabA0tj4Sx3wn3i7Mya4/SpHP+Ji7P+uG+9V9Rv5HROENVUbL/+ hboahppDYCBcg== Received: from mchehab by mail.kernel.org with local (Exim 4.98.2) (envelope-from ) id 1u4WjU-00000002FHD-3pPT; Tue, 15 Apr 2025 11:13:08 +0800 From: Mauro Carvalho Chehab To: Linux Doc Mailing List Cc: Mauro Carvalho Chehab , "Jonathan Corbet" , linux-kernel@vger.kernel.org Subject: [PATCH 1/4] scripts/lib/kdoc/kdoc_files.py: don't try to join None Date: Tue, 15 Apr 2025 11:12:48 +0800 Message-ID: <4334d16f14cfd93e611b290fb56c35d236cadcb7.1744685912.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: Mauro Carvalho Chehab Content-Type: text/plain; charset="utf-8" If out_msg() returns None, it means that an unknown declaration was found. Avoid letting the script crash on such case. Signed-off-by: Mauro Carvalho Chehab --- scripts/lib/kdoc/kdoc_files.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/lib/kdoc/kdoc_files.py b/scripts/lib/kdoc/kdoc_files.py index dd003feefd1b..2e51e5f3bb77 100644 --- a/scripts/lib/kdoc/kdoc_files.py +++ b/scripts/lib/kdoc/kdoc_files.py @@ -270,13 +270,16 @@ class KernelFiles(): =20 msg =3D "" for name, arg in self.results[fname]: - msg +=3D self.out_msg(fname, name, arg) + m =3D self.out_msg(fname, name, arg) =20 - if msg is None: + if m is None: ln =3D arg.get("ln", 0) dtype =3D arg.get('type', "") =20 self.config.log.warning("%s:%d Can't handle %s", fname, ln, dtype) + else: + msg +=3D m + if msg: yield fname, msg --=20 2.49.0