From patchwork Tue Jul 23 18:59:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lucas De Marchi X-Patchwork-Id: 13740299 Received: from mail-qk1-f172.google.com (mail-qk1-f172.google.com [209.85.222.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2DA6913C3F5 for ; Tue, 23 Jul 2024 18:59:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721761180; cv=none; b=Ca2BL1Rft1X83Rt8SZqZ0r3QcLIIOaOKUiScpW7feiFyhISr5+xMj3MdAyOWz9ACSRk3piBv83Eoekkl6ndLmlXjQv3w1VMSyG4CX35hqdpg143As/J8uasILcmw78csjnkbRM1aD5kXnO1SDxOkabPZzp0bx/LEHQGcFvk/Rqo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721761180; c=relaxed/simple; bh=c0vxn9t/EYI7RtsAIOnQySW2g4N+Dgwx3DybhqV7VMA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=uKJrzXeTiOhr9nf/naSGXEy4Ge5h7/pRBDRiOEKuQSd5jTkq0rY2PrUuLtEjE2EFrDaN4+xYyXdMO3okXxXjMbJ+PNUGr5O8AMIaMSzzVb4+7YTe+oDeQ9yyu01Tfa41OOI8O/LFyNHvKZDIq4FNGaqLVp3HcWSDycBUam6oROY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=KFHOEFZ9; arc=none smtp.client-ip=209.85.222.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="KFHOEFZ9" Received: by mail-qk1-f172.google.com with SMTP id af79cd13be357-79f0e7faafcso370046685a.3 for ; Tue, 23 Jul 2024 11:59:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721761175; x=1722365975; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=QUsX2oqoqPhG3iSuhuD7GqQ3YqCIs0AbQ5TDNF0fsrY=; b=KFHOEFZ9bx53Sad1Cyhh6EprUu0Ol5Yt1cV2wEtCjy896/7ZYgSlYxT0ZP7PwhjRGv goQyZEIbWnYFjJtfJiehMyXummUxT5S9LSUfZDjMExxmxMZnurwjGaHmpuW48vGcstNY D3MVLcfXRD5exAfs/UGIhxYjePRS1z3Opk/UNWLjcjUYZnE3r4t5krHN3ac01WVwTKrL g0z1eJGxtT2Mpr1aH2hreX3BdkgfBZBvuEOpoPZAOsqt2AYEP7UWvU4jmav5HaC3lQ2i PgpAb/snqj2TniUkuFC7m4s3y0hARMsCV31QOJy9tfwJniCieIo2YA/szkh8zOnLPFst hrNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721761175; x=1722365975; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QUsX2oqoqPhG3iSuhuD7GqQ3YqCIs0AbQ5TDNF0fsrY=; b=NWXhDJzilShhBc4vCeGfSVpRNzMqJldLRg7vdlsSGHnrIOFpJf3yqLSwDumUjbc7Id RaR2g7YhRedKzbFRKg9S3qABClTiSpChrTfcFBAg6gKJ29RsjYMUCsgJ6VgUQslbtTxQ zT/cpMdMnWmWOJqgKlefz2t/j6gROTdEWHoxFxurv2mus2NMeAeSrOhZm4RGXM3oiH9g 08039wwO27OeUXObLTMsXzcL9mBxBCOms89RwaG+NqboiDj2JAsFrC0ZXF4qxgqUSdqF nQWm13DakORC4lkrMPBYMj18Nu/FI22wcFVfNB8ytJSAZag33SfNfYrjH+bpXe0WTdaf R7vw== X-Gm-Message-State: AOJu0YyqQFzvDNtJbJDuTJUmht4S3Djrjc76R7IAY+OPvsg1yhr9pawH MSUz6iSgJEosO9WYCNX51VdVflVJaMuViWfw77nktu1ia3CyD2fu7SQdUQ== X-Google-Smtp-Source: AGHT+IGL6O/rZ0RlZk83n0rdmolqm2WZwV/E6zV2rr4CA0l/VRkP0dJSP6GOPsrH3DoWj67gv18Ong== X-Received: by 2002:a05:620a:2946:b0:79e:f75d:e8bf with SMTP id af79cd13be357-7a1ca12a541mr77153285a.42.1721761173695; Tue, 23 Jul 2024 11:59:33 -0700 (PDT) Received: from ldmartin-desk2.lan ([134.134.137.74]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7a1990792a0sm504967685a.109.2024.07.23.11.59.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jul 2024 11:59:32 -0700 (PDT) From: Lucas De Marchi To: linux-modules@vger.kernel.org Cc: emil.l.velikov@gmail.com, Lucas De Marchi Subject: [PATCH v2 1/3] Use SPDX header for license Date: Tue, 23 Jul 2024 13:59:19 -0500 Message-ID: <20240723185921.1005569-2-lucas.de.marchi@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240723185921.1005569-1-lucas.de.marchi@gmail.com> References: <20240723185921.1005569-1-lucas.de.marchi@gmail.com> Precedence: bulk X-Mailing-List: linux-modules@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 '//'. Signed-off-by: Lucas De Marchi Reviewed-by: Emil Velikov --- 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(-) diff --git a/libkmod/libkmod-builtin.c b/libkmod/libkmod-builtin.c index 65334a8..66f9469 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 fb28ed9..af9b93e 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 933825b..93bf66c 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 52490fb..b39c32d 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 6a34c8d..b6245f2 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 db671b0..850b506 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 7623693..ad07587 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 5c26e03..b08393f 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 80f6447..7e3b973 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 fecb8e7..7704cac 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 fce66d1..b6273a0 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 bfdb50f..208dfdc 100644 --- a/m4/attributes.m4 +++ b/m4/attributes.m4 @@ -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ò 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 diff --git a/m4/features.m4 b/m4/features.m4 index 82a244f..6a9b5bd 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 # -# 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 c2e2e14..128c9fc 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 a87bc50..9eb87d8 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 b59f7dc..e8a890a 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 8d9eb83..e995755 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 a69d914..9a8ebea 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 437bc69..5c1afb9 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 f530836..6c66dc3 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 f3ae20b..8df93a1 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 503e703..d842ace 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 00935fb..7c5fa6c 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 ef1e1e9..61350f8 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 969567d..64dc58e 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 38f5fc1..5358f7c 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 eaa5b1a..d5aba23 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 1bea04e..1932102 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 edbfc23..11fd8b8 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 9332e8f..455dbee 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 535e8d7..6872975 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 9d5814f..9bf8eb7 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 373dc95..2157a11 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 6a824c9..534503d 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 9872b78..7ce8503 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 6d86957..69ad645 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 c98c91d..db80c53 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 c77c4bb..42c88e2 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 c37c9a0..97a4747 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 e3243e8..3511245 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 6602aaf..a567839 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 4b2565c..0b7b867 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 27f92d5..a7bd962 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 8e9e2d1..8113721 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 c422971..7c3ed04 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 e1a73be..989d343 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 1770786..f4d5e13 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 3317a35..050ecb2 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 d55a4c6..20d39a1 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 d9a27f2..2c2e62a 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 cacc32d..31ffa99 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 4328da6..47b721d 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 3942e7b..0f28ce2 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 5ef3743..435e0dc 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 From patchwork Tue Jul 23 18:59:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lucas De Marchi X-Patchwork-Id: 13740298 Received: from mail-qk1-f176.google.com (mail-qk1-f176.google.com [209.85.222.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A8C1E13D896 for ; Tue, 23 Jul 2024 18:59:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721761179; cv=none; b=IhINH7kgwxoj+FmGK05DFL33E8FQ3v7686EjB4wBLu4JByH5SDWCPtpkEvb/UNdMtoSkljLLEVdhzFHivkfFQHKQkxvAOdXg+L4LXOR6a4bbZ3W+HsckY2Q5rxU6Hn1LJS9lMFISrSpehRYt5Da5ACl4GNV8y+ef4/pIVQSogLQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721761179; c=relaxed/simple; bh=haA7qcaP3WvAXpXx/Le+cpBPXqGjlQU427btO1EMtJM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=fb2ikiJ47YDph+E46XOBE3qr43GitwRnNmjftKbKBLqDx+mUyuDPe3zt20flsJqpUQEF34O4KSJ2PU1iqa2ePX0WcaMQ2tUN5BH/IbLIzbCooBRucdh+OdDwqsy0OnG9uug+9U11XHSJD0Tb/MgA52Xkn9rUvPWtp9p8R6SvmQ4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=CZuc5KV6; arc=none smtp.client-ip=209.85.222.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="CZuc5KV6" Received: by mail-qk1-f176.google.com with SMTP id af79cd13be357-79ef93865afso335625585a.1 for ; Tue, 23 Jul 2024 11:59:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721761176; x=1722365976; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=TLGyGmw4I9bEwlKV7jHpqoR0Q29zndOl10V2bhJvcAs=; b=CZuc5KV6VbqvoXUJuODBjZxgx9vM0EltqaYy6TCA+H+Z0kRZ3IGE6YhygpoPztRUE+ sB7Hf8I9r2QKvG8OkmSrhmRiS1owww5gvciKZGGwMq68O08bs2llquHwrkTe0dxnd7Tj SnZ4Dt46yvBhVYlPrpcmzgCtD27aYe5ZnJJWk7YPqSNA8jut4/0n07ZAIX4DsGrbvZ/0 BqT0HB0SkpJAZzTG9ITeCJIKH2CCLJOshlTVZxSqDipj0e7dIJ/T0K7WYDQ6ID652Meg VZZKmp3wmWJVqO5TocXxfk8SOCT5Md7ahn+5nR8DH2F26AAUxnOCEwKtwsdh9p4VXvQ6 wrLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721761176; x=1722365976; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TLGyGmw4I9bEwlKV7jHpqoR0Q29zndOl10V2bhJvcAs=; b=Q3UcL4AW3QhRxmGYtaL4QHaZLOzw3+LHzg64tM2asP/M1S+c0NZj3NHLn6CQut0UYz 9DDJNnSdWjg0O1pMEoZ3JigqEWqem+PH5T/eSAXFbzRd3Fx+31NSCWWIJhEgh08eXnmi 1TbIfwB3hCSFgi27IJnEsv+HIajoPMXfCz6KhS8upiN8D6KXssAJbLGukwepI9EDEf+p aFmTjHP7VTr0OINbROsbDp8H/yT3svuCCVTIPP/eLn2Z0zxNVcLljMjVUbnxJPKwwiUG DThzA0s5lKPp7FhUQFKviSitCAuqrAV+aMnpfX8HwjqjJzYPthn76J94sv99SJTF7o89 iWLg== X-Gm-Message-State: AOJu0YxBc5Snd3n/R6y+fzsxfKv4YSmTXFr/Ds8tMG5Pw78KjQbYTroh kRxRmEQ8FlbaT78I8wKZwXG/+7AwFOdM7N3ONEQsFSKeHPeWLWQ/tzIo9Q== X-Google-Smtp-Source: AGHT+IHYcBvXLdFJDxHe3KP2LAbUN83r1xmdma7AmGldVHcOXmZ/prcFynIjZZIigIEn/Z2YIjf3YA== X-Received: by 2002:a05:620a:2585:b0:79d:67f3:636d with SMTP id af79cd13be357-7a1a652ef02mr1172431585a.19.1721761175617; Tue, 23 Jul 2024 11:59:35 -0700 (PDT) Received: from ldmartin-desk2.lan ([134.134.137.74]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7a1990792a0sm504967685a.109.2024.07.23.11.59.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jul 2024 11:59:35 -0700 (PDT) From: Lucas De Marchi To: linux-modules@vger.kernel.org Cc: emil.l.velikov@gmail.com, Lucas De Marchi Subject: [PATCH v2 2/3] Drop the one line short description on sources Date: Tue, 23 Jul 2024 13:59:20 -0500 Message-ID: <20240723185921.1005569-3-lucas.de.marchi@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240723185921.1005569-1-lucas.de.marchi@gmail.com> References: <20240723185921.1005569-1-lucas.de.marchi@gmail.com> Precedence: bulk X-Mailing-List: linux-modules@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Some are outdated, misleading or just repeat the same thing over and over. Remove them as they are not needed. Signed-off-by: Lucas De Marchi --- 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(-) diff --git a/libkmod/libkmod-builtin.c b/libkmod/libkmod-builtin.c index 66f9469..fd0f549 100644 --- a/libkmod/libkmod-builtin.c +++ b/libkmod/libkmod-builtin.c @@ -1,7 +1,5 @@ // SPDX-License-Identifier: LGPL-2.1-or-later /* - * libkmod - interface to kernel built-in modules - * * Copyright (C) 2019 Alexey Gladkov */ diff --git a/libkmod/libkmod-config.c b/libkmod/libkmod-config.c index af9b93e..919f4ed 100644 --- a/libkmod/libkmod-config.c +++ b/libkmod/libkmod-config.c @@ -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. */ diff --git a/libkmod/libkmod-elf.c b/libkmod/libkmod-elf.c index 93bf66c..06a9876 100644 --- a/libkmod/libkmod-elf.c +++ b/libkmod/libkmod-elf.c @@ -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 */ diff --git a/libkmod/libkmod-file.c b/libkmod/libkmod-file.c index b39c32d..c6c1e22 100644 --- a/libkmod/libkmod-file.c +++ b/libkmod/libkmod-file.c @@ -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 */ diff --git a/libkmod/libkmod-index.c b/libkmod/libkmod-index.c index b6245f2..b7f8bd3 100644 --- a/libkmod/libkmod-index.c +++ b/libkmod/libkmod-index.c @@ -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 */ diff --git a/libkmod/libkmod-index.h b/libkmod/libkmod-index.h index 850b506..5f0657e 100644 --- a/libkmod/libkmod-index.h +++ b/libkmod/libkmod-index.h @@ -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 */ diff --git a/libkmod/libkmod-list.c b/libkmod/libkmod-list.c index ad07587..38a3c27 100644 --- a/libkmod/libkmod-list.c +++ b/libkmod/libkmod-list.c @@ -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 */ diff --git a/libkmod/libkmod-module.c b/libkmod/libkmod-module.c index b08393f..c095e63 100644 --- a/libkmod/libkmod-module.c +++ b/libkmod/libkmod-module.c @@ -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 */ diff --git a/libkmod/libkmod-signature.c b/libkmod/libkmod-signature.c index 7e3b973..48caf74 100644 --- a/libkmod/libkmod-signature.c +++ b/libkmod/libkmod-signature.c @@ -1,7 +1,5 @@ // SPDX-License-Identifier: LGPL-2.1-or-later /* - * libkmod - module signature display - * * Copyright (C) 2013 Michal Marek, SUSE */ diff --git a/libkmod/libkmod.c b/libkmod/libkmod.c index 7704cac..7953716 100644 --- a/libkmod/libkmod.c +++ b/libkmod/libkmod.c @@ -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 */ diff --git a/libkmod/libkmod.h b/libkmod/libkmod.h index b6273a0..f3376f5 100644 --- a/libkmod/libkmod.h +++ b/libkmod/libkmod.h @@ -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 */ diff --git a/m4/attributes.m4 b/m4/attributes.m4 index 208dfdc..63aca0a 100644 --- a/m4/attributes.m4 +++ b/m4/attributes.m4 @@ -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ò dnl Copyright (c) 2006-2008 xine project dnl Copyright (c) 2012 Lucas De Marchi diff --git a/shared/array.c b/shared/array.c index 128c9fc..f63ca50 100644 --- a/shared/array.c +++ b/shared/array.c @@ -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 */ diff --git a/shared/hash.c b/shared/hash.c index 9eb87d8..37a8396 100644 --- a/shared/hash.c +++ b/shared/hash.c @@ -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 */ diff --git a/shared/macro.h b/shared/macro.h index e8a890a..d70c0b7 100644 --- a/shared/macro.h +++ b/shared/macro.h @@ -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 diff --git a/shared/scratchbuf.c b/shared/scratchbuf.c index e995755..5c51e4b 100644 --- a/shared/scratchbuf.c +++ b/shared/scratchbuf.c @@ -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" diff --git a/shared/strbuf.c b/shared/strbuf.c index 9a8ebea..0b63166 100644 --- a/shared/strbuf.c +++ b/shared/strbuf.c @@ -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. */ diff --git a/shared/util.c b/shared/util.c index 5c1afb9..66a7622 100644 --- a/shared/util.c +++ b/shared/util.c @@ -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 * Copyright (C) 2013-2014 Intel Corporation. All rights reserved. diff --git a/shell-completion/bash/kmod b/shell-completion/bash/kmod index 6c66dc3..7dd3d33 100644 --- a/shell-completion/bash/kmod +++ b/shell-completion/bash/kmod @@ -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. diff --git a/tools/depmod.c b/tools/depmod.c index 8113721..661cfc4 100644 --- a/tools/depmod.c +++ b/tools/depmod.c @@ -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 */ diff --git a/tools/insmod.c b/tools/insmod.c index 7c3ed04..4a1d11d 100644 --- a/tools/insmod.c +++ b/tools/insmod.c @@ -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 */ diff --git a/tools/kmod.c b/tools/kmod.c index 989d343..d28ec7b 100644 --- a/tools/kmod.c +++ b/tools/kmod.c @@ -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 */ diff --git a/tools/kmod.h b/tools/kmod.h index f4d5e13..c3c8683 100644 --- a/tools/kmod.h +++ b/tools/kmod.h @@ -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 */ diff --git a/tools/log.c b/tools/log.c index 050ecb2..e2fe9a7 100644 --- a/tools/log.c +++ b/tools/log.c @@ -1,7 +1,5 @@ // SPDX-License-Identifier: GPL-2.0-or-later /* - * kmod - log infrastructure - * * Copyright (C) 2012-2013 ProFUSION embedded systems */ diff --git a/tools/log.h b/tools/log.h index 20d39a1..72836be 100644 --- a/tools/log.h +++ b/tools/log.h @@ -1,7 +1,5 @@ // SPDX-License-Identifier: GPL-2.0-or-later /* - * kmod - log infrastructure - * * Copyright (C) 2012-2013 ProFUSION embedded systems */ diff --git a/tools/lsmod.c b/tools/lsmod.c index 2c2e62a..323aad6 100644 --- a/tools/lsmod.c +++ b/tools/lsmod.c @@ -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 */ From patchwork Tue Jul 23 18:59:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas De Marchi X-Patchwork-Id: 13740300 Received: from mail-qk1-f172.google.com (mail-qk1-f172.google.com [209.85.222.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5721913D898 for ; Tue, 23 Jul 2024 18:59:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721761180; cv=none; b=Ul/zxzd1mrJOKiai0UysWe/OX9YE06zoAuBbKFR4rFpyP0/DWAfy6m0w1FCjt0GKw+QzbMOKwwNWNwV41K8y1MkG/aYSKen6hO/XMeUaJTbhgM7C2zyD8wS1WkS0aQC2slSFT+P/ghQAOakVSaHRyIDeolpKOr1yWtmm9Oi9Sks= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721761180; c=relaxed/simple; bh=YXY4CInA9ySfj/m8nmIS+jbE4BvQlhdxoUr8y+bZtT8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=iwWwUOrsAlql0g3kOMmnJFsIdTs4eYaMT/k4fdXoGRFOwx1nSGjGYSTK0NJbtL4ts8QsNCzJm9kD1NF5jC3g1VCUn8ItAAGnGvUW/TFY7gAopsK1mRnUz1A8zm4hjzVyIRmIgxdKlJCLYGSrUhcfSpJT1F6ZkBGvQ6FT+jDK8jA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=kcLI9Mpt; arc=none smtp.client-ip=209.85.222.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="kcLI9Mpt" Received: by mail-qk1-f172.google.com with SMTP id af79cd13be357-79f1828ed64so397983785a.1 for ; Tue, 23 Jul 2024 11:59:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721761178; x=1722365978; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=joFMq8LNTkTdKeA1nH6pQLPSXZB8m4PzV8yJVIm/q68=; b=kcLI9MptnL/4n8CGEiTgghVjOQCuRnNoc/bMGL0DEGYPRhy7jNMIsMQtf4znfIrVdm U9LxZnvrj+n20HN+tzXIeF6VGgerS/cpg+jNj8XiZ+CEdjmqlXHUKNnXMIqHvJMjSv12 +P8TogIgfMVYwuvK0mzbV9SS4TF2NiAheMPDjrFJaqdx5as27CFqBnsUGcdu1zlJ21cS MhsDswz9BcPLVgCmGMe/0IbI6bR34fXJqBvFmslWKRN2qcRjLRRPyTHCE4+u6lHtv26P vi7YzbHot5y6SJkzCifegibJyWbmd03+DO5E47HVthY3WSNJ05KMxpvCJPAd+YNqpKxa WjIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721761178; x=1722365978; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=joFMq8LNTkTdKeA1nH6pQLPSXZB8m4PzV8yJVIm/q68=; b=YKLUO2tXQBtwKm9Wj7EiTEqX3Xwj423MXEtrHLpWY46gPlwVtC5FMq7gWtJ2M5teZw IXtq5za7mXQY2DfGddfT155OkxMGKIRgSqZKMf9sfsn3L3owe5gD/YVpxfJQi12VvlXp udG7hyLrvya7KfWth+qOwhMVjkQjlAuNyxNRK+8l1SzntbES7NQfwTVakpjwLFpqhkgt JVWXCzdDJOf7WcRgUohh1gw/73UQbzkDxPNSLujp0SWt4HWekbD9kivboqAwCHSbsfjf GAUVFclZG1B4PhGz5cGNQsYzamD9rMkrQk8r5cICzEX/k0He5wY9Gko3muL8P/IeOHp4 nRlA== X-Gm-Message-State: AOJu0Yzx0HGsu+l5w5UtKrOISzKw9Ug9QdYxdCFJp4VgubGGHYwPTeRh 5oQ1sNjNB83nzoBh88q8OUdQCWDZ/FMcvtfpygr0DxpqOAd1n/IUnxoREQ== X-Google-Smtp-Source: AGHT+IGdwgnqN6UypJHaCnxEq7Cn4YzBm2XcaZNH3/4u+KXFgyErSYA8WizZOTep3zQUSAMmtMaOdA== X-Received: by 2002:a05:620a:2910:b0:79d:945c:8d5e with SMTP id af79cd13be357-7a1ca19e5dcmr91539985a.49.1721761177688; Tue, 23 Jul 2024 11:59:37 -0700 (PDT) Received: from ldmartin-desk2.lan ([134.134.137.74]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7a1990792a0sm504967685a.109.2024.07.23.11.59.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jul 2024 11:59:36 -0700 (PDT) From: Lucas De Marchi To: linux-modules@vger.kernel.org Cc: emil.l.velikov@gmail.com, Lucas De Marchi Subject: [PATCH v2 3/3] depmod: Remove license/copyright from the middle Date: Tue, 23 Jul 2024 13:59:21 -0500 Message-ID: <20240723185921.1005569-4-lucas.de.marchi@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240723185921.1005569-1-lucas.de.marchi@gmail.com> References: <20240723185921.1005569-1-lucas.de.marchi@gmail.com> Precedence: bulk X-Mailing-List: linux-modules@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The 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. Signed-off-by: Lucas De Marchi --- tools/depmod.c | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/tools/depmod.c b/tools/depmod.c index 661cfc4..8b0a428 100644 --- a/tools/depmod.c +++ b/tools/depmod.c @@ -1,8 +1,10 @@ // SPDX-License-Identifier: GPL-2.0-or-later /* + * Copyright (C) 2008 Alan Jenkins . * Copyright (C) 2011-2013 ProFUSION embedded systems */ +#include #include #include #include @@ -116,30 +118,7 @@ static inline void _show(const char *fmt, ...) #define SHOW(...) _show(__VA_ARGS__) -/* binary index write *************************************************/ -#include -/* 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 . - * - * 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 . - */ - /* 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;