Use SPDX
v2 cover Use SPDX
Replace the license notices with one SPDX line, like done in the kernel and other projects.
Changes from v1:
- Do not mess with copyright notices, just the license
- Fix some unintentional move from GPL to LGPL for tools (even though LGPL should be preferred so we can easily move code between library and tools)
- Split patches so the removal of one-line source description is not bundled in the same patch as the license update
Lucas De Marchi (3):
Use SPDX header for license
Drop the one line short description on sources
depmod: Remove license/copyright from the middle
libkmod/libkmod-builtin.c | 16 +------------ libkmod/libkmod-config.c | 16 +------------ libkmod/libkmod-elf.c | 16 +------------ libkmod/libkmod-file.c | 16 +------------ libkmod/libkmod-index.c | 16 +------------ libkmod/libkmod-index.h | 16 +------------ libkmod/libkmod-list.c | 16 +------------ libkmod/libkmod-module.c | 16 +------------ libkmod/libkmod-signature.c | 16 +------------ libkmod/libkmod.c | 16 +------------ libkmod/libkmod.h | 16 +------------ m4/attributes.m4 | 18 ++------------ m4/features.m4 | 17 +++----------- shared/array.c | 16 +------------ shared/hash.c | 16 +------------ shared/macro.h | 16 +------------ shared/scratchbuf.c | 16 +------------ shared/strbuf.c | 16 +------------ shared/util.c | 16 +------------ shell-completion/bash/kmod | 16 +------------ testsuite/delete_module.c | 14 +---------- testsuite/init_module.c | 14 +---------- testsuite/path.c | 14 +---------- testsuite/test-array.c | 14 +---------- testsuite/test-blacklist.c | 14 +---------- testsuite/test-dependencies.c | 14 +---------- testsuite/test-depmod.c | 14 +---------- testsuite/test-hash.c | 14 +---------- testsuite/test-init.c | 14 +---------- testsuite/test-initstate.c | 14 +---------- testsuite/test-list.c | 14 +---------- testsuite/test-loaded.c | 14 +---------- testsuite/test-modinfo.c | 14 +---------- testsuite/test-modprobe.c | 14 +---------- testsuite/test-new-module.c | 14 +---------- testsuite/test-scratchbuf.c | 14 +---------- testsuite/test-strbuf.c | 14 +---------- testsuite/test-testsuite.c | 14 +---------- testsuite/test-user.c | 14 +---------- testsuite/test-util.c | 14 +---------- testsuite/testsuite.c | 14 +---------- testsuite/testsuite.h | 14 +---------- testsuite/uname.c | 14 +---------- tools/depmod.c | 44 +++-------------------------------- tools/insmod.c | 16 +------------ tools/kmod.c | 16 +------------ tools/kmod.h | 16 +------------ tools/log.c | 16 +------------ tools/log.h | 16 +------------ tools/lsmod.c | 16 +------------ tools/modinfo.c | 14 +---------- tools/modprobe.c | 14 +---------- tools/rmmod.c | 14 +---------- tools/static-nodes.c | 14 +---------- 54 files changed, 59 insertions(+), 782 deletions(-)
Signature · 1 line
2.45.2
PATCH v2 1/3 Use SPDX header for license
Drop the lengthy license from each file and just use SPDX like most projects nowadays. This doesn't have any change to license, just how they are recorded in each file.
This follows the kernel approach: header files use '/*' for comments while .c files use '//'.
--- libkmod/libkmod-builtin.c | 14 +------------- libkmod/libkmod-config.c | 14 +------------- libkmod/libkmod-elf.c | 14 +------------- libkmod/libkmod-file.c | 14 +------------- libkmod/libkmod-index.c | 14 +------------- libkmod/libkmod-index.h | 14 +------------- libkmod/libkmod-list.c | 14 +------------- libkmod/libkmod-module.c | 14 +------------- libkmod/libkmod-signature.c | 14 +------------- libkmod/libkmod.c | 14 +------------- libkmod/libkmod.h | 14 +------------- m4/attributes.m4 | 17 ++--------------- m4/features.m4 | 17 +++-------------- shared/array.c | 14 +------------- shared/hash.c | 14 +------------- shared/macro.h | 14 +------------- shared/scratchbuf.c | 14 +------------- shared/strbuf.c | 14 +------------- shared/util.c | 14 +------------- shell-completion/bash/kmod | 14 +------------- testsuite/delete_module.c | 14 +------------- testsuite/init_module.c | 14 +------------- testsuite/path.c | 14 +------------- testsuite/test-array.c | 14 +------------- testsuite/test-blacklist.c | 14 +------------- testsuite/test-dependencies.c | 14 +------------- testsuite/test-depmod.c | 14 +------------- testsuite/test-hash.c | 14 +------------- testsuite/test-init.c | 14 +------------- testsuite/test-initstate.c | 14 +------------- testsuite/test-list.c | 14 +------------- testsuite/test-loaded.c | 14 +------------- testsuite/test-modinfo.c | 14 +------------- testsuite/test-modprobe.c | 14 +------------- testsuite/test-new-module.c | 14 +------------- testsuite/test-scratchbuf.c | 14 +------------- testsuite/test-strbuf.c | 14 +------------- testsuite/test-testsuite.c | 14 +------------- testsuite/test-user.c | 14 +------------- testsuite/test-util.c | 14 +------------- testsuite/testsuite.c | 14 +------------- testsuite/testsuite.h | 14 +------------- testsuite/uname.c | 14 +------------- tools/depmod.c | 14 +------------- tools/insmod.c | 14 +------------- tools/kmod.c | 14 +------------- tools/kmod.h | 14 +------------- tools/log.c | 14 +------------- tools/log.h | 14 +------------- tools/lsmod.c | 14 +------------- tools/modinfo.c | 14 +------------- tools/modprobe.c | 14 +------------- tools/rmmod.c | 14 +------------- tools/static-nodes.c | 14 +------------- 54 files changed, 57 insertions(+), 705 deletions(-)
libkmod/libkmod-builtin.c +1 -13
@@ -1,20 +1,8 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libkmod - interface to kernel built-in modules * * Copyright (C) 2019 Alexey Gladkov <[email protected]> -* -* 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, see <http://www.gnu.org/licenses/>. */ #include <sys/types.h>
libkmod/libkmod-config.c +1 -13
@@ -1,21 +1,9 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libkmod - interface to kernel module operations * * Copyright (C) 2011-2013 ProFUSION embedded systems * Copyright (C) 2013 Intel Corporation. All rights reserved. -* -* 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, see <http://www.gnu.org/licenses/>. */ #include <ctype.h>
libkmod/libkmod-elf.c +1 -13
@@ -1,20 +1,8 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libkmod - interface to kernel module operations * * Copyright (C) 2011-2013 ProFUSION embedded systems -* -* 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, see <http://www.gnu.org/licenses/>. */ #include <assert.h>
libkmod/libkmod-file.c +1 -13
@@ -1,20 +1,8 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libkmod - interface to kernel module operations * * Copyright (C) 2011-2013 ProFUSION embedded systems -* -* 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, see <http://www.gnu.org/licenses/>. */ #include <errno.h>
libkmod/libkmod-index.c +1 -13
@@ -1,20 +1,8 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libkmod - interface to kernel module operations * * Copyright (C) 2011-2013 ProFUSION embedded systems -* -* 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, see <http://www.gnu.org/licenses/>. */ #include <arpa/inet.h>
libkmod/libkmod-index.h +1 -13
@@ -1,20 +1,8 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * libkmod - interface to kernel module operations * * Copyright (C) 2011-2013 ProFUSION embedded systems -* -* 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, see <http://www.gnu.org/licenses/>. */ #pragma once
libkmod/libkmod-list.c +1 -13
@@ -1,20 +1,8 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libkmod - interface to kernel module operations * * Copyright (C) 2011-2013 ProFUSION embedded systems -* -* 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, see <http://www.gnu.org/licenses/>. */ #include <stdlib.h>
libkmod/libkmod-module.c +1 -13
@@ -1,20 +1,8 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libkmod - interface to kernel module operations * * Copyright (C) 2011-2013 ProFUSION embedded systems -* -* 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, see <http://www.gnu.org/licenses/>. */ #include <assert.h>
libkmod/libkmod-signature.c +1 -13
@@ -1,20 +1,8 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libkmod - module signature display * * Copyright (C) 2013 Michal Marek, SUSE -* -* 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, see <http://www.gnu.org/licenses/>. */ #include <endian.h>
libkmod/libkmod.c +1 -13
@@ -1,20 +1,8 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libkmod - interface to kernel module operations * * Copyright (C) 2011-2013 ProFUSION embedded systems -* -* 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, see <http://www.gnu.org/licenses/>. */ #include <assert.h>
libkmod/libkmod.h +1 -13
@@ -1,20 +1,8 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * libkmod - interface to kernel module operations * * Copyright (C) 2011-2013 ProFUSION embedded systems -* -* 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, see <http://www.gnu.org/licenses/>. */ #pragma once
m4/attributes.m4 +2 -15
@@ -1,23 +1,10 @@ +dnl SPDX-License-Identifier: GPL-2.0-or-later +dnl dnl Macros to check the presence of generic (non-typed) symbols. dnl Copyright (c) 2006-2008 Diego Pettenò <[email protected]> dnl Copyright (c) 2006-2008 xine project dnl Copyright (c) 2012 Lucas De Marchi <[email protected]> dnl -dnl This program is free software; you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 2, or (at your option) -dnl any later version. -dnl -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with this program; if not, write to the Free Software -dnl Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -dnl 02110-1301, USA. -dnl dnl As a special exception, the copyright owners of the dnl macro gives unlimited permission to copy, distribute and modify the dnl configure scripts that are the output of Autoconf when processing the
m4/features.m4 +3 -14
@@ -1,17 +1,6 @@ -# Copyright (c) 2015 Lucas De Marchi <[email protected]> -# -# 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. +# SPDX-License-Identifier: GPL-2.0-or-later # -# You should have received a copy of the GNU General Public License along -# with this program. If not, see <http://www.gnu.org/licenses/>. +# Copyright (c) 2015 Lucas De Marchi <[email protected]> # # As a special exception, the respective Autoconf Macro's copyright owner # gives unlimited permission to copy, distribute and modify the configure
@@ -25,7 +14,7 @@ # 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. -# + # CC_FEATURE_APPEND([FLAGS], [ENV-TO-CHECK], [FLAG-NAME]) AC_DEFUN([CC_FEATURE_APPEND], [ AS_VAR_PUSHDEF([FLAGS], [$1])dnl
shared/array.c +1 -13
@@ -1,20 +1,8 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libkmod - interface to kernel module operations * * Copyright (C) 2011-2013 ProFUSION embedded systems -* -* 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, see <http://www.gnu.org/licenses/>. */ #include <assert.h>
shared/hash.c +1 -13
@@ -1,20 +1,8 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libkmod - interface to kernel module operations * * Copyright (C) 2011-2013 ProFUSION embedded systems -* -* 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, see <http://www.gnu.org/licenses/>. */ #include <errno.h>
shared/macro.h +1 -13
@@ -1,20 +1,8 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * kmod - interface to kernel module operations * * Copyright (C) 2011-2013 ProFUSION embedded systems -* -* 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, see <http://www.gnu.org/licenses/>. */ #pragma once
shared/scratchbuf.c +1 -13
@@ -1,20 +1,8 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * kmod - interface to kernel module operations * * Copyright (C) 2016 Intel Corporation. All rights reserved. -* -* 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, see <http://www.gnu.org/licenses/>. */ #include "scratchbuf.h"
shared/strbuf.c +1 -13
@@ -1,21 +1,9 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libkmod - interface to kernel module operations * * Copyright (C) 2011-2013 ProFUSION embedded systems * Copyright (C) 2014 Intel Corporation. All rights reserved. -* -* 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, see <http://www.gnu.org/licenses/>. */ #include <assert.h>
shared/util.c +1 -13
@@ -1,22 +1,10 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * kmod - interface to kernel module operations * * Copyright (C) 2011-2013 ProFUSION embedded systems * Copyright (C) 2012 Lucas De Marchi <[email protected]> * Copyright (C) 2013-2014 Intel Corporation. All rights reserved. -* -* 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, see <http://www.gnu.org/licenses/>. */ #include <assert.h>
shell-completion/bash/kmod +1 -13
@@ -1,22 +1,10 @@ # kmod completion -*- shell-script -*- +# SPDX-License-Identifier: LGPL-2.1-or-later # # This file is part of kmod. # # Copyright 2010 Ran Benita # Copyright (C) 2013 Intel Corporation. All rights reserved. -# -# This program 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 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 Lesser General Public License -# along with this program; if not, see <http://www.gnu.org/licenses/>. __contains_word () { local word=$1; shift
testsuite/delete_module.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * Copyright (C) 2012-2013 ProFUSION embedded systems -* -* This program 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 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 -* 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, see <http://www.gnu.org/licenses/>. */ #include <assert.h>
testsuite/init_module.c +1 -13
@@ -1,19 +1,7 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * Copyright (C) 2012-2013 ProFUSION embedded systems * Copyright (C) 2012-2013 Lucas De Marchi <[email protected]> -* -* This program 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 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 -* 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, see <http://www.gnu.org/licenses/>. */ #ifndef HAVE_FINIT_MODULE
testsuite/path.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * Copyright (C) 2012-2013 ProFUSION embedded systems -* -* This program 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 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 -* 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, see <http://www.gnu.org/licenses/>. */ /* We unset _FILE_OFFSET_BITS here so we can override both stat and stat64 on
testsuite/test-array.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * Copyright (C) 2014 Intel Corporation. All rights reserved. -* -* This program 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 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 -* 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, see <http://www.gnu.org/licenses/>. */ #include <errno.h>
testsuite/test-blacklist.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * Copyright (C) 2011-2013 ProFUSION embedded systems -* -* This program 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 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 -* 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, see <http://www.gnu.org/licenses/>. */ #include <errno.h>
testsuite/test-dependencies.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * Copyright (C) 2011-2013 ProFUSION embedded systems -* -* This program 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 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 -* 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, see <http://www.gnu.org/licenses/>. */ #include <errno.h>
testsuite/test-depmod.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * Copyright (C) 2012-2013 ProFUSION embedded systems -* -* This program 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 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 -* 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, see <http://www.gnu.org/licenses/>. */ #include <errno.h>
testsuite/test-hash.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * Copyright (C) 2014 Intel Corporation. All rights reserved. -* -* This program 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 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 -* 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, see <http://www.gnu.org/licenses/>. */ #include <errno.h>
testsuite/test-init.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * Copyright (C) 2012-2013 ProFUSION embedded systems -* -* This program 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 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 -* 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, see <http://www.gnu.org/licenses/>. */ #include <errno.h>
testsuite/test-initstate.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * Copyright (C) 2015 Intel Corporation. All rights reserved. -* -* This program 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 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 -* 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, see <http://www.gnu.org/licenses/>. */ #include <errno.h>
testsuite/test-list.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * Copyright (C) 2015 Intel Corporation. All rights reserved. -* -* This program 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 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 -* 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, see <http://www.gnu.org/licenses/>. */ #include <stdio.h>
testsuite/test-loaded.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * Copyright (C) 2012-2013 ProFUSION embedded systems -* -* This program 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 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 -* 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, see <http://www.gnu.org/licenses/>. */ #include <errno.h>
testsuite/test-modinfo.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * Copyright (C) 2012-2013 ProFUSION embedded systems -* -* This program 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 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 -* 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, see <http://www.gnu.org/licenses/>. */ #include <errno.h>
testsuite/test-modprobe.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * Copyright (C) 2012-2013 ProFUSION embedded systems -* -* This program 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 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 -* 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, see <http://www.gnu.org/licenses/>. */ #include <errno.h>
testsuite/test-new-module.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * Copyright (C) 2012-2013 ProFUSION embedded systems -* -* This program 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 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 -* 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, see <http://www.gnu.org/licenses/>. */ #include <errno.h>
testsuite/test-scratchbuf.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * Copyright (C) 2016 Intel Corporation. All rights reserved. -* -* This program 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 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 -* 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, see <http://www.gnu.org/licenses/>. */ #include <errno.h>
testsuite/test-strbuf.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * Copyright (C) 2014 Intel Corporation. All rights reserved. -* -* This program 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 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 -* 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, see <http://www.gnu.org/licenses/>. */ #include <errno.h>
testsuite/test-testsuite.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * Copyright (C) 2012-2013 ProFUSION embedded systems -* -* This program 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 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 -* 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, see <http://www.gnu.org/licenses/>. */ #include <dirent.h>
testsuite/test-user.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * Copyright Red Hat -* -* This program 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 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 -* 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, see <http://www.gnu.org/licenses/>. */ #include <errno.h>
testsuite/test-util.c +1 -13
@@ -1,19 +1,7 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * Copyright (C) 2012-2013 ProFUSION embedded systems * Copyright (C) 2012 Pedro Pedruzzi -* -* This program 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 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 -* 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, see <http://www.gnu.org/licenses/>. */ #include <fcntl.h>
testsuite/testsuite.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * Copyright (C) 2012-2013 ProFUSION embedded systems -* -* This program 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 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 -* 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, see <http://www.gnu.org/licenses/>. */ #include <dirent.h>
testsuite/testsuite.h +1 -13
@@ -1,18 +1,6 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * Copyright (C) 2012-2013 ProFUSION embedded systems -* -* This program 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 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 -* 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, see <http://www.gnu.org/licenses/>. */ #pragma once
testsuite/uname.c +1 -13
@@ -1,18 +1,6 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * Copyright (C) 2012-2013 ProFUSION embedded systems -* -* This program 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 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 -* 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, see <http://www.gnu.org/licenses/>. */ #include <dlfcn.h>
tools/depmod.c +1 -13
@@ -1,20 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * kmod-depmod - calculate modules.dep using libkmod. * * Copyright (C) 2011-2013 ProFUSION embedded systems -* -* 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 <http://www.gnu.org/licenses/>. */ #include <assert.h>
tools/insmod.c +1 -13
@@ -1,20 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * kmod-insmod - insert modules into linux kernel using libkmod. * * Copyright (C) 2011-2013 ProFUSION embedded systems -* -* 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 <http://www.gnu.org/licenses/>. */ #include <errno.h>
tools/kmod.c +1 -13
@@ -1,20 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * kmod - one tool to rule them all * * Copyright (C) 2011-2013 ProFUSION embedded systems -* -* 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 <http://www.gnu.org/licenses/>. */ #include <errno.h>
tools/kmod.h +1 -13
@@ -1,20 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * kmod - one tool to rule them all * * Copyright (C) 2011-2013 ProFUSION embedded systems -* -* 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 <http://www.gnu.org/licenses/>. */ #pragma once
tools/log.c +1 -13
@@ -1,20 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * kmod - log infrastructure * * Copyright (C) 2012-2013 ProFUSION embedded systems -* -* 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 <http://www.gnu.org/licenses/>. */ #include <errno.h>
tools/log.h +1 -13
@@ -1,20 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * kmod - log infrastructure * * Copyright (C) 2012-2013 ProFUSION embedded systems -* -* 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 <http://www.gnu.org/licenses/>. */ #include <stdarg.h>
tools/lsmod.c +1 -13
@@ -1,20 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * kmod-lsmod - list modules from linux kernel using libkmod. * * Copyright (C) 2011-2013 ProFUSION embedded systems -* -* 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 <http://www.gnu.org/licenses/>. */ #include <errno.h>
tools/modinfo.c +1 -13
@@ -1,20 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * kmod-modinfo - query kernel module information using libkmod. * * Copyright (C) 2011-2013 ProFUSION embedded systems -* -* 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 <http://www.gnu.org/licenses/>. */ #include <errno.h>
tools/modprobe.c +1 -13
@@ -1,20 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * kmod-modprobe - manage linux kernel modules using libkmod. * * Copyright (C) 2011-2013 ProFUSION embedded systems -* -* 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 <http://www.gnu.org/licenses/>. */ #include <assert.h>
tools/rmmod.c +1 -13
@@ -1,20 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * kmod-rmmod - remove modules from linux kernel using libkmod. * * Copyright (C) 2011-2013 ProFUSION embedded systems -* -* 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 <http://www.gnu.org/licenses/>. */ #include <errno.h>
tools/static-nodes.c +1 -13
@@ -1,22 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * kmod-static-nodes - manage modules.devname * * Copyright (C) 2004-2012 Kay Sievers <[email protected]> * Copyright (C) 2011-2013 ProFUSION embedded systems * Copyright (C) 2013 Tom Gundersen <[email protected]> -* -* 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 <http://www.gnu.org/licenses/>. */ #include <errno.h>
Signature · 1 line
2.45.2
Re: [PATCH v2 1/3] Use SPDX header for license
Hey Lucas,
Thanks for going through and splitting this, even though wasn't particularly fun.
One small note inline:
On Tue, 23 Jul 2024 at 19:59, Lucas De Marchi
<[email protected]> wrote:>
<snip>
Quoted 55 lines
m4/attributes.m4 +2
-15@@ -1,23 +1,10 @@ +dnl SPDX-License-Identifier: GPL-2.0-or-later +dnl dnl Macros to check the presence of generic (non-typed) symbols. dnl Copyright (c) 2006-2008 Diego Pettenò <[email protected]> dnl Copyright (c) 2006-2008 xine project dnl Copyright (c) 2012 Lucas De Marchi <[email protected]> dnl -dnl This program is free software; you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 2, or (at your option) -dnl any later version. -dnl -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with this program; if not, write to the Free Software -dnl Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -dnl 02110-1301, USA. -dnl dnl As a special exception, the copyright owners of the dnl macro gives unlimited permission to copy, distribute and modify the dnl configure scripts that are the output of Autoconf when processing them4/features.m4 +2
-13@@ -1,17 +1,6 @@ -# Copyright (c) 2015 Lucas De Marchi <[email protected]> -# -# 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. +# SPDX-License-Identifier: GPL-2.0-or-later # -# You should have received a copy of the GNU General Public License along -# with this program. If not, see <http://www.gnu.org/licenses/>. +# Copyright (c) 2015 Lucas De Marchi <[email protected]> # # As a special exception, the respective Autoconf Macro's copyright owner # gives unlimited permission to copy, distribute and modify the configure
m4/features.m4 line 20
Quoted 8 lines
m4/features.m4 +1
-1@@ -25,7 +14,7 @@ # 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. -# + # CC_FEATURE_APPEND([FLAGS], [ENV-TO-CHECK], [FLAG-NAME]) AC_DEFUN([CC_FEATURE_APPEND], [ AS_VAR_PUSHDEF([FLAGS], [$1])dnl
If I'm reading things correctly [1] [2], these two should be:
# SPDX-License-Identifier: GPL-2.0-or-later WITH Autoconf-exception-macro
... and the exception can be removed.
With that addressed - either as separate patch or squashed - the series is:
HTH
Emil
[1] https://spdx.org/licenses/exceptions-index.html
[2] https://spdx.org/licenses/Autoconf-exception-macro.html
Re: [PATCH v2 1/3] Use SPDX header for license
Quoted 78 lines · Emil Velikov
Hey Lucas,
Thanks for going through and splitting this, even though wasn't particularly fun.
One small note inline:
On Tue, 23 Jul 2024 at 19:59, Lucas De Marchi
<[email protected]> wrote:><snip>
Quoted 55 lines
m4/attributes.m4 +2
-15@@ -1,23 +1,10 @@ +dnl SPDX-License-Identifier: GPL-2.0-or-later +dnl dnl Macros to check the presence of generic (non-typed) symbols. dnl Copyright (c) 2006-2008 Diego Pettenò <[email protected]> dnl Copyright (c) 2006-2008 xine project dnl Copyright (c) 2012 Lucas De Marchi <[email protected]> dnl -dnl This program is free software; you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 2, or (at your option) -dnl any later version. -dnl -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with this program; if not, write to the Free Software -dnl Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -dnl 02110-1301, USA. -dnl dnl As a special exception, the copyright owners of the dnl macro gives unlimited permission to copy, distribute and modify the dnl configure scripts that are the output of Autoconf when processing them4/features.m4 +2
-13@@ -1,17 +1,6 @@ -# Copyright (c) 2015 Lucas De Marchi <[email protected]> -# -# 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. +# SPDX-License-Identifier: GPL-2.0-or-later # -# You should have received a copy of the GNU General Public License along -# with this program. If not, see <http://www.gnu.org/licenses/>. +# Copyright (c) 2015 Lucas De Marchi <[email protected]> # # As a special exception, the respective Autoconf Macro's copyright owner # gives unlimited permission to copy, distribute and modify the configurem4/features.m4 line 20
Quoted 8 lines
m4/features.m4 +1
-1@@ -25,7 +14,7 @@ # 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. -# + # CC_FEATURE_APPEND([FLAGS], [ENV-TO-CHECK], [FLAG-NAME]) AC_DEFUN([CC_FEATURE_APPEND], [ AS_VAR_PUSHDEF([FLAGS], [$1])dnlIf I'm reading things correctly [1] [2], these two should be:
Quoted 5 lines
# SPDX-License-Identifier: GPL-2.0-or-later WITH Autoconf-exception-macro
... and the exception can be removed.
With that addressed - either as separate patch or squashed - the series is:
great, I'll remove this and queue in the ci-test branch.
Quoted 1 line
Reviewed-by Emil Velikov <[email protected]>
Thanks
Lucas De Marchi
Quoted 6 lines
HTH
Emil[1] https://spdx.org/licenses/exceptions-index.html
[2] https://spdx.org/licenses/Autoconf-exception-macro.html
PATCH v2 2/3 Drop the one line short description on sources
In reply to Lucas De MarchiSome are outdated, misleading or just repeat the same thing over and over. Remove them as they are not needed.
--- libkmod/libkmod-builtin.c | 2 -- libkmod/libkmod-config.c | 2 -- libkmod/libkmod-elf.c | 2 -- libkmod/libkmod-file.c | 2 -- libkmod/libkmod-index.c | 2 -- libkmod/libkmod-index.h | 2 -- libkmod/libkmod-list.c | 2 -- libkmod/libkmod-module.c | 2 -- libkmod/libkmod-signature.c | 2 -- libkmod/libkmod.c | 2 -- libkmod/libkmod.h | 2 -- m4/attributes.m4 | 1 - shared/array.c | 2 -- shared/hash.c | 2 -- shared/macro.h | 2 -- shared/scratchbuf.c | 2 -- shared/strbuf.c | 2 -- shared/util.c | 2 -- shell-completion/bash/kmod | 2 -- tools/depmod.c | 2 -- tools/insmod.c | 2 -- tools/kmod.c | 2 -- tools/kmod.h | 2 -- tools/log.c | 2 -- tools/log.h | 2 -- tools/lsmod.c | 2 -- 26 files changed, 51 deletions(-)
libkmod/libkmod-builtin.c +0 -2
@@ -1,7 +1,5 @@// SPDX-License-Identifier: LGPL-2.1-or-later /* -* libkmod - interface to kernel built-in modules -* * Copyright (C) 2019 Alexey Gladkov <[email protected]> */
libkmod/libkmod-config.c +0 -2
@@ -1,7 +1,5 @@// SPDX-License-Identifier: LGPL-2.1-or-later /* -* libkmod - interface to kernel module operations -* * Copyright (C) 2011-2013 ProFUSION embedded systems * Copyright (C) 2013 Intel Corporation. All rights reserved. */
libkmod/libkmod-elf.c +0 -2
@@ -1,7 +1,5 @@// SPDX-License-Identifier: LGPL-2.1-or-later /* -* libkmod - interface to kernel module operations -* * Copyright (C) 2011-2013 ProFUSION embedded systems */
libkmod/libkmod-file.c +0 -2
@@ -1,7 +1,5 @@// SPDX-License-Identifier: LGPL-2.1-or-later /* -* libkmod - interface to kernel module operations -* * Copyright (C) 2011-2013 ProFUSION embedded systems */
libkmod/libkmod-index.c +0 -2
@@ -1,7 +1,5 @@// SPDX-License-Identifier: LGPL-2.1-or-later /* -* libkmod - interface to kernel module operations -* * Copyright (C) 2011-2013 ProFUSION embedded systems */
libkmod/libkmod-index.h +0 -2
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* -* libkmod - interface to kernel module operations -* * Copyright (C) 2011-2013 ProFUSION embedded systems */
libkmod/libkmod-list.c +0 -2
@@ -1,7 +1,5 @@// SPDX-License-Identifier: LGPL-2.1-or-later /* -* libkmod - interface to kernel module operations -* * Copyright (C) 2011-2013 ProFUSION embedded systems */
libkmod/libkmod-module.c +0 -2
@@ -1,7 +1,5 @@// SPDX-License-Identifier: LGPL-2.1-or-later /* -* libkmod - interface to kernel module operations -* * Copyright (C) 2011-2013 ProFUSION embedded systems */
libkmod/libkmod-signature.c +0 -2
@@ -1,7 +1,5 @@// SPDX-License-Identifier: LGPL-2.1-or-later /* -* libkmod - module signature display -* * Copyright (C) 2013 Michal Marek, SUSE */
libkmod/libkmod.c +0 -2
@@ -1,7 +1,5 @@// SPDX-License-Identifier: LGPL-2.1-or-later /* -* libkmod - interface to kernel module operations -* * Copyright (C) 2011-2013 ProFUSION embedded systems */
libkmod/libkmod.h +0 -2
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* -* libkmod - interface to kernel module operations -* * Copyright (C) 2011-2013 ProFUSION embedded systems */
m4/attributes.m4 +0 -1
@@ -1,6 +1,5 @@ dnl SPDX-License-Identifier: GPL-2.0-or-later dnl -dnl Macros to check the presence of generic (non-typed) symbols. dnl Copyright (c) 2006-2008 Diego Pettenò <[email protected]> dnl Copyright (c) 2006-2008 xine project dnl Copyright (c) 2012 Lucas De Marchi <[email protected]>
shared/array.c +0 -2
@@ -1,7 +1,5 @@// SPDX-License-Identifier: LGPL-2.1-or-later /* -* libkmod - interface to kernel module operations -* * Copyright (C) 2011-2013 ProFUSION embedded systems */
shared/hash.c +0 -2
@@ -1,7 +1,5 @@// SPDX-License-Identifier: LGPL-2.1-or-later /* -* libkmod - interface to kernel module operations -* * Copyright (C) 2011-2013 ProFUSION embedded systems */
shared/macro.h +0 -2
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* -* kmod - interface to kernel module operations -* * Copyright (C) 2011-2013 ProFUSION embedded systems */ #pragma once
shared/scratchbuf.c +0 -2
@@ -1,7 +1,5 @@// SPDX-License-Identifier: LGPL-2.1-or-later /* -* kmod - interface to kernel module operations -* * Copyright (C) 2016 Intel Corporation. All rights reserved. */ #include "scratchbuf.h"
shared/strbuf.c +0 -2
@@ -1,7 +1,5 @@// SPDX-License-Identifier: LGPL-2.1-or-later /* -* libkmod - interface to kernel module operations -* * Copyright (C) 2011-2013 ProFUSION embedded systems * Copyright (C) 2014 Intel Corporation. All rights reserved. */
shared/util.c +0 -2
@@ -1,7 +1,5 @@// SPDX-License-Identifier: LGPL-2.1-or-later /* -* kmod - interface to kernel module operations -* * Copyright (C) 2011-2013 ProFUSION embedded systems * Copyright (C) 2012 Lucas De Marchi <[email protected]> * Copyright (C) 2013-2014 Intel Corporation. All rights reserved.
shell-completion/bash/kmod +0 -2
@@ -1,8 +1,6 @@ # kmod completion -*- shell-script -*- # SPDX-License-Identifier: LGPL-2.1-or-later # -# This file is part of kmod. -# # Copyright 2010 Ran Benita # Copyright (C) 2013 Intel Corporation. All rights reserved.
tools/depmod.c +0 -2
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later /* -* kmod-depmod - calculate modules.dep using libkmod. -* * Copyright (C) 2011-2013 ProFUSION embedded systems */
tools/insmod.c +0 -2
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later /* -* kmod-insmod - insert modules into linux kernel using libkmod. -* * Copyright (C) 2011-2013 ProFUSION embedded systems */
tools/kmod.c +0 -2
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later /* -* kmod - one tool to rule them all -* * Copyright (C) 2011-2013 ProFUSION embedded systems */
tools/kmod.h +0 -2
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-or-later */ /* -* kmod - one tool to rule them all -* * Copyright (C) 2011-2013 ProFUSION embedded systems */
tools/log.c +0 -2
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later /* -* kmod - log infrastructure -* * Copyright (C) 2012-2013 ProFUSION embedded systems */
tools/log.h +0 -2
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later /* -* kmod - log infrastructure -* * Copyright (C) 2012-2013 ProFUSION embedded systems */
tools/lsmod.c +0 -2
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later /* -* kmod-lsmod - list modules from linux kernel using libkmod. -* * Copyright (C) 2011-2013 ProFUSION embedded systems */
Signature · 1 line
2.45.2
PATCH v2 3/3 depmod: Remove license/copyright from the middle
In reply to Lucas De MarchiThe top license is enough as it's the same. Just move the copyright to the top and remove notice about code that was copied and modified: that comment doesn't age well as source is updated.
--- tools/depmod.c | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-)
tools/depmod.c +2 -26
@@ -1,8 +1,10 @@// SPDX-License-Identifier: GPL-2.0-or-later /* +* Copyright (C) 2008 Alan Jenkins <[email protected]>. * Copyright (C) 2011-2013 ProFUSION embedded systems */ +#include <arpa/inet.h> #include <assert.h> #include <ctype.h> #include <dirent.h>
@@ -116,30 +118,7 @@ static inline void _show(const char *fmt, ...)#define SHOW (...) _show(__VA_ARGS__) -/* binary index write *************************************************/ -#include <arpa/inet.h> -/* BEGIN: code from module-init-tools/index.c just modified to compile here. -* -* Original copyright: -* index.c: module index file shared functions for modprobe and depmod -* Copyright (C) 2008 Alan Jenkins <[email protected]>. -* -* These programs are 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 these programs. If not, see <http://www.gnu.org/licenses/>. -*/ -/* see documentation in libkmod/libkmod-index.c */ -#define INDEX_MAGIC 0xB007F457#define INDEX_VERSION_MAJOR 0x0002#define INDEX_VERSION_MINOR 0x0001
@@ -418,9 +397,6 @@ static void index_write(const struct index_node *node, FILE *out) (void )fseek (out, final_offset,SEEK_SET ); } -/* END: code from module-init-tools/index.c just modified to compile here. -*/ -/* configuration parsing **********************************************/ struct cfg_override {struct cfg_override *next;
Signature · 1 line
2.45.2