Reviewed-by: Allison Randal <allison@xxxxxxxxxxx> On 5/20/19 6:08 PM, Thomas Gleixner wrote: > Based on 1 normalized pattern(s): > > 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 or at your option any > later version > > extracted by the scancode license scanner the SPDX license identifier > > GPL-2.0-or-later > > has been chosen to replace the boilerplate/reference in 11 file(s). > > Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx> > Cc: linux-spdx@xxxxxxxxxxxxxxx > > --- > https://git.kernel.org/pub/scm/linux/kernel/git/tglx/linux-spdx.git/commit/?h=batch2&id=1e1d6a5564f4 > --- > arch/mips/cavium-octeon/crypto/octeon-sha512.c | 6 +----- > crypto/sha512_generic.c | 7 +------ > drivers/ata/ahci_da850.c | 6 +----- > drivers/ata/ahci_dm816.c | 6 +----- > drivers/ata/ahci_platform.c | 6 +----- > drivers/ata/ahci_qoriq.c | 6 +----- > drivers/ata/libahci_platform.c | 6 +----- > drivers/md/md-cluster.c | 7 +------ > drivers/scsi/scsi_debug.c | 7 +------ > drivers/scsi/sg.c | 7 +------ > include/linux/ahci_platform.h | 6 +----- > 11 files changed, 11 insertions(+), 59 deletions(-) > > --- a/arch/mips/cavium-octeon/crypto/octeon-sha512.c > +++ b/arch/mips/cavium-octeon/crypto/octeon-sha512.c > @@ -1,3 +1,4 @@ > +// SPDX-License-Identifier: GPL-2.0-or-later > /* > * Cryptographic API. > * > @@ -10,11 +11,6 @@ > * Copyright (c) Jean-Luc Cooke <jlcooke@xxxxxxxxxxxxxx> > * Copyright (c) Andrew McDonald <andrew@xxxxxxxxxxxxxxx> > * Copyright (c) 2003 Kyle McMartin <kyle@xxxxxxxxxx> > - * > - * 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, or (at your option) any > - * later version. > */ > > #include <linux/mm.h> > --- a/crypto/sha512_generic.c > +++ b/crypto/sha512_generic.c > @@ -1,14 +1,9 @@ > +// SPDX-License-Identifier: GPL-2.0-or-later > /* SHA-512 code by Jean-Luc Cooke <jlcooke@xxxxxxxxxxxxxx> > * > * Copyright (c) Jean-Luc Cooke <jlcooke@xxxxxxxxxxxxxx> > * Copyright (c) Andrew McDonald <andrew@xxxxxxxxxxxxxxx> > * Copyright (c) 2003 Kyle McMartin <kyle@xxxxxxxxxx> > - * > - * 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, or (at your option) any > - * later version. > - * > */ > #include <crypto/internal/hash.h> > #include <linux/kernel.h> > --- a/drivers/ata/ahci_da850.c > +++ b/drivers/ata/ahci_da850.c > @@ -1,10 +1,6 @@ > +// SPDX-License-Identifier: GPL-2.0-or-later > /* > * DaVinci DA850 AHCI SATA platform driver > - * > - * 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, or (at your option) > - * any later version. > */ > > #include <linux/kernel.h> > --- a/drivers/ata/ahci_dm816.c > +++ b/drivers/ata/ahci_dm816.c > @@ -1,12 +1,8 @@ > +// SPDX-License-Identifier: GPL-2.0-or-later > /* > * DaVinci DM816 AHCI SATA platform driver > * > * Copyright (C) 2017 BayLibre SAS > - * > - * 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, or (at your option) > - * any later version. > */ > > #include <linux/kernel.h> > --- a/drivers/ata/ahci_platform.c > +++ b/drivers/ata/ahci_platform.c > @@ -1,3 +1,4 @@ > +// SPDX-License-Identifier: GPL-2.0-or-later > /* > * AHCI SATA platform driver > * > @@ -5,11 +6,6 @@ > * Jeff Garzik <jgarzik@xxxxxxxxx> > * Copyright 2010 MontaVista Software, LLC. > * Anton Vorontsov <avorontsov@xxxxxxxxxxxxx> > - * > - * 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, or (at your option) > - * any later version. > */ > > #include <linux/kernel.h> > --- a/drivers/ata/ahci_qoriq.c > +++ b/drivers/ata/ahci_qoriq.c > @@ -1,13 +1,9 @@ > +// SPDX-License-Identifier: GPL-2.0-or-later > /* > * Freescale QorIQ AHCI SATA platform driver > * > * Copyright 2015 Freescale, Inc. > * Tang Yuantian <Yuantian.Tang@xxxxxxxxxxxxx> > - * > - * 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, or (at your option) > - * any later version. > */ > > #include <linux/kernel.h> > --- a/drivers/ata/libahci_platform.c > +++ b/drivers/ata/libahci_platform.c > @@ -1,3 +1,4 @@ > +// SPDX-License-Identifier: GPL-2.0-or-later > /* > * AHCI SATA platform library > * > @@ -5,11 +6,6 @@ > * Jeff Garzik <jgarzik@xxxxxxxxx> > * Copyright 2010 MontaVista Software, LLC. > * Anton Vorontsov <avorontsov@xxxxxxxxxxxxx> > - * > - * 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, or (at your option) > - * any later version. > */ > > #include <linux/clk.h> > --- a/drivers/md/md-cluster.c > +++ b/drivers/md/md-cluster.c > @@ -1,11 +1,6 @@ > +// SPDX-License-Identifier: GPL-2.0-or-later > /* > * Copyright (C) 2015, SUSE > - * > - * 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, or (at your option) > - * any later version. > - * > */ > > > --- a/drivers/scsi/scsi_debug.c > +++ b/drivers/scsi/scsi_debug.c > @@ -1,3 +1,4 @@ > +// SPDX-License-Identifier: GPL-2.0-or-later > /* > * vvvvvvvvvvvvvvvvvvvvvvv Original vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv > * Copyright (C) 1992 Eric Youngdale > @@ -8,13 +9,7 @@ > * > * Copyright (C) 2001 - 2018 Douglas Gilbert > * > - * 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, or (at your option) > - * any later version. > - * > * For documentation see http://sg.danny.cz/sg/sdebug26.html > - * > */ > > > --- a/drivers/scsi/sg.c > +++ b/drivers/scsi/sg.c > @@ -1,3 +1,4 @@ > +// SPDX-License-Identifier: GPL-2.0-or-later > /* > * History: > * Started: Aug 9 by Lawrence Foard (entropy@xxxxxxxxxxxxx), > @@ -8,12 +9,6 @@ > * Copyright (C) 1992 Lawrence Foard > * Version 2 and 3 extensions to driver: > * Copyright (C) 1998 - 2014 Douglas Gilbert > - * > - * 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, or (at your option) > - * any later version. > - * > */ > > static int sg_version_num = 30536; /* 2 digits for each component */ > --- a/include/linux/ahci_platform.h > +++ b/include/linux/ahci_platform.h > @@ -1,3 +1,4 @@ > +/* SPDX-License-Identifier: GPL-2.0-or-later */ > /* > * AHCI SATA platform driver > * > @@ -5,11 +6,6 @@ > * Jeff Garzik <jgarzik@xxxxxxxxx> > * Copyright 2010 MontaVista Software, LLC. > * Anton Vorontsov <avorontsov@xxxxxxxxxxxxx> > - * > - * 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, or (at your option) > - * any later version. > */ > > #ifndef _AHCI_PLATFORM_H > > > >