Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Ard Biesheuvel and committed by
Ingo Molnar
4febfb8d ac9aff8e

+29 -204
+1 -12
drivers/firmware/efi/apple-properties.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 3 * apple-properties.c - EFI device properties on Macs 3 4 * Copyright (C) 2016 Lukas Wunner <lukas@wunner.de> 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 - * 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 5 * 17 6 * Note, all properties are considered as u8 arrays. 18 7 * To get a value of any of them the caller must use device_property_read_u8_array().
+1 -5
drivers/firmware/efi/arm-init.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 3 * Extensible Firmware Interface 3 4 * 4 5 * Based on Extensible Firmware Interface Specification version 2.4 5 6 * 6 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 10 #define pr_fmt(fmt) "efi: " fmt
+1 -5
drivers/firmware/efi/arm-runtime.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 3 * Extensible Firmware Interface 3 4 * 4 5 * Based on Extensible Firmware Interface Specification version 2.4 5 6 * 6 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 10 #include <linux/dmi.h>
+1 -3
drivers/firmware/efi/capsule-loader.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 3 * EFI capsule loader driver. 3 4 * 4 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 8 #define pr_fmt(fmt) "efi: " fmt
+1 -3
drivers/firmware/efi/capsule.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 3 * EFI capsule support. 3 4 * 4 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 8 #define pr_fmt(fmt) "efi: " fmt
+1 -13
drivers/firmware/efi/cper-arm.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 3 * UEFI Common Platform Error Record (CPER) support 3 4 * 4 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 8 #include <linux/kernel.h>
+1 -13
drivers/firmware/efi/cper.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 3 * UEFI Common Platform Error Record (CPER) support 3 4 * ··· 10 9 * 11 10 * For more information about CPER, please refer to Appendix N of UEFI 12 11 * Specification version 2.4. 13 - * 14 - * This program is free software; you can redistribute it and/or 15 - * modify it under the terms of the GNU General Public License version 16 - * 2 as published by the Free Software Foundation. 17 - * 18 - * This program is distributed in the hope that it will be useful, 19 - * but WITHOUT ANY WARRANTY; without even the implied warranty of 20 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21 - * GNU General Public License for more details. 22 - * 23 - * You should have received a copy of the GNU General Public License 24 - * along with this program; if not, write to the Free Software 25 - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 12 */ 27 13 28 14 #include <linux/kernel.h>
+1 -8
drivers/firmware/efi/dev-path-parser.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 3 * dev-path-parser.c - EFI Device Path parser 3 4 * Copyright (C) 2016 Lukas Wunner <lukas@wunner.de> ··· 6 5 * This program is free software; you can redistribute it and/or modify 7 6 * it under the terms of the GNU General Public License (version 2) as 8 7 * 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, see <http://www.gnu.org/licenses/>. 17 8 */ 18 9 19 10 #include <linux/acpi.h>
+1 -4
drivers/firmware/efi/efi-bgrt.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 3 * Copyright 2012 Intel Corporation 3 4 * Author: Josh Triplett <josh@joshtriplett.org> ··· 6 5 * Based on the bgrt driver: 7 6 * Copyright 2012 Red Hat, Inc <mjg@redhat.com> 8 7 * Author: Matthew Garrett 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 version 2 as 12 - * published by the Free Software Foundation. 13 8 */ 14 9 15 10 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+2
drivers/firmware/efi/efi-pstore.c
··· 1 + // SPDX-License-Identifier: GPL-2.0+ 2 + 1 3 #include <linux/efi.h> 2 4 #include <linux/module.h> 3 5 #include <linux/pstore.h>
+1 -9
drivers/firmware/efi/efibc.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 3 * efibc: control EFI bootloaders which obey LoaderEntryOneShot var 3 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 7 #define pr_fmt(fmt) "efibc: " fmt
+1 -57
drivers/firmware/efi/efivars.c
··· 1 + // SPDX-License-Identifier: GPL-2.0+ 1 2 /* 2 3 * Originally from efivars.c, 3 4 * ··· 7 6 * 8 7 * This code takes all variables accessible from EFI runtime and 9 8 * exports them via sysfs 10 - * 11 - * This program is free software; you can redistribute it and/or modify 12 - * it under the terms of the GNU General Public License as published by 13 - * the Free Software Foundation; either version 2 of the License, or 14 - * (at your option) any later version. 15 - * 16 - * This program is distributed in the hope that it will be useful, 17 - * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 - * GNU General Public License for more details. 20 - * 21 - * You should have received a copy of the GNU General Public License 22 - * along with this program; if not, write to the Free Software 23 - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 - * 25 - * Changelog: 26 - * 27 - * 17 May 2004 - Matt Domsch <Matt_Domsch@dell.com> 28 - * remove check for efi_enabled in exit 29 - * add MODULE_VERSION 30 - * 31 - * 26 Apr 2004 - Matt Domsch <Matt_Domsch@dell.com> 32 - * minor bug fixes 33 - * 34 - * 21 Apr 2004 - Matt Tolentino <matthew.e.tolentino@intel.com) 35 - * converted driver to export variable information via sysfs 36 - * and moved to drivers/firmware directory 37 - * bumped revision number to v0.07 to reflect conversion & move 38 - * 39 - * 10 Dec 2002 - Matt Domsch <Matt_Domsch@dell.com> 40 - * fix locking per Peter Chubb's findings 41 - * 42 - * 25 Mar 2002 - Matt Domsch <Matt_Domsch@dell.com> 43 - * move uuid_unparse() to include/asm-ia64/efi.h:efi_guid_to_str() 44 - * 45 - * 12 Feb 2002 - Matt Domsch <Matt_Domsch@dell.com> 46 - * use list_for_each_safe when deleting vars. 47 - * remove ifdef CONFIG_SMP around include <linux/smp.h> 48 - * v0.04 release to linux-ia64@linuxia64.org 49 - * 50 - * 20 April 2001 - Matt Domsch <Matt_Domsch@dell.com> 51 - * Moved vars from /proc/efi to /proc/efi/vars, and made 52 - * efi.c own the /proc/efi directory. 53 - * v0.03 release to linux-ia64@linuxia64.org 54 - * 55 - * 26 March 2001 - Matt Domsch <Matt_Domsch@dell.com> 56 - * At the request of Stephane, moved ownership of /proc/efi 57 - * to efi.c, and now efivars lives under /proc/efi/vars. 58 - * 59 - * 12 March 2001 - Matt Domsch <Matt_Domsch@dell.com> 60 - * Feedback received from Stephane Eranian incorporated. 61 - * efivar_write() checks copy_from_user() return value. 62 - * efivar_read/write() returns proper errno. 63 - * v0.02 release to linux-ia64@linuxia64.org 64 - * 65 - * 26 February 2001 - Matt Domsch <Matt_Domsch@dell.com> 66 - * v0.01 release to linux-ia64@linuxia64.org 67 9 */ 68 10 69 11 #include <linux/efi.h>
+1
drivers/firmware/efi/esrt.c
··· 1 + // SPDX-License-Identifier: GPL-2.0+ 1 2 /* 2 3 * esrt.c 3 4 *
+1 -15
drivers/firmware/efi/fake_mem.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 3 * fake_mem.c 3 4 * ··· 9 8 * By specifying this parameter, you can add arbitrary attribute to 10 9 * specific memory range by updating original (firmware provided) EFI 11 10 * memmap. 12 - * 13 - * This program is free software; you can redistribute it and/or modify it 14 - * under the terms and conditions of the GNU General Public License, 15 - * version 2, as published by the Free Software Foundation. 16 - * 17 - * This program is distributed in the hope it will be useful, but WITHOUT 18 - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 19 - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 20 - * more details. 21 - * 22 - * You should have received a copy of the GNU General Public License along with 23 - * this program; if not, see <http://www.gnu.org/licenses/>. 24 - * 25 - * The full GNU General Public License is included in this distribution in 26 - * the file called "COPYING". 27 11 */ 28 12 29 13 #include <linux/kernel.h>
+1 -5
drivers/firmware/efi/libstub/arm32-stub.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 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 5 #include <linux/efi.h> 10 6 #include <asm/efi.h>
+1 -5
drivers/firmware/efi/libstub/arm64-stub.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 3 * Copyright (C) 2013, 2014 Linaro Ltd; <roy.franz@linaro.org> 3 4 * 4 5 * This file implements the EFI boot stub for the arm64 kernel. 5 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 /*
+1 -4
drivers/firmware/efi/libstub/efi-stub-helper.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 3 * Helper functions used by the EFI stub on multiple 3 4 * architectures. This should be #included by the EFI stub 4 5 * implementation files. 5 6 * 6 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 10 #include <linux/efi.h>
+1 -4
drivers/firmware/efi/libstub/fdt.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 3 * FDT related Helper functions used by the EFI stub on multiple 3 4 * architectures. This should be #included by the EFI stub 4 5 * implementation files. 5 6 * 6 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 10 #include <linux/efi.h>
+1 -3
drivers/firmware/efi/libstub/gop.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* ----------------------------------------------------------------------- 2 3 * 3 4 * Copyright 2011 Intel Corporation; author Matt Fleming 4 - * 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 5 * 8 6 * ----------------------------------------------------------------------- */ 9 7
+1 -5
drivers/firmware/efi/libstub/random.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 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 6 #include <linux/efi.h>
+1 -3
drivers/firmware/efi/libstub/secureboot.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 3 * Secure boot handling. 3 4 * ··· 6 5 * Roy Franz <roy.franz@linaro.org 7 6 * Copyright (C) 2013 Red Hat, Inc. 8 7 * Mark Salter <msalter@redhat.com> 9 - * 10 - * This file is part of the Linux kernel, and is made available under the 11 - * terms of the GNU General Public License version 2. 12 8 */ 13 9 #include <linux/efi.h> 14 10 #include <asm/efi.h>
+1 -3
drivers/firmware/efi/libstub/tpm.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 3 * TPM handling. 3 4 * ··· 6 5 * Copyright (C) 2017 Google, Inc. 7 6 * Matthew Garrett <mjg59@google.com> 8 7 * Thiebaud Weksteen <tweek@google.com> 9 - * 10 - * This file is part of the Linux kernel, and is made available under the 11 - * terms of the GNU General Public License version 2. 12 8 */ 13 9 #include <linux/efi.h> 14 10 #include <linux/tpm_eventlog.h>
+1 -4
drivers/firmware/efi/memattr.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 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 6 #define pr_fmt(fmt) "efi: memattr: " fmt
+1 -2
drivers/firmware/efi/runtime-map.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 3 * linux/drivers/efi/runtime-map.c 3 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 7 #include <linux/string.h>
+1
drivers/firmware/efi/test/efi_test.c
··· 1 + // SPDX-License-Identifier: GPL-2.0+ 1 2 /* 2 3 * EFI Test Driver for Runtime Services 3 4 *
+1 -1
drivers/firmware/efi/test/efi_test.h
··· 1 - /* SPDX-License-Identifier: GPL-2.0 */ 1 + /* SPDX-License-Identifier: GPL-2.0+ */ 2 2 /* 3 3 * EFI Test driver Header 4 4 *
+1 -4
drivers/firmware/efi/tpm.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 3 * Copyright (C) 2017 Google, Inc. 3 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 7 #include <linux/efi.h>
+1 -14
drivers/firmware/efi/vars.c
··· 1 + // SPDX-License-Identifier: GPL-2.0+ 1 2 /* 2 3 * Originally from efivars.c 3 4 * 4 5 * Copyright (C) 2001,2003,2004 Dell <Matt_Domsch@dell.com> 5 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 9 #include <linux/capability.h>