Skip to contentSkip to conversation

samples/bpf: add SPDX license identifier to parse_simple.c

PATCH In review Lucas Poupeau 2 participants 2 messages May 4 – May 15 BPF

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 samples/bpf: add SPDX license identifier to parse_simple.c

Add the SPDX-License-Identifier tag to replace or complement the existing license text. This follows the Linux kernel's move to standardize license identification.

Reported by checkpatch.pl.

---
 samples/bpf/parse_simple.c | 1 +
 1 file changed, 1 insertion(+)
samples/bpf/parse_simple.c +1 -0
index 4a486cb1e0df..b57ac5baca30 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /* Copyright (c) 2016 Facebook
  *
  * This program is free software; you can redistribute it and/or
Signature · 1 line
2.54.0
#1 lore raw
Quoted 17 lines · Lucas Poupeau

Add the SPDX-License-Identifier tag to replace or complement the existing license text. This follows the Linux kernel's move to standardize license identification.

Reported by checkpatch.pl.

---
 samples/bpf/parse_simple.c | 1 +
 1 file changed, 1 insertion(+)
samples/bpf/parse_simple.c +0 -0
index 4a486cb1e0df..b57ac5baca30 100644

samples/bpf/parse_simple.c line 4

Quoted 4 lines
samples/bpf/parse_simple.c +1 -0
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /* Copyright (c) 2016 Facebook
  *
  * This program is free software; you can redistribute it and/or

checkpatch should have told you that this is wrong way to add SPDX. Also there are lots of there .c in that dir without SPDX. Fix them all in one patch.

pw-bot :cr