From: Michael Jeanson Date: Tue, 3 Oct 2023 18:59:08 +0000 (-0400) Subject: fix: add missing SPDX licensing tags X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=1c64a40d8b2a4e65ae002ea0f15ab42f556b0987;p=urcu.git fix: add missing SPDX licensing tags Change-Id: If7016a3c83211e88c102f8b395dc290859af4789 Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- diff --git a/include/urcu/annotate.h b/include/urcu/annotate.h index 37e7f03..f0955a0 100644 --- a/include/urcu/annotate.h +++ b/include/urcu/annotate.h @@ -1,23 +1,14 @@ +// SPDX-FileCopyrightText: 2023 Olivier Dion +// +// 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 - * - * 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 #include diff --git a/include/urcu/arch/loongarch.h b/include/urcu/arch/loongarch.h index a6d9fee..7e82d9a 100644 --- a/include/urcu/arch/loongarch.h +++ b/include/urcu/arch/loongarch.h @@ -1,24 +1,12 @@ +// SPDX-FileCopyrightText: 2021 Wang Jing +// +// 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 - * - * 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 diff --git a/include/urcu/uatomic/builtins-generic.h b/include/urcu/uatomic/builtins-generic.h index a641bc9..15c7f07 100644 --- a/include/urcu/uatomic/builtins-generic.h +++ b/include/urcu/uatomic/builtins-generic.h @@ -1,21 +1,9 @@ +// SPDX-FileCopyrightText: 2023 Olivier Dion +// +// SPDX-License-Identifier: LGPL-2.1-or-later + /* * urcu/uatomic/builtins-generic.h - * - * Copyright (c) 2023 Olivier Dion - * - * 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 diff --git a/include/urcu/uatomic/builtins.h b/include/urcu/uatomic/builtins.h index 82e98f8..5b92700 100644 --- a/include/urcu/uatomic/builtins.h +++ b/include/urcu/uatomic/builtins.h @@ -1,21 +1,9 @@ +// SPDX-FileCopyrightText: 2023 Olivier Dion +// +// SPDX-License-Identifier: LGPL-2.1-or-later + /* * urcu/uatomic/builtins.h - * - * Copyright (c) 2023 Olivier Dion - * - * 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 diff --git a/include/urcu/uatomic/loongarch.h b/include/urcu/uatomic/loongarch.h index dcf9e93..3454d41 100644 --- a/include/urcu/uatomic/loongarch.h +++ b/include/urcu/uatomic/loongarch.h @@ -1,28 +1,12 @@ +// SPDX-FileCopyrightText: 2021 Wang Jing +// +// 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 - * - * 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 diff --git a/m4/ae_cc_atomic_builtins.m4 b/m4/ae_cc_atomic_builtins.m4 index 2efbde3..0bdb8d0 100644 --- a/m4/ae_cc_atomic_builtins.m4 +++ b/m4/ae_cc_atomic_builtins.m4 @@ -1,36 +1,10 @@ +# SPDX-License-Identifier: GPL-2.0-or-later WITH LicenseRef-Autoconf-exception-macro +# SPDX-FileCopyrightText: 2023 Michael Jeanson +# # SYNOPSIS # # AE_CC_ATOMIC_BUILTINS([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) # -# LICENSE -# -# Copyright (c) 2023 Michael Jeanson -# -# 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 . -# -# 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 diff --git a/tests/benchmark/common-states.c b/tests/benchmark/common-states.c index 6e70351..4a7f719 100644 --- a/tests/benchmark/common-states.c +++ b/tests/benchmark/common-states.c @@ -1 +1,5 @@ +// SPDX-FileCopyrightText: 2023 Olivier Dion +// +// SPDX-License-Identifier: GPL-2.0-or-later + volatile int _test_go = 0, _test_stop = 0; diff --git a/tests/benchmark/common-states.h b/tests/benchmark/common-states.h index dfbbfe5..d46fd38 100644 --- a/tests/benchmark/common-states.h +++ b/tests/benchmark/common-states.h @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 Olivier Dion +// +// SPDX-License-Identifier: GPL-2.0-or-later + /* Common states for benchmarks. */ #include diff --git a/tests/unit/test_lfstack.c b/tests/unit/test_lfstack.c index a1f99f0..03d1632 100644 --- a/tests/unit/test_lfstack.c +++ b/tests/unit/test_lfstack.c @@ -1,23 +1,11 @@ +// SPDX-FileCopyrightText: 2023 Olivier Dion +// +// SPDX-License-Identifier: GPL-2.0-or-later + /* * test_lfstack.c * * Userspace RCU library - test wftack race conditions - * - * Copyright 2023 - Olivier Dion - * - * 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 diff --git a/tests/unit/test_wfcqueue.c b/tests/unit/test_wfcqueue.c index 338aa07..45c4988 100644 --- a/tests/unit/test_wfcqueue.c +++ b/tests/unit/test_wfcqueue.c @@ -1,23 +1,11 @@ +// SPDX-FileCopyrightText: 2023 Olivier Dion +// +// SPDX-License-Identifier: GPL-2.0-or-later + /* * test_wfcqueue.c * * Userspace RCU library - test wfcqueue race conditions - * - * Copyright 2023 - Olivier Dion - * - * 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 diff --git a/tests/unit/test_wfqueue.c b/tests/unit/test_wfqueue.c index 57afaba..944c49a 100644 --- a/tests/unit/test_wfqueue.c +++ b/tests/unit/test_wfqueue.c @@ -1,23 +1,11 @@ +// SPDX-FileCopyrightText: 2023 Olivier Dion +// +// SPDX-License-Identifier: GPL-2.0-or-later + /* * test_wfqueue.c * * Userspace RCU library - test wfqueue race conditions - * - * Copyright 2023 - Olivier Dion - * - * 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 diff --git a/tests/unit/test_wfstack.c b/tests/unit/test_wfstack.c index 578ae92..17901ce 100644 --- a/tests/unit/test_wfstack.c +++ b/tests/unit/test_wfstack.c @@ -1,23 +1,11 @@ +// SPDX-FileCopyrightText: 2023 Olivier Dion +// +// SPDX-License-Identifier: GPL-2.0-or-later + /* * test_wfstack.c * * Userspace RCU library - test wftack race conditions - * - * Copyright 2023 - Olivier Dion - * - * 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