Re: Concerns with em.yaml YNL spec
From: Donald Hunter
Date: Mon Dec 15 2025 - 05:59:08 EST
Changwoo Min <changwoo@xxxxxxxxxx> writes:
> Hi Donald,
>
> Thanks for the feedback. I rearranged a paragraph in the original email
> for easier reply.
>
> On 12/12/25 00:54, Donald Hunter wrote:
>> Hi,
>>
>> I guess the patch series was never cced to netdev or the YNL
>> maintainers so this is my first opportunity to review it.
>>
>
> You are right. I think I ran get_maintainer.pl only before adding
> em.yaml. That's my bad.
>
>> I just spotted the new em.yaml YNL spec that got merged in
>> bd26631ccdfd ("PM: EM: Add em.yaml and autogen files") as part of [1]
>> because it introduced new yamllint reports:
>> make -C tools/net/ynl/ lint
>> make: Entering directory '/home/donaldh/net-next/tools/net/ynl'
>> yamllint ../../../Documentation/netlink/specs
>> ../../../Documentation/netlink/specs/em.yaml
>> 3:1 warning missing document start "---" (document-start)
>> 107:13 error wrong indentation: expected 10 but found 12 (indentation)
>>
>
> I will fix these lint warnings. Besides fixing those warnings, it would
> be useful to mention running lint somewhere. If there is a general
> guideline for adding a new netlink YAML, I will revise it in a separate
> patch.
I have a patch ready for the next merge window that adds a lint target.
For now you can run:
yamllint Documentation/netlink/specs
You're right, we don't have a guide for adding new netlink YAML but
that's something I should add to the series I have pending.
Thanks,
Donald.