Skip to contentSkip to conversation

bpf: btf: Change tools/lib/bpf/btf to LGPL

PATCH In review Martin KaFai Lau 4 participants 4 messages Aug 6, 2018

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bpf: btf: Change tools/lib/bpf/btf to LGPL

This patch changes the tools/lib/bpf/btf.[ch] to LGPL which is inline with libbpf also.

---
 tools/lib/bpf/btf.c | 2 +-
 tools/lib/bpf/btf.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
tools/lib/bpf/btf.c +1 -1
index 2d270c560df3..c36a3a76986a 100644
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-2.0 */
+// SPDX-License-Identifier: LGPL-2.1
 /* Copyright (c) 2018 Facebook */
 
 #include <stdlib.h>
tools/lib/bpf/btf.h +1 -1
index e2a09a155f84..caac3a404dc5 100644
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-2.0 */
+/* SPDX-License-Identifier: LGPL-2.1 */
 /* Copyright (c) 2018 Facebook */
 
 #ifndef __BPF_BTF_H
Signature · 1 line
2.17.1
maintainer
#2 lore raw
Quoted 11 lines · Alexei Starovoitov
Quoted 4 lines · Martin KaFai Lau

This patch changes the tools/lib/bpf/btf.[ch] to LGPL which is inline with libbpf also.

technically it's bpf tree material, but since it changes "comment" only and we're very late into the release, I think bpf-next would be fine too.
I'm ok whichever way.

I think bpf tree is more appropriate, thus applied there, thanks Martin!

Acked-by on v1 1/1
#3 lore raw
In reply to Martin KaFai Lau
Quoted 2 lines · Martin KaFai Lau

This patch changes the tools/lib/bpf/btf.[ch] to LGPL which is inline with libbpf also.

FWIW:

And in case removing code in 6534770d6f17 ("tools: bpf: fix BTF code added twice to different trees") counts as a contribution:

for the license change :)

Quoted 26 lines
---
 tools/lib/bpf/btf.c | 2 +-
 tools/lib/bpf/btf.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
tools/lib/bpf/btf.c +1 -1
index 2d270c560df3..c36a3a76986a 100644
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-2.0 */
+// SPDX-License-Identifier: LGPL-2.1
 /* Copyright (c) 2018 Facebook */
 
 #include <stdlib.h>
tools/lib/bpf/btf.h +1 -1
index e2a09a155f84..caac3a404dc5 100644
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-2.0 */
+/* SPDX-License-Identifier: LGPL-2.1 */
 /* Copyright (c) 2018 Facebook */
 
 #ifndef __BPF_BTF_H