Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bpftool: Add SPDX tags to RST documentation files

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

authored by

Quentin Monnet and committed by
Daniel Borkmann
43448428 47461583

+27 -1
+1 -1
tools/bpf/bpftool/Documentation/Makefile
··· 24 24 man8: $(DOC_MAN8) 25 25 26 26 RST2MAN_DEP := $(shell command -v rst2man 2>/dev/null) 27 - RST2MAN_OPTS += --verbose 27 + RST2MAN_OPTS += --verbose --strip-comments 28 28 29 29 list_pages = $(sort $(basename $(filter-out $(1),$(MAN8_RST)))) 30 30 see_also = $(subst " ",, \
+2
tools/bpf/bpftool/Documentation/bpftool-btf.rst
··· 1 + .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + 1 3 ================ 2 4 bpftool-btf 3 5 ================
+2
tools/bpf/bpftool/Documentation/bpftool-cgroup.rst
··· 1 + .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + 1 3 ================ 2 4 bpftool-cgroup 3 5 ================
+2
tools/bpf/bpftool/Documentation/bpftool-feature.rst
··· 1 + .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + 1 3 =============== 2 4 bpftool-feature 3 5 ===============
+2
tools/bpf/bpftool/Documentation/bpftool-gen.rst
··· 1 + .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + 1 3 ================ 2 4 bpftool-gen 3 5 ================
+2
tools/bpf/bpftool/Documentation/bpftool-iter.rst
··· 1 + .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + 1 3 ============ 2 4 bpftool-iter 3 5 ============
+2
tools/bpf/bpftool/Documentation/bpftool-link.rst
··· 1 + .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + 1 3 ================ 2 4 bpftool-link 3 5 ================
+2
tools/bpf/bpftool/Documentation/bpftool-map.rst
··· 1 + .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + 1 3 ================ 2 4 bpftool-map 3 5 ================
+2
tools/bpf/bpftool/Documentation/bpftool-net.rst
··· 1 + .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + 1 3 ================ 2 4 bpftool-net 3 5 ================
+2
tools/bpf/bpftool/Documentation/bpftool-perf.rst
··· 1 + .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + 1 3 ================ 2 4 bpftool-perf 3 5 ================
+2
tools/bpf/bpftool/Documentation/bpftool-prog.rst
··· 1 + .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + 1 3 ================ 2 4 bpftool-prog 3 5 ================
+2
tools/bpf/bpftool/Documentation/bpftool-struct_ops.rst
··· 1 + .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + 1 3 ================== 2 4 bpftool-struct_ops 3 5 ==================
+2
tools/bpf/bpftool/Documentation/bpftool.rst
··· 1 + .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + 1 3 ================ 2 4 BPFTOOL 3 5 ================
+2
tools/bpf/bpftool/Documentation/common_options.rst
··· 1 + .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + 1 3 -h, --help 2 4 Print short help message (similar to **bpftool help**). 3 5