From: Kamalesh Babulal Date: Mon, 14 Mar 2022 04:38:44 +0000 (+0530) Subject: Adopt SPDX License tag for files missing license information X-Git-Tag: v3.0~175 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e30070e882f3b0ed1b72421cb6ea0a4e4c0d559;p=thirdparty%2Flibcgroup.git Adopt SPDX License tag for files missing license information Adopt SPDX license tag for all the source files, those missing License information. All the files in the project fall under project license, hence explicitly adding LGPL-2.1-only identifier to them. The SPDX license identifier is added for the files, reported by checkpatch.pl. Signed-off-by: Kamalesh Babulal Signed-off-by: Tom Hromatka --- diff --git a/bootstrap.sh b/bootstrap.sh index 1da41e28..5d4086f5 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -1,4 +1,5 @@ #!/bin/bash +# SPDX-License-Identifier: LGPL-2.1-only set -ex diff --git a/include/libcgroup/config.h b/include/libcgroup/config.h index f8350092..08354d49 100644 --- a/include/libcgroup/config.h +++ b/include/libcgroup/config.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-only */ #ifndef _LIBCGROUP_CONFIG_H #define _LIBCGROUP_CONFIG_H diff --git a/include/libcgroup/error.h b/include/libcgroup/error.h index 325136af..3520a038 100644 --- a/include/libcgroup/error.h +++ b/include/libcgroup/error.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-only */ #ifndef _LIBCGROUP_ERROR_H #define _LIBCGROUP_ERROR_H diff --git a/include/libcgroup/groups.h b/include/libcgroup/groups.h index c30cbb94..0a7fad11 100644 --- a/include/libcgroup/groups.h +++ b/include/libcgroup/groups.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-only */ #ifndef _LIBCGROUP_GROUPS_H #define _LIBCGROUP_GROUPS_H diff --git a/include/libcgroup/iterators.h b/include/libcgroup/iterators.h index 729fbac3..584b3e33 100644 --- a/include/libcgroup/iterators.h +++ b/include/libcgroup/iterators.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-only */ #ifndef _LIBCGROUP_ITERATORS_H #define _LIBCGROUP_ITERATORS_H diff --git a/include/libcgroup/log.h b/include/libcgroup/log.h index f6934737..7d76c4c5 100644 --- a/include/libcgroup/log.h +++ b/include/libcgroup/log.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-only */ #ifndef _LIBCGROUP_LOG_H #define _LIBCGROUP_LOG_H diff --git a/include/libcgroup/tasks.h b/include/libcgroup/tasks.h index 8553c30a..554fe34e 100644 --- a/include/libcgroup/tasks.h +++ b/include/libcgroup/tasks.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-only */ #ifndef _LIBCGROUP_TASKS_H #define _LIBCGROUP_TASKS_H diff --git a/samples/c/get_all_controller.c b/samples/c/get_all_controller.c index d643c986..873dfce7 100644 --- a/samples/c/get_all_controller.c +++ b/samples/c/get_all_controller.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: LGPL-2.1-only #include #include #include diff --git a/samples/c/get_controller.c b/samples/c/get_controller.c index 1829f5cc..3c1421b7 100644 --- a/samples/c/get_controller.c +++ b/samples/c/get_controller.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: LGPL-2.1-only #include #include #include diff --git a/samples/c/get_mount_point.c b/samples/c/get_mount_point.c index b3720927..55f20662 100644 --- a/samples/c/get_mount_point.c +++ b/samples/c/get_mount_point.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: LGPL-2.1-only #include #include #include diff --git a/samples/c/get_procs.c b/samples/c/get_procs.c index caa84448..23a4d584 100644 --- a/samples/c/get_procs.c +++ b/samples/c/get_procs.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: LGPL-2.1-only #include #include #include diff --git a/samples/c/get_variable_names.c b/samples/c/get_variable_names.c index dc2ef149..f8a00436 100644 --- a/samples/c/get_variable_names.c +++ b/samples/c/get_variable_names.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: LGPL-2.1-only #include #include #include diff --git a/samples/c/logger.c b/samples/c/logger.c index b7f1b702..29462908 100644 --- a/samples/c/logger.c +++ b/samples/c/logger.c @@ -1,16 +1,9 @@ +// SPDX-License-Identifier: LGPL-2.1-only /* * Copyright Red Hat Inc., 2012 * * Author: Jan Safranek * - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2.1 of the GNU Lesser General Public License - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * * Description: This file contains the test code for libcgroup logging. */ diff --git a/samples/c/proctest.c b/samples/c/proctest.c index 8e840c1e..a3c2286d 100644 --- a/samples/c/proctest.c +++ b/samples/c/proctest.c @@ -1,15 +1,8 @@ +// SPDX-License-Identifier: LGPL-2.1-only /* * Copyright NEC Soft Ltd. 2009 * * Author: Ken'ichi Ohmichi - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2.1 of the GNU Lesser General Public License - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. */ #include diff --git a/samples/c/read_stats.c b/samples/c/read_stats.c index 0583039d..34eef4f9 100644 --- a/samples/c/read_stats.c +++ b/samples/c/read_stats.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: LGPL-2.1-only #include #include #include diff --git a/samples/c/setuid.c b/samples/c/setuid.c index 7afd3c8c..f7a05937 100644 --- a/samples/c/setuid.c +++ b/samples/c/setuid.c @@ -1,16 +1,8 @@ +// SPDX-License-Identifier: LGPL-2.1-only /* * Copyright Red Hat Inc. 2008 * * Author: Steve Olivieri - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2.1 of the GNU Lesser General Public License - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * */ #include diff --git a/samples/c/test_functions.c b/samples/c/test_functions.c index f357ab2f..19536467 100644 --- a/samples/c/test_functions.c +++ b/samples/c/test_functions.c @@ -1,16 +1,9 @@ +// SPDX-License-Identifier: LGPL-2.1-only /* * Copyright IBM Corporation. 2008 * * Author: Sudhir Kumar * - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2.1 of the GNU Lesser General Public License - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * * Description: This file contains the functions for testing libcgroup apis. */ diff --git a/samples/c/test_named_hierarchy.c b/samples/c/test_named_hierarchy.c index 934c8752..d42cf3e5 100644 --- a/samples/c/test_named_hierarchy.c +++ b/samples/c/test_named_hierarchy.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: LGPL-2.1-only #include #include #include diff --git a/samples/c/walk_task.c b/samples/c/walk_task.c index 42ef32db..5ddc3609 100644 --- a/samples/c/walk_task.c +++ b/samples/c/walk_task.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: LGPL-2.1-only #include #include #include diff --git a/samples/c/walk_test.c b/samples/c/walk_test.c index f3112c5f..5345223f 100644 --- a/samples/c/walk_test.c +++ b/samples/c/walk_test.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: LGPL-2.1-only #include #include #include diff --git a/samples/c/wrapper_test.c b/samples/c/wrapper_test.c index 257ece33..23dbef7f 100644 --- a/samples/c/wrapper_test.c +++ b/samples/c/wrapper_test.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: LGPL-2.1-only #include #include #include diff --git a/src/tools/cgget.c b/src/tools/cgget.c index 22e17111..460e312b 100644 --- a/src/tools/cgget.c +++ b/src/tools/cgget.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: LGPL-2.1-only #include #include diff --git a/src/tools/cgset.c b/src/tools/cgset.c index a59e1d32..2860913e 100644 --- a/src/tools/cgset.c +++ b/src/tools/cgset.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: LGPL-2.1-only #include #include