Skip to contentSkip to conversation

SPDX leftovers

PATCH Applied Stephen Hemminger 4 participants 9 messages Dec 4, 2019 – Feb 22, 2020

lore
Share & tools
lore
#0 lore raw

cover SPDX leftovers

These are tests and scripts with missing SPDX tags.

Stephen Hemminger (5):
app/test: add SPDX tag to timer test
devtools: add license tag to cocci.sh
devtools: add SPDX tag to load-devel-config examples/ipsecgw: add SPDX license tag examples/performance-thread: add mising SPDX tag

 app/test/test_timer_racecond.c                | 34 ++-----------------
 devtools/cocci.sh                             | 30 +---------------
 devtools/load-devel-config                    |  2 ++
 .../trs_aesgcm_inline_crypto_fallback_defs.sh |  1 +
 .../tun_aesgcm_inline_crypto_fallback_defs.sh |  1 +
 .../performance-thread/l3fwd-thread/test.sh   |  2 ++
 6 files changed, 10 insertions(+), 60 deletions(-)
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/5 app/test: add SPDX tag to timer test

This file was missing SPDX tag. Convert BSD boilerplate to license tag.

---
 app/test/test_timer_racecond.c | 34 +++-------------------------------
 1 file changed, 3 insertions(+), 31 deletions(-)
app/test/test_timer_racecond.c +3 -31
index a9e1daf16bf4..cf0bdd63c3df 100644
@@ -1,34 +1,6 @@
-/*-
- *   BSD LICENSE
- *
- *   Copyright(c) 2015 Akamai Technologies.
- *   All rights reserved.
- *
- *   Redistribution and use in source and binary forms, with or without
- *   modification, are permitted provided that the following conditions
- *   are met:
- *
- *     * Redistributions of source code must retain the above copyright
- *       notice, this list of conditions and the following disclaimer.
- *     * Redistributions in binary form must reproduce the above copyright
- *       notice, this list of conditions and the following disclaimer in
- *       the documentation and/or other materials provided with the
- *       distribution.
- *     * Neither the name of Intel Corporation nor the names of its
- *       contributors may be used to endorse or promote products derived
- *       from this software without specific prior written permission.
- *
- *   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- *   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- *   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- *   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- *   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- *   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- *   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- *   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- *   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+/* SPDX-License-Identifier: BSD-3-Clause
+ * Copyright(c) 2015 Akamai Technologies.
+ * All rights reserved.
  */
 
 #include "test.h"
Signature · 1 line
2.20.1
#2 lore raw

PATCH 2/5 devtools: add license tag to cocci.sh

In reply to Stephen Hemminger

This file still had original BSD boilerplate text. Replace it with SPDX tag.

---
 devtools/cocci.sh | 30 +-----------------------------
 1 file changed, 1 insertion(+), 29 deletions(-)
devtools/cocci.sh +1 -29
index 8b17a8cebac3..77b7447cdfcd 100755
@@ -1,34 +1,6 @@
 #! /bin/sh
-
-# BSD LICENSE
-#
+# SPDX-License-Identifier: BSD-3-Clause
 # Copyright 2015 EZchip Semiconductor Ltd.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-#   * Redistributions of source code must retain the above copyright
-#     notice, this list of conditions and the following disclaimer.
-#   * Redistributions in binary form must reproduce the above copyright
-#     notice, this list of conditions and the following disclaimer in
-#     the documentation and/or other materials provided with the
-#     distribution.
-#   * Neither the name of EZchip Semiconductor nor the names of its
-#     contributors may be used to endorse or promote products derived
-#     from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 # Apply coccinelle transforms.
 
Signature · 1 line
2.20.1
Acked-by on v1 2/5
#3 lore raw

Re: [dpdk-dev] [PATCH 2/5] devtools: add license tag to cocci.sh

Quoted 20 lines

-----Original Message-----
From: dev <[email protected]> On Behalf Of Stephen Hemminger
Sent: Wednesday, December 4, 2019 3:55 PM
To: [email protected]
Cc: Stephen Hemminger <[email protected]>
Subject: [dpdk-dev] [PATCH 2/5] devtools: add license tag to cocci.sh

This file still had original BSD boilerplate text. Replace it with SPDX tag.

---
 devtools/cocci.sh | 30 +-----------------------------
 1 file changed, 1 insertion(+), 29 deletions(-)
devtools/cocci.sh index renamed from devtools/cocci.sh +0 -0

8b17a8cebac3..77b7447cdfcd 100755

devtools/cocci.sh line 3

Quoted 6 lines
devtools/cocci.sh +1 -3
@@ -1,34 +1,6 @@
 #! /bin/sh
-
-# BSD LICENSE
-#
+# SPDX-License-Identifier: BSD-3-Clause
 # Copyright 2015 EZchip Semiconductor Ltd.

Can we please merge this (and the other SPDX patches but this one in particular) since the header gets flagged in an IP compliance tool that we use in Intel.

Since the original copyright was with EZchip I presume that Mellanox can now sign off on this or change the copyright if they wish. CC olga and Thomas.

John

#4 lore raw

PATCH 3/5 devtools: add SPDX tag to load-devel-config

In reply to Stephen Hemminger

Trivial file was missing any license.

---
 devtools/load-devel-config | 2 ++
 1 file changed, 2 insertions(+)
devtools/load-devel-config +2 -0
index 380c79db41eb..ca1bc21b55e3 100644
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# This file is intended to be sourced into shell
 # Load DPDK devel config and allow override
 # from system file
 test ! -r /etc/dpdk/devel.config ||
Signature · 1 line
2.20.1
#6 lore raw

PATCH 4/5 examples/ipsecgw: add SPDX license tag

In reply to Stephen Hemminger

This trivial file had no license info.

---
 .../ipsec-secgw/test/trs_aesgcm_inline_crypto_fallback_defs.sh   | 1 +
 .../ipsec-secgw/test/tun_aesgcm_inline_crypto_fallback_defs.sh   | 1 +
 2 files changed, 2 insertions(+)
examples/ipsec-secgw/test/trs_aesgcm_inline_crypto_fallback_defs.sh +1 -0
index 875a7457d3e8..f21b01d63546 100644
@@ -1,4 +1,5 @@
 #! /bin/bash
+# SPDX-License-Identifier: BSD-3-Clause
 
 . ${DIR}/trs_aesgcm_defs.sh
 
examples/ipsec-secgw/test/tun_aesgcm_inline_crypto_fallback_defs.sh +1 -0
index 6968484323c2..97b9431f42a0 100644
@@ -1,4 +1,5 @@
 #! /bin/bash
+# SPDX-License-Identifier: BSD-3-Clause
 
 . ${DIR}/tun_aesgcm_defs.sh
 
Signature · 1 line
2.20.1
Acked-by on v1 4/5
#7 lore raw

Re: [dpdk-dev] [PATCH 4/5] examples/ipsecgw: add SPDX license tag

Quoted 25 lines

This trivial file had no license info.

---
 .../ipsec-secgw/test/trs_aesgcm_inline_crypto_fallback_defs.sh   | 1 +
 .../ipsec-secgw/test/tun_aesgcm_inline_crypto_fallback_defs.sh   | 1 +
 2 files changed, 2 insertions(+)
examples/ipsec- renamed from examples/ipsec-secgw/test/trs_aesgcm_inline_crypto_fallback_defs.sh +0 -0

secgw/test/trs_aesgcm_inline_crypto_fallback_defs.sh index 875a7457d3e8..f21b01d63546 100644

examples/ipsec-secgw/test/trs_aesgcm_inline_crypto_fallback_defs.sh +1 -0
@@ -1,4 +1,5 @@
 #! /bin/bash
+# SPDX-License-Identifier: BSD-3-Clause
 
 . ${DIR}/trs_aesgcm_defs.sh
 
examples/ipsec- renamed from examples/ipsec-secgw/test/tun_aesgcm_inline_crypto_fallback_defs.sh +0 -0

secgw/test/tun_aesgcm_inline_crypto_fallback_defs.sh index 6968484323c2..97b9431f42a0 100644

examples/ipsec-secgw/test/tun_aesgcm_inline_crypto_fallback_defs.sh

Quoted 6 lines
examples/ipsec-secgw/test/tun_aesgcm_inline_crypto_fallback_defs.sh +1 -1
@@ -1,4 +1,5 @@
 #! /bin/bash
+# SPDX-License-Identifier: BSD-3-Clause
 
 . ${DIR}/tun_aesgcm_defs.sh
 
--
Quoted 1 line

2.20.1

#8 lore raw

PATCH 5/5 examples/performance-thread: add mising SPDX tag

In reply to Stephen Hemminger

This example had no license.

---
 examples/performance-thread/l3fwd-thread/test.sh | 2 ++
 1 file changed, 2 insertions(+)
examples/performance-thread/l3fwd-thread/test.sh +2 -0
index b7718b6223b0..43ff10b43082 100755
@@ -1,4 +1,6 @@
 #!/bin/bash
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2010-2016 Intel Corporation
 
 case "$1" in
 
Signature · 1 line
2.20.1