From mboxrd@z Thu Jan 1 00:00:00 1970 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 8FB85BA49; Sat, 14 Jun 2025 15:35:34 +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=1749915334; cv=none; b=Q0bAyFNwstEWYPe6uWHD0z+E8p3fuFxqiw1YUCTpgXZt0MUKc1v0V7NtdcZfh/Igi7G8tpR/ltV9PLpeh5irEYjaBZ8fUuFINkk2/ZbG+3afXQK0qggLmEeSDNiHiwiMjvhR043CwnNmCL9ATq0EuIkYyYuEAxFinow8Cu45MoI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749915334; c=relaxed/simple; bh=ejpJV221trzwYJvf1TsCy4LrSL+qVaKDtjf6IfJzEhA=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=VGzE9e+VsRjfY1xYjWevVKgkXVdDOw/9xUi0j+bpzj0xivXImJpwLWYL7bfBjP0lO9jDfWNg6HG891bzLLM/pjyBOnH+HRPaa5hoLTPSedGO9mwI/KQg42t18/2HTPtlba7LTxHd4zFIlb4iskFSbga8ThtlUH6viKWINLtVHJo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=omw4a+VT; 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="omw4a+VT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2C02DC4CEEB; Sat, 14 Jun 2025 15:35:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1749915334; bh=ejpJV221trzwYJvf1TsCy4LrSL+qVaKDtjf6IfJzEhA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=omw4a+VTYNL8f2CICm437rg/Ano6GHNU46bGEtkC89eF+qUmB1wG6plsm2GOB2l2N oEYYqCyGY8OgMrAdwSG8AK/ygA9p7wdGnlBol2wK46l11SKFrR6ImQcNuppD7Op6iH w9ao4bjWMOSeQoSz2ZwLGx5mwUz5KX+pS6TI6AQryAHVRGCrO0A432kK+Sd+oURr0O 3q122Yr4zQ9bYDrdcLp2oj2yyYRxCOiQEwJIa8/qROIvhy7DuX6fjXH75YnClbhKQu Wg6l4ChJ2hXLHzpViZQNm8OqVIRR9X5n79YXN4TAL7ppHk+4zF+fgW5fZKeeUrYQvF 1zp2uWcF0Va9Q== Date: Sat, 14 Jun 2025 17:35:26 +0200 From: Mauro Carvalho Chehab To: Donald Hunter , Jonathan Corbet Cc: Linux Doc Mailing List , Akira Yokosawa , Breno Leitao , "David S. Miller" , Eric Dumazet , Ignacio Encinas Rubio , Jan Stancek , Marco Elver , Paolo Abeni , Ruben Wauters , Shuah Khan , joel@joelfernandes.org, linux-kernel-mentees@lists.linux.dev, linux-kernel@vger.kernel.org, lkmm@lists.linux.dev, netdev@vger.kernel.org, peterz@infradead.org, stern@rowland.harvard.edu Subject: Re: [PATCH v4 07/14] tools: ynl_gen_rst.py: move index.rst generator to the script Message-ID: <20250614173526.2fe415e7@foz.lan> In-Reply-To: References: <31466ece9905956c2e1a3d3fc744cfc272df5d88.1749891128.git.mchehab+huawei@kernel.org> X-Mailer: Claws Mail 4.3.1 (GTK 3.24.49; x86_64-redhat-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Em Sat, 14 Jun 2025 15:15:25 +0100 Donald Hunter escreveu: > On Sat, 14 Jun 2025 at 09:56, Mauro Carvalho Chehab > wrote: > > > > The index.rst generator doesn't really belong to the parsing > > function. Move it to the command line tool, as it won't be > > used elsewhere. > > > > While here, make it more generic, allowing it to handle either > > .yaml or .rst as input files. > > I think this patch can be dropped from the series, if instead you > remove the index generation code before refactoring into a library. Works for me. I'll wait for you and Jon's comments with regards to the location before sending a new version. Regards, Mauro > > > Signed-off-by: Mauro Carvalho Chehab > > --- > > scripts/lib/netlink_yml_parser.py | 101 ++++++++--------------------- > > tools/net/ynl/pyynl/ynl_gen_rst.py | 28 +++++++- Thanks, Mauro