fix: add missing SPDX licensing tags
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 3 Oct 2023 18:59:08 +0000 (14:59 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 3 Oct 2023 20:25:10 +0000 (16:25 -0400)
Change-Id: If7016a3c83211e88c102f8b395dc290859af4789
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 files changed:
include/urcu/annotate.h
include/urcu/arch/loongarch.h
include/urcu/uatomic/builtins-generic.h
include/urcu/uatomic/builtins.h
include/urcu/uatomic/loongarch.h
m4/ae_cc_atomic_builtins.m4
tests/benchmark/common-states.c
tests/benchmark/common-states.h
tests/unit/test_lfstack.c
tests/unit/test_wfcqueue.c
tests/unit/test_wfqueue.c
tests/unit/test_wfstack.c

index 37e7f0353fa77425bc3364de1ce396d8281eca90..f0955a0cbf7aab3de3c5a9cdd2c489fa9a7ec9f0 100644 (file)
@@ -1,23 +1,14 @@
+// SPDX-FileCopyrightText: 2023 Olivier Dion <odion@efficios.com>
+//
+// SPDX-License-Identifier: LGPL-2.1-or-later
+
+#ifndef _URCU_ANNOTATE_H
+#define _URCU_ANNOTATE_H
+
 /*
  * urcu/annotate.h
  *
  * Userspace RCU - annotation header.
- *
- * Copyright 2023 - Olivier Dion <odion@efficios.com>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
 /*
@@ -28,8 +19,6 @@
  *
  * You have been warned.
  */
-#ifndef _URCU_ANNOTATE_H
-#define _URCU_ANNOTATE_H
 
 #include <stdio.h>
 #include <stdlib.h>
index a6d9fee5e41ba99f45a5c0c678d7d2f33a6b23a9..7e82d9aad5f0fda94140e48cacc6248409a1bffe 100644 (file)
@@ -1,24 +1,12 @@
+// SPDX-FileCopyrightText: 2021 Wang Jing <wangjing@loongson.cn>
+//
+// SPDX-License-Identifier: LGPL-2.1-or-later
+
 #ifndef _URCU_ARCH_LOONGARCH_H
 #define _URCU_ARCH_LOONGARCH_H
 
 /*
  * arch/loongarch.h: trivial definitions for the LoongArch architecture.
- *
- * Copyright (c) 2021 Wang Jing <wangjing@loongson.cn>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
 #include <urcu/compiler.h>
index a641bc93fbc8343a6e69d24844b73fbcc7f8e74f..15c7f07533a5cf2ebc3482b2d95dd4c18ccef6a7 100644 (file)
@@ -1,21 +1,9 @@
+// SPDX-FileCopyrightText: 2023 Olivier Dion <odion@efficios.com>
+//
+// SPDX-License-Identifier: LGPL-2.1-or-later
+
 /*
  * urcu/uatomic/builtins-generic.h
- *
- * Copyright (c) 2023 Olivier Dion <odion@efficios.com>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
 #ifndef _URCU_UATOMIC_BUILTINS_GENERIC_H
index 82e98f8f829ec038df33ec9f3afcd14fe4e32830..5b92700545031de4bb0ad6fe473df089e70ffe45 100644 (file)
@@ -1,21 +1,9 @@
+// SPDX-FileCopyrightText: 2023 Olivier Dion <odion@efficios.com>
+//
+// SPDX-License-Identifier: LGPL-2.1-or-later
+
 /*
  * urcu/uatomic/builtins.h
- *
- * Copyright (c) 2023 Olivier Dion <odion@efficios.com>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
 #ifndef _URCU_UATOMIC_BUILTINS_H
index dcf9e935fd44f229819b2128d25944aa26363491..3454d41294af3ae03721d903f43d77e0adff1534 100644 (file)
@@ -1,28 +1,12 @@
+// SPDX-FileCopyrightText: 2021 Wang Jing <wangjing@loongson.cn>
+//
+// SPDX-License-Identifier: MIT
+
 #ifndef _URCU_UATOMIC_ARCH_LOONGARCH_H
 #define _URCU_UATOMIC_ARCH_LOONGARCH_H
 
 /*
  * Atomic exchange operations for the LoongArch architecture. Let GCC do it.
- *
- * Copyright (c) 2021 Wang Jing <wangjing@loongson.cn>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to
- * deal in the Software without restriction, including without limitation the
- * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
- * sell copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
- * IN THE SOFTWARE.
  */
 
 #include <urcu/compiler.h>
index 2efbde39864293d2fbc8613af29eedb4470b0c18..0bdb8d01e9a9971a64357ae8bf3df72ee5685e9a 100644 (file)
@@ -1,36 +1,10 @@
+# SPDX-License-Identifier: GPL-2.0-or-later WITH LicenseRef-Autoconf-exception-macro
+# SPDX-FileCopyrightText: 2023 Michael Jeanson <mjeanson@efficios.com>
+#
 # SYNOPSIS
 #
 #   AE_CC_ATOMIC_BUILTINS([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
 #
-# LICENSE
-#
-#   Copyright (c) 2023 Michael Jeanson <mjeanson@efficios.com>
-#
-#   This program is free software; you can redistribute it and/or modify it
-#   under the terms of the GNU General Public License as published by the
-#   Free Software Foundation; either version 2 of the License, or (at your
-#   option) any later version.
-#
-#   This program is distributed in the hope that it will be useful, but
-#   WITHOUT ANY WARRANTY; without even the implied warranty of
-#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
-#   Public License for more details.
-#
-#   You should have received a copy of the GNU General Public License along
-#   with this program. If not, see <https://www.gnu.org/licenses/>.
-#
-#   As a special exception, the respective Autoconf Macro's copyright owner
-#   gives unlimited permission to copy, distribute and modify the configure
-#   scripts that are the output of Autoconf when processing the Macro. You
-#   need not follow the terms of the GNU General Public License when using
-#   or distributing such scripts, even though portions of the text of the
-#   Macro appear in them. The GNU General Public License (GPL) does govern
-#   all other use of the material that constitutes the Autoconf Macro.
-#
-#   This special exception to the GPL applies to versions of the Autoconf
-#   Macro released by the Autoconf Archive. When you make and distribute a
-#   modified version of the Autoconf Macro, you may extend this special
-#   exception to the GPL to apply to your modified version as well.
 
 #serial 1
 
index 6e70351af7d7784e7f2a15889e3de41f91d83d99..4a7f71905e35b8a4cf9cc81df09694d3949f5cc7 100644 (file)
@@ -1 +1,5 @@
+// SPDX-FileCopyrightText: 2023 Olivier Dion <odion@efficios.com>
+//
+// SPDX-License-Identifier: GPL-2.0-or-later
+
 volatile int _test_go = 0, _test_stop = 0;
index dfbbfe5b42beba3c6f2349e7e6044387039c2939..d46fd38a80a80932775ae58ca7268b0444fe9ad1 100644 (file)
@@ -1,3 +1,7 @@
+// SPDX-FileCopyrightText: 2023 Olivier Dion <odion@efficios.com>
+//
+// SPDX-License-Identifier: GPL-2.0-or-later
+
 /* Common states for benchmarks. */
 
 #include <unistd.h>
index a1f99f0593c5d3168adf5563d3670362a8c2f9e9..03d16329b29fc5e650facb9136446070560632f0 100644 (file)
@@ -1,23 +1,11 @@
+// SPDX-FileCopyrightText: 2023 Olivier Dion <odion@efficios.com>
+//
+// SPDX-License-Identifier: GPL-2.0-or-later
+
 /*
  * test_lfstack.c
  *
  * Userspace RCU library - test wftack race conditions
- *
- * Copyright 2023 - Olivier Dion <odion@efficios.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
 #define _LGPL_SOURCE
index 338aa07522e0d59a90cd62ec6279316c6333f980..45c498865f35d63c2a40afea9d59338d1fb20ddf 100644 (file)
@@ -1,23 +1,11 @@
+// SPDX-FileCopyrightText: 2023 Olivier Dion <odion@efficios.com>
+//
+// SPDX-License-Identifier: GPL-2.0-or-later
+
 /*
  * test_wfcqueue.c
  *
  * Userspace RCU library - test wfcqueue race conditions
- *
- * Copyright 2023 - Olivier Dion <odion@efficios.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
 #define _LGPL_SOURCE
index 57afaba4bb8be74b148dcc12e2930164a9cbb0de..944c49a6e3f14dd562135209314f66d70602d8ed 100644 (file)
@@ -1,23 +1,11 @@
+// SPDX-FileCopyrightText: 2023 Olivier Dion <odion@efficios.com>
+//
+// SPDX-License-Identifier: GPL-2.0-or-later
+
 /*
  * test_wfqueue.c
  *
  * Userspace RCU library - test wfqueue race conditions
- *
- * Copyright 2023 - Olivier Dion <odion@efficios.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
 #define _LGPL_SOURCE
index 578ae92f199c05adb6c80a2dd7042c724bea26df..17901cec1c2bc0846e0a1ce68889da24b1cde338 100644 (file)
@@ -1,23 +1,11 @@
+// SPDX-FileCopyrightText: 2023 Olivier Dion <odion@efficios.com>
+//
+// SPDX-License-Identifier: GPL-2.0-or-later
+
 /*
  * test_wfstack.c
  *
  * Userspace RCU library - test wftack race conditions
- *
- * Copyright 2023 - Olivier Dion <odion@efficios.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
 #define _LGPL_SOURCE
This page took 0.030552 seconds and 4 git commands to generate.