]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ynl: make the tooling check the license
authorJakub Kicinski <kuba@kernel.org>
Wed, 15 Mar 2023 23:03:51 +0000 (16:03 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 17 Mar 2023 04:22:44 +0000 (21:22 -0700)
commitcfab77c0b54583816faac5f9abdf588c13895a9d
treec685a68f1745c443da27948d0fa02410290b58b2
parent4e16b6a748df52800c90f3ab181aef8129bd332f
ynl: make the tooling check the license

The (only recently documented) expectation is that all specs
are under a certain license, but we don't actually enforce it.
What's worse we then go ahead and assume the license was right,
outputting the expected license into generated files.

Fixes: 37d9df224d1e ("ynl: re-license uniformly under GPL-2.0 OR BSD-3-Clause")
Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/lib/nlspec.py
tools/net/ynl/ynl-gen-c.py