bpftool: Add SPDX tags to RST documentation files
authorQuentin Monnet <quentin@isovalent.com>
Mon, 15 Nov 2021 22:58:42 +0000 (22:58 +0000)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 16 Nov 2021 12:56:22 +0000 (13:56 +0100)
Most files in the kernel repository have a SPDX tags. The files that
don't have such a tag (or another license boilerplate) tend to fall
under the GPL-2.0 license. In the past, bpftool's Makefile (for example)
has been marked as GPL-2.0 for that reason, when in fact all bpftool is
dual-licensed.

To prevent a similar confusion from happening with the RST documentation
files for bpftool, let's explicitly mark all files as dual-licensed.

Signed-off-by: Quentin Monnet <quentin@isovalent.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20211115225844.33943-2-quentin@isovalent.com
14 files changed:
tools/bpf/bpftool/Documentation/Makefile
tools/bpf/bpftool/Documentation/bpftool-btf.rst
tools/bpf/bpftool/Documentation/bpftool-cgroup.rst
tools/bpf/bpftool/Documentation/bpftool-feature.rst
tools/bpf/bpftool/Documentation/bpftool-gen.rst
tools/bpf/bpftool/Documentation/bpftool-iter.rst
tools/bpf/bpftool/Documentation/bpftool-link.rst
tools/bpf/bpftool/Documentation/bpftool-map.rst
tools/bpf/bpftool/Documentation/bpftool-net.rst
tools/bpf/bpftool/Documentation/bpftool-perf.rst
tools/bpf/bpftool/Documentation/bpftool-prog.rst
tools/bpf/bpftool/Documentation/bpftool-struct_ops.rst
tools/bpf/bpftool/Documentation/bpftool.rst
tools/bpf/bpftool/Documentation/common_options.rst

index 692e1b947490cfdef3a5df25179463ea743e4c78..ac8487dcff1d7fd3d0b3359bfa2c18be4581a6ad 100644 (file)
@@ -24,7 +24,7 @@ man: man8
 man8: $(DOC_MAN8)
 
 RST2MAN_DEP := $(shell command -v rst2man 2>/dev/null)
-RST2MAN_OPTS += --verbose
+RST2MAN_OPTS += --verbose --strip-comments
 
 list_pages = $(sort $(basename $(filter-out $(1),$(MAN8_RST))))
 see_also = $(subst " ",, \
index 4425d942dd39a45c76d745db96890550a3b5768b..2d2ceb7163f6883ee3d4335489d26ee8c2c39362 100644 (file)
@@ -1,3 +1,5 @@
+.. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+
 ================
 bpftool-btf
 ================
index 8069d37dd991c4a2091719bb818fdd9676dcaaf7..b954faeb0f07c25e6d2624b2267b87cdeb1e62ec 100644 (file)
@@ -1,3 +1,5 @@
+.. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+
 ================
 bpftool-cgroup
 ================
index ab9f57ee4c3ab0f9b4d7362c7f89eedfa618be9d..b1471788a15fdf32612556ce166786c4d0ee2573 100644 (file)
@@ -1,3 +1,5 @@
+.. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+
 ===============
 bpftool-feature
 ===============
index 2a137f8a4cea0c7451027c6e9eab5c3f23c0327b..51e2e8de5208e70078d81cd51952bf0cd5ccce76 100644 (file)
@@ -1,3 +1,5 @@
+.. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+
 ================
 bpftool-gen
 ================
index 471f363a725a973d0582296242964561bfdf9884..51914c9e8a54dd5692a41e2450f2ff189ab63986 100644 (file)
@@ -1,3 +1,5 @@
+.. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+
 ============
 bpftool-iter
 ============
index 9434349636a5eb600735e1fdc6f10f3319f06028..31371bcf605a1527e8dd15bed3cf39a8b17953b4 100644 (file)
@@ -1,3 +1,5 @@
+.. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+
 ================
 bpftool-link
 ================
index 991d18fd84f277311aa2945833daf5598cbff932..e22c918c069cc571aad1479f75c0135fe3ef75f6 100644 (file)
@@ -1,3 +1,5 @@
+.. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+
 ================
 bpftool-map
 ================
index 7ec57535a7c1b3ca70508a324d5b8d3bd54ef7a3..6d1aa374529f4570570cdce90663f27d3067696e 100644 (file)
@@ -1,3 +1,5 @@
+.. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+
 ================
 bpftool-net
 ================
index ce52798a917d1b988e182a056c1caeb22ec26587..ad554806faa2ce3f2289cd1ae8765b7e44ce6211 100644 (file)
@@ -1,3 +1,5 @@
+.. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+
 ================
 bpftool-perf
 ================
index f27265bd589b48d7bbb918c04f3626cbdfc50b2d..d31148571403a5343d971331d199c0f9a9f45629 100644 (file)
@@ -1,3 +1,5 @@
+.. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+
 ================
 bpftool-prog
 ================
index 02afc0fc14cb3573992c0a385473f6babe7b178a..77b845b5ac61af3b007ddf2f85409b609d1733c6 100644 (file)
@@ -1,3 +1,5 @@
+.. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+
 ==================
 bpftool-struct_ops
 ==================
index 8ac86565c501eca0854c23679cdb5363deeff4f8..1248b35e67aedfddc3e8da849b8e886a36587b0e 100644 (file)
@@ -1,3 +1,5 @@
+.. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+
 ================
 BPFTOOL
 ================
index 75adf23202d8a5210642b2b758cb3317efb95113..908487b9c2adfd2f9c8470ffbfb3c3a76c29a3b3 100644 (file)
@@ -1,3 +1,5 @@
+.. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+
 -h, --help
          Print short help message (similar to **bpftool help**).