diff options
| author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2019-02-02 04:41:15 -0500 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2019-02-04 02:27:25 -0500 |
| commit | 4febfb8dd08b6f8bafc19f3f9e382a477425b578 (patch) | |
| tree | a06d90069f3dab6fc63005c0612016ddb239551d | |
| parent | ac9aff8ef99095b9d46d53d0a779f2bda24ba181 (diff) | |
efi: Replace GPL license boilerplate with SPDX headers
Replace all GPL license blurbs with an equivalent SPDX header (most
files are GPLv2, some are GPLv2+). While at it, drop some outdated
header changelogs as well.
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: AKASHI Takahiro <takahiro.akashi@linaro.org>
Cc: Alexander Graf <agraf@suse.de>
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>
Cc: Jeffrey Hugo <jhugo@codeaurora.org>
Cc: Lee Jones <lee.jones@linaro.org>
Cc: Leif Lindholm <leif.lindholm@linaro.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Matt Fleming <matt@codeblueprint.co.uk>
Cc: Peter Jones <pjones@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Sai Praneeth Prakhya <sai.praneeth.prakhya@intel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-efi@vger.kernel.org
Link: http://lkml.kernel.org/r/20190202094119.13230-7-ard.biesheuvel@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
28 files changed, 29 insertions, 204 deletions
diff --git a/drivers/firmware/efi/apple-properties.c b/drivers/firmware/efi/apple-properties.c index ac1654f74dc7..0e206c9e0d7a 100644 --- a/drivers/firmware/efi/apple-properties.c +++ b/drivers/firmware/efi/apple-properties.c | |||
| @@ -1,19 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | ||
| 1 | /* | 2 | /* |
| 2 | * apple-properties.c - EFI device properties on Macs | 3 | * apple-properties.c - EFI device properties on Macs |
| 3 | * Copyright (C) 2016 Lukas Wunner <lukas@wunner.de> | 4 | * Copyright (C) 2016 Lukas Wunner <lukas@wunner.de> |
| 4 | * | 5 | * |
| 5 | * This program is free software; you can redistribute it and/or modify | ||
| 6 | * it under the terms of the GNU General Public License (version 2) as | ||
| 7 | * published by the Free Software Foundation. | ||
| 8 | * | ||
| 9 | * This program is distributed in the hope that it will be useful, | ||
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | * GNU General Public License for more details. | ||
| 13 | * | ||
| 14 | * You should have received a copy of the GNU General Public License | ||
| 15 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 16 | * | ||
| 17 | * Note, all properties are considered as u8 arrays. | 6 | * Note, all properties are considered as u8 arrays. |
| 18 | * To get a value of any of them the caller must use device_property_read_u8_array(). | 7 | * To get a value of any of them the caller must use device_property_read_u8_array(). |
| 19 | */ | 8 | */ |
diff --git a/drivers/firmware/efi/arm-init.c b/drivers/firmware/efi/arm-init.c index 1a6a77df8a5e..311cd349a862 100644 --- a/drivers/firmware/efi/arm-init.c +++ b/drivers/firmware/efi/arm-init.c | |||
| @@ -1,14 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | ||
| 1 | /* | 2 | /* |
| 2 | * Extensible Firmware Interface | 3 | * Extensible Firmware Interface |
| 3 | * | 4 | * |
| 4 | * Based on Extensible Firmware Interface Specification version 2.4 | 5 | * Based on Extensible Firmware Interface Specification version 2.4 |
| 5 | * | 6 | * |
| 6 | * Copyright (C) 2013 - 2015 Linaro Ltd. | 7 | * Copyright (C) 2013 - 2015 Linaro Ltd. |
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or modify | ||
| 9 | * it under the terms of the GNU General Public License version 2 as | ||
| 10 | * published by the Free Software Foundation. | ||
| 11 | * | ||
| 12 | */ | 8 | */ |
| 13 | 9 | ||
| 14 | #define pr_fmt(fmt) "efi: " fmt | 10 | #define pr_fmt(fmt) "efi: " fmt |
diff --git a/drivers/firmware/efi/arm-runtime.c b/drivers/firmware/efi/arm-runtime.c index 352bd2473162..f99995666f86 100644 --- a/drivers/firmware/efi/arm-runtime.c +++ b/drivers/firmware/efi/arm-runtime.c | |||
| @@ -1,14 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | ||
| 1 | /* | 2 | /* |
| 2 | * Extensible Firmware Interface | 3 | * Extensible Firmware Interface |
| 3 | * | 4 | * |
| 4 | * Based on Extensible Firmware Interface Specification version 2.4 | 5 | * Based on Extensible Firmware Interface Specification version 2.4 |
| 5 | * | 6 | * |
| 6 | * Copyright (C) 2013, 2014 Linaro Ltd. | 7 | * Copyright (C) 2013, 2014 Linaro Ltd. |
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or modify | ||
| 9 | * it under the terms of the GNU General Public License version 2 as | ||
| 10 | * published by the Free Software Foundation. | ||
| 11 | * | ||
| 12 | */ | 8 | */ |
| 13 | 9 | ||
| 14 | #include <linux/dmi.h> | 10 | #include <linux/dmi.h> |
diff --git a/drivers/firmware/efi/capsule-loader.c b/drivers/firmware/efi/capsule-loader.c index 96688986da56..b1395133389e 100644 --- a/drivers/firmware/efi/capsule-loader.c +++ b/drivers/firmware/efi/capsule-loader.c | |||
| @@ -1,10 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | ||
| 1 | /* | 2 | /* |
| 2 | * EFI capsule loader driver. | 3 | * EFI capsule loader driver. |
| 3 | * | 4 | * |
| 4 | * Copyright 2015 Intel Corporation | 5 | * Copyright 2015 Intel Corporation |
| 5 | * | ||
| 6 | * This file is part of the Linux kernel, and is made available under | ||
| 7 | * the terms of the GNU General Public License version 2. | ||
| 8 | */ | 6 | */ |
| 9 | 7 | ||
| 10 | #define pr_fmt(fmt) "efi: " fmt | 8 | #define pr_fmt(fmt) "efi: " fmt |
diff --git a/drivers/firmware/efi/capsule.c b/drivers/firmware/efi/capsule.c index 4938c29b7c5d..598b7800d14e 100644 --- a/drivers/firmware/efi/capsule.c +++ b/drivers/firmware/efi/capsule.c | |||
| @@ -1,10 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | ||
| 1 | /* | 2 | /* |
| 2 | * EFI capsule support. | 3 | * EFI capsule support. |
| 3 | * | 4 | * |
| 4 | * Copyright 2013 Intel Corporation; author Matt Fleming | 5 | * Copyright 2013 Intel Corporation; author Matt Fleming |
| 5 | * | ||
| 6 | * This file is part of the Linux kernel, and is made available under | ||
| 7 | * the terms of the GNU General Public License version 2. | ||
| 8 | */ | 6 | */ |
| 9 | 7 | ||
| 10 | #define pr_fmt(fmt) "efi: " fmt | 8 | #define pr_fmt(fmt) "efi: " fmt |
diff --git a/drivers/firmware/efi/cper-arm.c b/drivers/firmware/efi/cper-arm.c index 502811344e81..36d3b8b9da47 100644 --- a/drivers/firmware/efi/cper-arm.c +++ b/drivers/firmware/efi/cper-arm.c | |||
| @@ -1,20 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | ||
| 1 | /* | 2 | /* |
| 2 | * UEFI Common Platform Error Record (CPER) support | 3 | * UEFI Common Platform Error Record (CPER) support |
| 3 | * | 4 | * |
| 4 | * Copyright (C) 2017, The Linux Foundation. All rights reserved. | 5 | * Copyright (C) 2017, The Linux Foundation. All rights reserved. |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or | ||
| 7 | * modify it under the terms of the GNU General Public License version | ||
| 8 | * 2 as published by the Free Software Foundation. | ||
| 9 | * | ||
| 10 | * This program is distributed in the hope that it will be useful, | ||
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 13 | * GNU General Public License for more details. | ||
| 14 | * | ||
| 15 | * You should have received a copy of the GNU General Public License | ||
| 16 | * along with this program; if not, write to the Free Software | ||
| 17 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
| 18 | */ | 6 | */ |
| 19 | 7 | ||
| 20 | #include <linux/kernel.h> | 8 | #include <linux/kernel.h> |
diff --git a/drivers/firmware/efi/cper.c b/drivers/firmware/efi/cper.c index a7902fccdcfa..6a966ecdd80a 100644 --- a/drivers/firmware/efi/cper.c +++ b/drivers/firmware/efi/cper.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | ||
| 1 | /* | 2 | /* |
| 2 | * UEFI Common Platform Error Record (CPER) support | 3 | * UEFI Common Platform Error Record (CPER) support |
| 3 | * | 4 | * |
| @@ -9,19 +10,6 @@ | |||
| 9 | * | 10 | * |
| 10 | * For more information about CPER, please refer to Appendix N of UEFI | 11 | * For more information about CPER, please refer to Appendix N of UEFI |
| 11 | * Specification version 2.4. | 12 | * Specification version 2.4. |
| 12 | * | ||
| 13 | * This program is free software; you can redistribute it and/or | ||
| 14 | * modify it under the terms of the GNU General Public License version | ||
| 15 | * 2 as published by the Free Software Foundation. | ||
| 16 | * | ||
| 17 | * This program is distributed in the hope that it will be useful, | ||
| 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 20 | * GNU General Public License for more details. | ||
| 21 | * | ||
| 22 | * You should have received a copy of the GNU General Public License | ||
| 23 | * along with this program; if not, write to the Free Software | ||
| 24 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
| 25 | */ | 13 | */ |
| 26 | 14 | ||
| 27 | #include <linux/kernel.h> | 15 | #include <linux/kernel.h> |
diff --git a/drivers/firmware/efi/dev-path-parser.c b/drivers/firmware/efi/dev-path-parser.c index 85d1834ee9b7..85ec99f97841 100644 --- a/drivers/firmware/efi/dev-path-parser.c +++ b/drivers/firmware/efi/dev-path-parser.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | ||
| 1 | /* | 2 | /* |
| 2 | * dev-path-parser.c - EFI Device Path parser | 3 | * dev-path-parser.c - EFI Device Path parser |
| 3 | * Copyright (C) 2016 Lukas Wunner <lukas@wunner.de> | 4 | * Copyright (C) 2016 Lukas Wunner <lukas@wunner.de> |
| @@ -5,14 +6,6 @@ | |||
| 5 | * This program is free software; you can redistribute it and/or modify | 6 | * This program is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License (version 2) as | 7 | * it under the terms of the GNU General Public License (version 2) as |
| 7 | * published by the Free Software Foundation. | 8 | * published by the Free Software Foundation. |
| 8 | * | ||
| 9 | * This program is distributed in the hope that it will be useful, | ||
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | * GNU General Public License for more details. | ||
| 13 | * | ||
| 14 | * You should have received a copy of the GNU General Public License | ||
| 15 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | 9 | */ |
| 17 | 10 | ||
| 18 | #include <linux/acpi.h> | 11 | #include <linux/acpi.h> |
diff --git a/drivers/firmware/efi/efi-bgrt.c b/drivers/firmware/efi/efi-bgrt.c index b22ccfb0c991..a2384184a7de 100644 --- a/drivers/firmware/efi/efi-bgrt.c +++ b/drivers/firmware/efi/efi-bgrt.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright 2012 Intel Corporation | 3 | * Copyright 2012 Intel Corporation |
| 3 | * Author: Josh Triplett <josh@joshtriplett.org> | 4 | * Author: Josh Triplett <josh@joshtriplett.org> |
| @@ -5,10 +6,6 @@ | |||
| 5 | * Based on the bgrt driver: | 6 | * Based on the bgrt driver: |
| 6 | * Copyright 2012 Red Hat, Inc <mjg@redhat.com> | 7 | * Copyright 2012 Red Hat, Inc <mjg@redhat.com> |
| 7 | * Author: Matthew Garrett | 8 | * Author: Matthew Garrett |
| 8 | * | ||
| 9 | * This program is free software; you can redistribute it and/or modify | ||
| 10 | * it under the terms of the GNU General Public License version 2 as | ||
| 11 | * published by the Free Software Foundation. | ||
| 12 | */ | 9 | */ |
| 13 | 10 | ||
| 14 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 11 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/drivers/firmware/efi/efi-pstore.c b/drivers/firmware/efi/efi-pstore.c index 0f7d97917197..9ea13e8d12ec 100644 --- a/drivers/firmware/efi/efi-pstore.c +++ b/drivers/firmware/efi/efi-pstore.c | |||
| @@ -1,3 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0+ | ||
| 2 | |||
| 1 | #include <linux/efi.h> | 3 | #include <linux/efi.h> |
| 2 | #include <linux/module.h> | 4 | #include <linux/module.h> |
| 3 | #include <linux/pstore.h> | 5 | #include <linux/pstore.h> |
diff --git a/drivers/firmware/efi/efibc.c b/drivers/firmware/efi/efibc.c index 503bbe2a9d49..61e099826cbb 100644 --- a/drivers/firmware/efi/efibc.c +++ b/drivers/firmware/efi/efibc.c | |||
| @@ -1,15 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | ||
| 1 | /* | 2 | /* |
| 2 | * efibc: control EFI bootloaders which obey LoaderEntryOneShot var | 3 | * efibc: control EFI bootloaders which obey LoaderEntryOneShot var |
| 3 | * Copyright (c) 2013-2016, Intel Corporation. | 4 | * Copyright (c) 2013-2016, Intel Corporation. |
| 4 | * | ||
| 5 | * This program is free software; you can redistribute it and/or modify it | ||
| 6 | * under the terms and conditions of the GNU General Public License, | ||
| 7 | * version 2, as published by the Free Software Foundation. | ||
| 8 | * | ||
| 9 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
| 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
| 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
| 12 | * more details. | ||
| 13 | */ | 5 | */ |
| 14 | 6 | ||
| 15 | #define pr_fmt(fmt) "efibc: " fmt | 7 | #define pr_fmt(fmt) "efibc: " fmt |
diff --git a/drivers/firmware/efi/efivars.c b/drivers/firmware/efi/efivars.c index 8061667a6765..7576450c8254 100644 --- a/drivers/firmware/efi/efivars.c +++ b/drivers/firmware/efi/efivars.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0+ | ||
| 1 | /* | 2 | /* |
| 2 | * Originally from efivars.c, | 3 | * Originally from efivars.c, |
| 3 | * | 4 | * |
| @@ -6,63 +7,6 @@ | |||
| 6 | * | 7 | * |
| 7 | * This code takes all variables accessible from EFI runtime and | 8 | * This code takes all variables accessible from EFI runtime and |
| 8 | * exports them via sysfs | 9 | * exports them via sysfs |
| 9 | * | ||
| 10 | * This program is free software; you can redistribute it and/or modify | ||
| 11 | * it under the terms of the GNU General Public License as published by | ||
| 12 | * the Free Software Foundation; either version 2 of the License, or | ||
| 13 | * (at your option) any later version. | ||
| 14 | * | ||
| 15 | * This program is distributed in the hope that it will be useful, | ||
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 18 | * GNU General Public License for more details. | ||
| 19 | * | ||
| 20 | * You should have received a copy of the GNU General Public License | ||
| 21 | * along with this program; if not, write to the Free Software | ||
| 22 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
| 23 | * | ||
| 24 | * Changelog: | ||
| 25 | * | ||
| 26 | * 17 May 2004 - Matt Domsch <Matt_Domsch@dell.com> | ||
| 27 | * remove check for efi_enabled in exit | ||
| 28 | * add MODULE_VERSION | ||
| 29 | * | ||
| 30 | * 26 Apr 2004 - Matt Domsch <Matt_Domsch@dell.com> | ||
| 31 | * minor bug fixes | ||
| 32 | * | ||
| 33 | * 21 Apr 2004 - Matt Tolentino <matthew.e.tolentino@intel.com) | ||
| 34 | * converted driver to export variable information via sysfs | ||
| 35 | * and moved to drivers/firmware directory | ||
| 36 | * bumped revision number to v0.07 to reflect conversion & move | ||
| 37 | * | ||
| 38 | * 10 Dec 2002 - Matt Domsch <Matt_Domsch@dell.com> | ||
| 39 | * fix locking per Peter Chubb's findings | ||
| 40 | * | ||
| 41 | * 25 Mar 2002 - Matt Domsch <Matt_Domsch@dell.com> | ||
| 42 | * move uuid_unparse() to include/asm-ia64/efi.h:efi_guid_to_str() | ||
| 43 | * | ||
| 44 | * 12 Feb 2002 - Matt Domsch <Matt_Domsch@dell.com> | ||
| 45 | * use list_for_each_safe when deleting vars. | ||
| 46 | * remove ifdef CONFIG_SMP around include <linux/smp.h> | ||
| 47 | * v0.04 release to linux-ia64@linuxia64.org | ||
| 48 | * | ||
| 49 | * 20 April 2001 - Matt Domsch <Matt_Domsch@dell.com> | ||
| 50 | * Moved vars from /proc/efi to /proc/efi/vars, and made | ||
| 51 | * efi.c own the /proc/efi directory. | ||
| 52 | * v0.03 release to linux-ia64@linuxia64.org | ||
| 53 | * | ||
| 54 | * 26 March 2001 - Matt Domsch <Matt_Domsch@dell.com> | ||
| 55 | * At the request of Stephane, moved ownership of /proc/efi | ||
| 56 | * to efi.c, and now efivars lives under /proc/efi/vars. | ||
| 57 | * | ||
| 58 | * 12 March 2001 - Matt Domsch <Matt_Domsch@dell.com> | ||
| 59 | * Feedback received from Stephane Eranian incorporated. | ||
| 60 | * efivar_write() checks copy_from_user() return value. | ||
| 61 | * efivar_read/write() returns proper errno. | ||
| 62 | * v0.02 release to linux-ia64@linuxia64.org | ||
| 63 | * | ||
| 64 | * 26 February 2001 - Matt Domsch <Matt_Domsch@dell.com> | ||
| 65 | * v0.01 release to linux-ia64@linuxia64.org | ||
| 66 | */ | 10 | */ |
| 67 | 11 | ||
| 68 | #include <linux/efi.h> | 12 | #include <linux/efi.h> |
diff --git a/drivers/firmware/efi/esrt.c b/drivers/firmware/efi/esrt.c index 5d06bd247d07..d6dd5f503fa2 100644 --- a/drivers/firmware/efi/esrt.c +++ b/drivers/firmware/efi/esrt.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0+ | ||
| 1 | /* | 2 | /* |
| 2 | * esrt.c | 3 | * esrt.c |
| 3 | * | 4 | * |
diff --git a/drivers/firmware/efi/fake_mem.c b/drivers/firmware/efi/fake_mem.c index 6c7d60c239b5..9501edc0fcfb 100644 --- a/drivers/firmware/efi/fake_mem.c +++ b/drivers/firmware/efi/fake_mem.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | ||
| 1 | /* | 2 | /* |
| 2 | * fake_mem.c | 3 | * fake_mem.c |
| 3 | * | 4 | * |
| @@ -8,21 +9,6 @@ | |||
| 8 | * By specifying this parameter, you can add arbitrary attribute to | 9 | * By specifying this parameter, you can add arbitrary attribute to |
| 9 | * specific memory range by updating original (firmware provided) EFI | 10 | * specific memory range by updating original (firmware provided) EFI |
| 10 | * memmap. | 11 | * memmap. |
| 11 | * | ||
| 12 | * This program is free software; you can redistribute it and/or modify it | ||
| 13 | * under the terms and conditions of the GNU General Public License, | ||
| 14 | * version 2, as published by the Free Software Foundation. | ||
| 15 | * | ||
| 16 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
| 17 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
| 18 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
| 19 | * more details. | ||
| 20 | * | ||
| 21 | * You should have received a copy of the GNU General Public License along with | ||
| 22 | * this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 23 | * | ||
| 24 | * The full GNU General Public License is included in this distribution in | ||
| 25 | * the file called "COPYING". | ||
| 26 | */ | 12 | */ |
| 27 | 13 | ||
| 28 | #include <linux/kernel.h> | 14 | #include <linux/kernel.h> |
diff --git a/drivers/firmware/efi/libstub/arm32-stub.c b/drivers/firmware/efi/libstub/arm32-stub.c index becbda445913..e8f7aefb6813 100644 --- a/drivers/firmware/efi/libstub/arm32-stub.c +++ b/drivers/firmware/efi/libstub/arm32-stub.c | |||
| @@ -1,10 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) 2013 Linaro Ltd; <roy.franz@linaro.org> | 3 | * Copyright (C) 2013 Linaro Ltd; <roy.franz@linaro.org> |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or modify | ||
| 5 | * it under the terms of the GNU General Public License version 2 as | ||
| 6 | * published by the Free Software Foundation. | ||
| 7 | * | ||
| 8 | */ | 4 | */ |
| 9 | #include <linux/efi.h> | 5 | #include <linux/efi.h> |
| 10 | #include <asm/efi.h> | 6 | #include <asm/efi.h> |
diff --git a/drivers/firmware/efi/libstub/arm64-stub.c b/drivers/firmware/efi/libstub/arm64-stub.c index 1b4d465cc5d9..1550d244e996 100644 --- a/drivers/firmware/efi/libstub/arm64-stub.c +++ b/drivers/firmware/efi/libstub/arm64-stub.c | |||
| @@ -1,13 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) 2013, 2014 Linaro Ltd; <roy.franz@linaro.org> | 3 | * Copyright (C) 2013, 2014 Linaro Ltd; <roy.franz@linaro.org> |
| 3 | * | 4 | * |
| 4 | * This file implements the EFI boot stub for the arm64 kernel. | 5 | * This file implements the EFI boot stub for the arm64 kernel. |
| 5 | * Adapted from ARM version by Mark Salter <msalter@redhat.com> | 6 | * Adapted from ARM version by Mark Salter <msalter@redhat.com> |
| 6 | * | ||
| 7 | * This program is free software; you can redistribute it and/or modify | ||
| 8 | * it under the terms of the GNU General Public License version 2 as | ||
| 9 | * published by the Free Software Foundation. | ||
| 10 | * | ||
| 11 | */ | 7 | */ |
| 12 | 8 | ||
| 13 | /* | 9 | /* |
diff --git a/drivers/firmware/efi/libstub/efi-stub-helper.c b/drivers/firmware/efi/libstub/efi-stub-helper.c index e94975f4655b..8f2d000bec75 100644 --- a/drivers/firmware/efi/libstub/efi-stub-helper.c +++ b/drivers/firmware/efi/libstub/efi-stub-helper.c | |||
| @@ -1,13 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | ||
| 1 | /* | 2 | /* |
| 2 | * Helper functions used by the EFI stub on multiple | 3 | * Helper functions used by the EFI stub on multiple |
| 3 | * architectures. This should be #included by the EFI stub | 4 | * architectures. This should be #included by the EFI stub |
| 4 | * implementation files. | 5 | * implementation files. |
| 5 | * | 6 | * |
| 6 | * Copyright 2011 Intel Corporation; author Matt Fleming | 7 | * Copyright 2011 Intel Corporation; author Matt Fleming |
| 7 | * | ||
| 8 | * This file is part of the Linux kernel, and is made available | ||
| 9 | * under the terms of the GNU General Public License version 2. | ||
| 10 | * | ||
| 11 | */ | 8 | */ |
| 12 | 9 | ||
| 13 | #include <linux/efi.h> | 10 | #include <linux/efi.h> |
diff --git a/drivers/firmware/efi/libstub/fdt.c b/drivers/firmware/efi/libstub/fdt.c index d474964b873b..7cfc51935c4b 100644 --- a/drivers/firmware/efi/libstub/fdt.c +++ b/drivers/firmware/efi/libstub/fdt.c | |||
| @@ -1,13 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | ||
| 1 | /* | 2 | /* |
| 2 | * FDT related Helper functions used by the EFI stub on multiple | 3 | * FDT related Helper functions used by the EFI stub on multiple |
| 3 | * architectures. This should be #included by the EFI stub | 4 | * architectures. This should be #included by the EFI stub |
| 4 | * implementation files. | 5 | * implementation files. |
| 5 | * | 6 | * |
| 6 | * Copyright 2013 Linaro Limited; author Roy Franz | 7 | * Copyright 2013 Linaro Limited; author Roy Franz |
| 7 | * | ||
| 8 | * This file is part of the Linux kernel, and is made available | ||
| 9 | * under the terms of the GNU General Public License version 2. | ||
| 10 | * | ||
| 11 | */ | 8 | */ |
| 12 | 9 | ||
| 13 | #include <linux/efi.h> | 10 | #include <linux/efi.h> |
diff --git a/drivers/firmware/efi/libstub/gop.c b/drivers/firmware/efi/libstub/gop.c index 24c461dea7af..0101ca4c13b1 100644 --- a/drivers/firmware/efi/libstub/gop.c +++ b/drivers/firmware/efi/libstub/gop.c | |||
| @@ -1,10 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | ||
| 1 | /* ----------------------------------------------------------------------- | 2 | /* ----------------------------------------------------------------------- |
| 2 | * | 3 | * |
| 3 | * Copyright 2011 Intel Corporation; author Matt Fleming | 4 | * Copyright 2011 Intel Corporation; author Matt Fleming |
| 4 | * | 5 | * |
| 5 | * This file is part of the Linux kernel, and is made available under | ||
| 6 | * the terms of the GNU General Public License version 2. | ||
| 7 | * | ||
| 8 | * ----------------------------------------------------------------------- */ | 6 | * ----------------------------------------------------------------------- */ |
| 9 | 7 | ||
| 10 | #include <linux/efi.h> | 8 | #include <linux/efi.h> |
diff --git a/drivers/firmware/efi/libstub/random.c b/drivers/firmware/efi/libstub/random.c index e0e603a89aa9..b4b1d1dcb5fd 100644 --- a/drivers/firmware/efi/libstub/random.c +++ b/drivers/firmware/efi/libstub/random.c | |||
| @@ -1,10 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) 2016 Linaro Ltd; <ard.biesheuvel@linaro.org> | 3 | * Copyright (C) 2016 Linaro Ltd; <ard.biesheuvel@linaro.org> |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or modify | ||
| 5 | * it under the terms of the GNU General Public License version 2 as | ||
| 6 | * published by the Free Software Foundation. | ||
| 7 | * | ||
| 8 | */ | 4 | */ |
| 9 | 5 | ||
| 10 | #include <linux/efi.h> | 6 | #include <linux/efi.h> |
diff --git a/drivers/firmware/efi/libstub/secureboot.c b/drivers/firmware/efi/libstub/secureboot.c index 72d9dfbebf08..edba5e7a3743 100644 --- a/drivers/firmware/efi/libstub/secureboot.c +++ b/drivers/firmware/efi/libstub/secureboot.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | ||
| 1 | /* | 2 | /* |
| 2 | * Secure boot handling. | 3 | * Secure boot handling. |
| 3 | * | 4 | * |
| @@ -5,9 +6,6 @@ | |||
| 5 | * Roy Franz <roy.franz@linaro.org | 6 | * Roy Franz <roy.franz@linaro.org |
| 6 | * Copyright (C) 2013 Red Hat, Inc. | 7 | * Copyright (C) 2013 Red Hat, Inc. |
| 7 | * Mark Salter <msalter@redhat.com> | 8 | * Mark Salter <msalter@redhat.com> |
| 8 | * | ||
| 9 | * This file is part of the Linux kernel, and is made available under the | ||
| 10 | * terms of the GNU General Public License version 2. | ||
| 11 | */ | 9 | */ |
| 12 | #include <linux/efi.h> | 10 | #include <linux/efi.h> |
| 13 | #include <asm/efi.h> | 11 | #include <asm/efi.h> |
diff --git a/drivers/firmware/efi/libstub/tpm.c b/drivers/firmware/efi/libstub/tpm.c index a90b0b8fc69a..5bd04f75d8d6 100644 --- a/drivers/firmware/efi/libstub/tpm.c +++ b/drivers/firmware/efi/libstub/tpm.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | ||
| 1 | /* | 2 | /* |
| 2 | * TPM handling. | 3 | * TPM handling. |
| 3 | * | 4 | * |
| @@ -5,9 +6,6 @@ | |||
| 5 | * Copyright (C) 2017 Google, Inc. | 6 | * Copyright (C) 2017 Google, Inc. |
| 6 | * Matthew Garrett <mjg59@google.com> | 7 | * Matthew Garrett <mjg59@google.com> |
| 7 | * Thiebaud Weksteen <tweek@google.com> | 8 | * Thiebaud Weksteen <tweek@google.com> |
| 8 | * | ||
| 9 | * This file is part of the Linux kernel, and is made available under the | ||
| 10 | * terms of the GNU General Public License version 2. | ||
| 11 | */ | 9 | */ |
| 12 | #include <linux/efi.h> | 10 | #include <linux/efi.h> |
| 13 | #include <linux/tpm_eventlog.h> | 11 | #include <linux/tpm_eventlog.h> |
diff --git a/drivers/firmware/efi/memattr.c b/drivers/firmware/efi/memattr.c index aac972b056d9..58452fde92cc 100644 --- a/drivers/firmware/efi/memattr.c +++ b/drivers/firmware/efi/memattr.c | |||
| @@ -1,9 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) 2016 Linaro Ltd. <ard.biesheuvel@linaro.org> | 3 | * Copyright (C) 2016 Linaro Ltd. <ard.biesheuvel@linaro.org> |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or modify | ||
| 5 | * it under the terms of the GNU General Public License version 2 as | ||
| 6 | * published by the Free Software Foundation. | ||
| 7 | */ | 4 | */ |
| 8 | 5 | ||
| 9 | #define pr_fmt(fmt) "efi: memattr: " fmt | 6 | #define pr_fmt(fmt) "efi: memattr: " fmt |
diff --git a/drivers/firmware/efi/runtime-map.c b/drivers/firmware/efi/runtime-map.c index 84a11d0a8023..ad9ddefc9dcb 100644 --- a/drivers/firmware/efi/runtime-map.c +++ b/drivers/firmware/efi/runtime-map.c | |||
| @@ -1,8 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | ||
| 1 | /* | 2 | /* |
| 2 | * linux/drivers/efi/runtime-map.c | 3 | * linux/drivers/efi/runtime-map.c |
| 3 | * Copyright (C) 2013 Red Hat, Inc., Dave Young <dyoung@redhat.com> | 4 | * Copyright (C) 2013 Red Hat, Inc., Dave Young <dyoung@redhat.com> |
| 4 | * | ||
| 5 | * This file is released under the GPLv2. | ||
| 6 | */ | 5 | */ |
| 7 | 6 | ||
| 8 | #include <linux/string.h> | 7 | #include <linux/string.h> |
diff --git a/drivers/firmware/efi/test/efi_test.c b/drivers/firmware/efi/test/efi_test.c index 51ecf7d6da48..877745c3aaf2 100644 --- a/drivers/firmware/efi/test/efi_test.c +++ b/drivers/firmware/efi/test/efi_test.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0+ | ||
| 1 | /* | 2 | /* |
| 2 | * EFI Test Driver for Runtime Services | 3 | * EFI Test Driver for Runtime Services |
| 3 | * | 4 | * |
diff --git a/drivers/firmware/efi/test/efi_test.h b/drivers/firmware/efi/test/efi_test.h index 5f4818bf112f..f2446aa1c2e3 100644 --- a/drivers/firmware/efi/test/efi_test.h +++ b/drivers/firmware/efi/test/efi_test.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* | 2 | /* |
| 3 | * EFI Test driver Header | 3 | * EFI Test driver Header |
| 4 | * | 4 | * |
diff --git a/drivers/firmware/efi/tpm.c b/drivers/firmware/efi/tpm.c index 0cbeb3d46b18..3a689b40ccc0 100644 --- a/drivers/firmware/efi/tpm.c +++ b/drivers/firmware/efi/tpm.c | |||
| @@ -1,10 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) 2017 Google, Inc. | 3 | * Copyright (C) 2017 Google, Inc. |
| 3 | * Thiebaud Weksteen <tweek@google.com> | 4 | * Thiebaud Weksteen <tweek@google.com> |
| 4 | * | ||
| 5 | * This program is free software; you can redistribute it and/or modify | ||
| 6 | * it under the terms of the GNU General Public License version 2 as | ||
| 7 | * published by the Free Software Foundation. | ||
| 8 | */ | 5 | */ |
| 9 | 6 | ||
| 10 | #include <linux/efi.h> | 7 | #include <linux/efi.h> |
diff --git a/drivers/firmware/efi/vars.c b/drivers/firmware/efi/vars.c index fceaafd67ec6..436d1776bc7b 100644 --- a/drivers/firmware/efi/vars.c +++ b/drivers/firmware/efi/vars.c | |||
| @@ -1,22 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0+ | ||
| 1 | /* | 2 | /* |
| 2 | * Originally from efivars.c | 3 | * Originally from efivars.c |
| 3 | * | 4 | * |
| 4 | * Copyright (C) 2001,2003,2004 Dell <Matt_Domsch@dell.com> | 5 | * Copyright (C) 2001,2003,2004 Dell <Matt_Domsch@dell.com> |
| 5 | * Copyright (C) 2004 Intel Corporation <matthew.e.tolentino@intel.com> | 6 | * Copyright (C) 2004 Intel Corporation <matthew.e.tolentino@intel.com> |
| 6 | * | ||
| 7 | * This program is free software; you can redistribute it and/or modify | ||
| 8 | * it under the terms of the GNU General Public License as published by | ||
| 9 | * the Free Software Foundation; either version 2 of the License, or | ||
| 10 | * (at your option) any later version. | ||
| 11 | * | ||
| 12 | * This program is distributed in the hope that it will be useful, | ||
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 15 | * GNU General Public License for more details. | ||
| 16 | * | ||
| 17 | * You should have received a copy of the GNU General Public License | ||
| 18 | * along with this program; if not, write to the Free Software | ||
| 19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
| 20 | */ | 7 | */ |
| 21 | 8 | ||
| 22 | #include <linux/capability.h> | 9 | #include <linux/capability.h> |
