From: Lucas De Marchi Date: Tue, 23 Jul 2024 18:59:19 +0000 (-0500) Subject: Use SPDX header for license X-Git-Tag: v33~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b5a2cd070def74f07075e0018289a9fcf12e1a68;p=thirdparty%2Fkmod.git 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 '//'. For .m4, use "#". Reviewed-by: Emil Velikov Link: https://lore.kernel.org/r/20240723185921.1005569-2-lucas.de.marchi@gmail.com Signed-off-by: Lucas De Marchi --- diff --git a/libkmod/libkmod-builtin.c b/libkmod/libkmod-builtin.c index 65334a8a..66f94697 100644 --- a/libkmod/libkmod-builtin.c +++ b/libkmod/libkmod-builtin.c @@ -1,20 +1,8 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libkmod - interface to kernel built-in modules * * Copyright (C) 2019 Alexey Gladkov - * - * 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 . */ #include diff --git a/libkmod/libkmod-config.c b/libkmod/libkmod-config.c index fb28ed97..af9b93e4 100644 --- a/libkmod/libkmod-config.c +++ b/libkmod/libkmod-config.c @@ -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 . */ #include diff --git a/libkmod/libkmod-elf.c b/libkmod/libkmod-elf.c index 933825be..93bf66c9 100644 --- a/libkmod/libkmod-elf.c +++ b/libkmod/libkmod-elf.c @@ -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 . */ #include diff --git a/libkmod/libkmod-file.c b/libkmod/libkmod-file.c index 4842f133..4f189b13 100644 --- a/libkmod/libkmod-file.c +++ b/libkmod/libkmod-file.c @@ -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 . */ #include diff --git a/libkmod/libkmod-index.c b/libkmod/libkmod-index.c index 6a34c8d9..b6245f21 100644 --- a/libkmod/libkmod-index.c +++ b/libkmod/libkmod-index.c @@ -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 . */ #include diff --git a/libkmod/libkmod-index.h b/libkmod/libkmod-index.h index db671b08..850b5065 100644 --- a/libkmod/libkmod-index.h +++ b/libkmod/libkmod-index.h @@ -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 . */ #pragma once diff --git a/libkmod/libkmod-list.c b/libkmod/libkmod-list.c index 7623693a..ad075876 100644 --- a/libkmod/libkmod-list.c +++ b/libkmod/libkmod-list.c @@ -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 . */ #include diff --git a/libkmod/libkmod-module.c b/libkmod/libkmod-module.c index 5c26e032..b08393ff 100644 --- a/libkmod/libkmod-module.c +++ b/libkmod/libkmod-module.c @@ -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 . */ #include diff --git a/libkmod/libkmod-signature.c b/libkmod/libkmod-signature.c index 80f6447b..7e3b9730 100644 --- a/libkmod/libkmod-signature.c +++ b/libkmod/libkmod-signature.c @@ -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 . */ #include diff --git a/libkmod/libkmod.c b/libkmod/libkmod.c index fecb8e7d..7704cac1 100644 --- a/libkmod/libkmod.c +++ b/libkmod/libkmod.c @@ -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 . */ #include diff --git a/libkmod/libkmod.h b/libkmod/libkmod.h index fce66d18..b6273a02 100644 --- a/libkmod/libkmod.h +++ b/libkmod/libkmod.h @@ -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 . */ #pragma once diff --git a/m4/attributes.m4 b/m4/attributes.m4 index bfdb50fe..0d07d494 100644 --- a/m4/attributes.m4 +++ b/m4/attributes.m4 @@ -1,42 +1,10 @@ -dnl Macros to check the presence of generic (non-typed) symbols. -dnl Copyright (c) 2006-2008 Diego Pettenò -dnl Copyright (c) 2006-2008 xine project -dnl Copyright (c) 2012 Lucas De Marchi -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 -dnl Macro. You need not follow the terms of the GNU General Public -dnl License when using or distributing such scripts, even though portions -dnl of the text of the Macro appear in them. The GNU General Public -dnl License (GPL) does govern all other use of the material that -dnl constitutes the Autoconf Macro. -dnl -dnl This special exception to the GPL applies to versions of the -dnl Autoconf Macro released by this project. When you make and -dnl distribute a modified version of the Autoconf Macro, you may extend -dnl this special exception to the GPL to apply to your modified version as -dnl well. - -dnl Check if FLAG in ENV-VAR is supported by compiler and append it -dnl to WHERE-TO-APPEND variable. Note that we invert -Wno-* checks to -dnl -W* as gcc cannot test for negated warnings. -dnl CC_CHECK_FLAG_APPEND([WHERE-TO-APPEND], [ENV-VAR], [FLAG]) +# SPDX-License-Identifier: GPL-2.0-or-later WITH Autoconf-exception-macro +# +# Macros to check the presence of generic (non-typed) symbols. +# +# Copyright (c) 2006-2008 Diego Pettenò +# Copyright (c) 2006-2008 xine project +# Copyright (c) 2012 Lucas De Marchi AC_DEFUN([CC_CHECK_FLAG_APPEND], [ AC_CACHE_CHECK([if $CC supports flag $3 in envvar $2], diff --git a/m4/features.m4 b/m4/features.m4 index 82a244fb..87ed2fbc 100644 --- a/m4/features.m4 +++ b/m4/features.m4 @@ -1,17 +1,6 @@ -# Copyright (c) 2015 Lucas De Marchi -# -# 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 WITH Autoconf-exception-macro # -# You should have received a copy of the GNU General Public License along -# with this program. If not, see . +# Copyright (c) 2015 Lucas De Marchi # # 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 diff --git a/shared/array.c b/shared/array.c index c2e2e148..128c9fca 100644 --- a/shared/array.c +++ b/shared/array.c @@ -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 . */ #include diff --git a/shared/hash.c b/shared/hash.c index a87bc507..9eb87d83 100644 --- a/shared/hash.c +++ b/shared/hash.c @@ -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 . */ #include diff --git a/shared/macro.h b/shared/macro.h index b59f7dc7..e8a890af 100644 --- a/shared/macro.h +++ b/shared/macro.h @@ -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 . */ #pragma once diff --git a/shared/scratchbuf.c b/shared/scratchbuf.c index 8d9eb83f..e9957554 100644 --- a/shared/scratchbuf.c +++ b/shared/scratchbuf.c @@ -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 . */ #include "scratchbuf.h" diff --git a/shared/strbuf.c b/shared/strbuf.c index a69d914b..9a8ebea9 100644 --- a/shared/strbuf.c +++ b/shared/strbuf.c @@ -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 . */ #include diff --git a/shared/util.c b/shared/util.c index 437bc697..5c1afb9b 100644 --- a/shared/util.c +++ b/shared/util.c @@ -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 * 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 . */ #include diff --git a/shell-completion/bash/kmod b/shell-completion/bash/kmod index f530836f..6c66dc32 100644 --- a/shell-completion/bash/kmod +++ b/shell-completion/bash/kmod @@ -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 . __contains_word () { local word=$1; shift diff --git a/testsuite/delete_module.c b/testsuite/delete_module.c index f3ae20ba..8df93a16 100644 --- a/testsuite/delete_module.c +++ b/testsuite/delete_module.c @@ -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 . */ #include diff --git a/testsuite/init_module.c b/testsuite/init_module.c index 503e703a..d842ace0 100644 --- a/testsuite/init_module.c +++ b/testsuite/init_module.c @@ -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 - * - * 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 . */ #ifndef HAVE_FINIT_MODULE diff --git a/testsuite/path.c b/testsuite/path.c index 00935fb5..7c5fa6c8 100644 --- a/testsuite/path.c +++ b/testsuite/path.c @@ -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 . */ /* We unset _FILE_OFFSET_BITS here so we can override both stat and stat64 on diff --git a/testsuite/test-array.c b/testsuite/test-array.c index ef1e1e99..61350f86 100644 --- a/testsuite/test-array.c +++ b/testsuite/test-array.c @@ -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 . */ #include diff --git a/testsuite/test-blacklist.c b/testsuite/test-blacklist.c index 969567dd..64dc58e0 100644 --- a/testsuite/test-blacklist.c +++ b/testsuite/test-blacklist.c @@ -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 . */ #include diff --git a/testsuite/test-dependencies.c b/testsuite/test-dependencies.c index 38f5fc1c..5358f7c2 100644 --- a/testsuite/test-dependencies.c +++ b/testsuite/test-dependencies.c @@ -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 . */ #include diff --git a/testsuite/test-depmod.c b/testsuite/test-depmod.c index eaa5b1a0..d5aba230 100644 --- a/testsuite/test-depmod.c +++ b/testsuite/test-depmod.c @@ -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 . */ #include diff --git a/testsuite/test-hash.c b/testsuite/test-hash.c index 1bea04e6..19321023 100644 --- a/testsuite/test-hash.c +++ b/testsuite/test-hash.c @@ -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 . */ #include diff --git a/testsuite/test-init.c b/testsuite/test-init.c index edbfc233..11fd8b8b 100644 --- a/testsuite/test-init.c +++ b/testsuite/test-init.c @@ -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 . */ #include diff --git a/testsuite/test-initstate.c b/testsuite/test-initstate.c index 9332e8f2..455dbee9 100644 --- a/testsuite/test-initstate.c +++ b/testsuite/test-initstate.c @@ -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 . */ #include diff --git a/testsuite/test-list.c b/testsuite/test-list.c index 535e8d76..68729750 100644 --- a/testsuite/test-list.c +++ b/testsuite/test-list.c @@ -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 . */ #include diff --git a/testsuite/test-loaded.c b/testsuite/test-loaded.c index 9d5814f2..9bf8eb79 100644 --- a/testsuite/test-loaded.c +++ b/testsuite/test-loaded.c @@ -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 . */ #include diff --git a/testsuite/test-modinfo.c b/testsuite/test-modinfo.c index 373dc954..2157a11c 100644 --- a/testsuite/test-modinfo.c +++ b/testsuite/test-modinfo.c @@ -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 . */ #include diff --git a/testsuite/test-modprobe.c b/testsuite/test-modprobe.c index 6a824c9f..534503dc 100644 --- a/testsuite/test-modprobe.c +++ b/testsuite/test-modprobe.c @@ -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 . */ #include diff --git a/testsuite/test-new-module.c b/testsuite/test-new-module.c index 9872b783..7ce85037 100644 --- a/testsuite/test-new-module.c +++ b/testsuite/test-new-module.c @@ -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 . */ #include diff --git a/testsuite/test-scratchbuf.c b/testsuite/test-scratchbuf.c index 6d86957c..69ad6455 100644 --- a/testsuite/test-scratchbuf.c +++ b/testsuite/test-scratchbuf.c @@ -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 . */ #include diff --git a/testsuite/test-strbuf.c b/testsuite/test-strbuf.c index c98c91d1..db80c537 100644 --- a/testsuite/test-strbuf.c +++ b/testsuite/test-strbuf.c @@ -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 . */ #include diff --git a/testsuite/test-testsuite.c b/testsuite/test-testsuite.c index c77c4bbc..42c88e25 100644 --- a/testsuite/test-testsuite.c +++ b/testsuite/test-testsuite.c @@ -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 . */ #include diff --git a/testsuite/test-user.c b/testsuite/test-user.c index c37c9a00..97a4747e 100644 --- a/testsuite/test-user.c +++ b/testsuite/test-user.c @@ -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 . */ #include diff --git a/testsuite/test-util.c b/testsuite/test-util.c index e3243e8b..35112458 100644 --- a/testsuite/test-util.c +++ b/testsuite/test-util.c @@ -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 . */ #include diff --git a/testsuite/testsuite.c b/testsuite/testsuite.c index 6602aaf1..a567839f 100644 --- a/testsuite/testsuite.c +++ b/testsuite/testsuite.c @@ -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 . */ #include diff --git a/testsuite/testsuite.h b/testsuite/testsuite.h index 4b2565cd..0b7b867b 100644 --- a/testsuite/testsuite.h +++ b/testsuite/testsuite.h @@ -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 . */ #pragma once diff --git a/testsuite/uname.c b/testsuite/uname.c index 27f92d5b..a7bd962d 100644 --- a/testsuite/uname.c +++ b/testsuite/uname.c @@ -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 . */ #include diff --git a/tools/depmod.c b/tools/depmod.c index 8e9e2d11..81137210 100644 --- a/tools/depmod.c +++ b/tools/depmod.c @@ -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 . */ #include diff --git a/tools/insmod.c b/tools/insmod.c index c4229719..7c3ed04e 100644 --- a/tools/insmod.c +++ b/tools/insmod.c @@ -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 . */ #include diff --git a/tools/kmod.c b/tools/kmod.c index e1a73bea..989d343f 100644 --- a/tools/kmod.c +++ b/tools/kmod.c @@ -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 . */ #include diff --git a/tools/kmod.h b/tools/kmod.h index 1770786d..f4d5e135 100644 --- a/tools/kmod.h +++ b/tools/kmod.h @@ -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 . */ #pragma once diff --git a/tools/log.c b/tools/log.c index 3317a359..050ecb2c 100644 --- a/tools/log.c +++ b/tools/log.c @@ -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 . */ #include diff --git a/tools/log.h b/tools/log.h index d55a4c6f..20d39a10 100644 --- a/tools/log.h +++ b/tools/log.h @@ -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 . */ #include diff --git a/tools/lsmod.c b/tools/lsmod.c index d9a27f2d..2c2e62ae 100644 --- a/tools/lsmod.c +++ b/tools/lsmod.c @@ -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 . */ #include diff --git a/tools/modinfo.c b/tools/modinfo.c index cacc32dc..31ffa99c 100644 --- a/tools/modinfo.c +++ b/tools/modinfo.c @@ -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 . */ #include diff --git a/tools/modprobe.c b/tools/modprobe.c index 4328da60..47b721d7 100644 --- a/tools/modprobe.c +++ b/tools/modprobe.c @@ -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 . */ #include diff --git a/tools/rmmod.c b/tools/rmmod.c index 3942e7b4..0f28ce20 100644 --- a/tools/rmmod.c +++ b/tools/rmmod.c @@ -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 . */ #include diff --git a/tools/static-nodes.c b/tools/static-nodes.c index 5ef3743e..435e0dc1 100644 --- a/tools/static-nodes.c +++ b/tools/static-nodes.c @@ -1,22 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * kmod-static-nodes - manage modules.devname * * Copyright (C) 2004-2012 Kay Sievers * Copyright (C) 2011-2013 ProFUSION embedded systems * Copyright (C) 2013 Tom Gundersen - * - * 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 . */ #include