diff options
Diffstat (limited to 'lib')
82 files changed, 124 insertions, 698 deletions
diff --git a/lib/842/842_compress.c b/lib/842/842_compress.c index 4051339bdfbd..c02baa4168e1 100644 --- a/lib/842/842_compress.c +++ b/lib/842/842_compress.c | |||
| @@ -1,18 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * 842 Software Compression | 3 | * 842 Software Compression |
| 3 | * | 4 | * |
| 4 | * Copyright (C) 2015 Dan Streetman, IBM Corp | 5 | * Copyright (C) 2015 Dan Streetman, IBM Corp |
| 5 | * | 6 | * |
| 6 | * This program is free software; you can redistribute it and/or modify | ||
| 7 | * it under the terms of the GNU General Public License as published by | ||
| 8 | * the Free Software Foundation; either version 2 of the License, or | ||
| 9 | * (at your option) any later version. | ||
| 10 | * | ||
| 11 | * This program is distributed in the hope that it will be useful, | ||
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | * GNU General Public License for more details. | ||
| 15 | * | ||
| 16 | * See 842.h for details of the 842 compressed format. | 7 | * See 842.h for details of the 842 compressed format. |
| 17 | */ | 8 | */ |
| 18 | 9 | ||
diff --git a/lib/842/842_decompress.c b/lib/842/842_decompress.c index 11fc39b4032b..582085ef8b49 100644 --- a/lib/842/842_decompress.c +++ b/lib/842/842_decompress.c | |||
| @@ -1,18 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * 842 Software Decompression | 3 | * 842 Software Decompression |
| 3 | * | 4 | * |
| 4 | * Copyright (C) 2015 Dan Streetman, IBM Corp | 5 | * Copyright (C) 2015 Dan Streetman, IBM Corp |
| 5 | * | 6 | * |
| 6 | * This program is free software; you can redistribute it and/or modify | ||
| 7 | * it under the terms of the GNU General Public License as published by | ||
| 8 | * the Free Software Foundation; either version 2 of the License, or | ||
| 9 | * (at your option) any later version. | ||
| 10 | * | ||
| 11 | * This program is distributed in the hope that it will be useful, | ||
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | * GNU General Public License for more details. | ||
| 15 | * | ||
| 16 | * See 842.h for details of the 842 compressed format. | 7 | * See 842.h for details of the 842 compressed format. |
| 17 | */ | 8 | */ |
| 18 | 9 | ||
diff --git a/lib/ashldi3.c b/lib/ashldi3.c index 3ffc46e3bb6c..8e6a69d59180 100644 --- a/lib/ashldi3.c +++ b/lib/ashldi3.c | |||
| @@ -1,17 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation; either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | ||
| 7 | * This program is distributed in the hope that it will be useful, | ||
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 10 | * GNU General Public License for more details. | ||
| 11 | * | ||
| 12 | * You should have received a copy of the GNU General Public License | ||
| 13 | * along with this program; if not, see the file COPYING, or write | ||
| 14 | * to the Free Software Foundation, Inc. | ||
| 15 | */ | 3 | */ |
| 16 | 4 | ||
| 17 | #include <linux/export.h> | 5 | #include <linux/export.h> |
diff --git a/lib/ashrdi3.c b/lib/ashrdi3.c index ea054550f0e8..fc84244ad9ed 100644 --- a/lib/ashrdi3.c +++ b/lib/ashrdi3.c | |||
| @@ -1,17 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation; either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | ||
| 7 | * This program is distributed in the hope that it will be useful, | ||
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 10 | * GNU General Public License for more details. | ||
| 11 | * | ||
| 12 | * You should have received a copy of the GNU General Public License | ||
| 13 | * along with this program; if not, see the file COPYING, or write | ||
| 14 | * to the Free Software Foundation, Inc. | ||
| 15 | */ | 3 | */ |
| 16 | 4 | ||
| 17 | #include <linux/export.h> | 5 | #include <linux/export.h> |
diff --git a/lib/asn1_decoder.c b/lib/asn1_decoder.c index 8f3d207d2b00..58f72b25f8e9 100644 --- a/lib/asn1_decoder.c +++ b/lib/asn1_decoder.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* Decoder for ASN.1 BER/DER/CER encoded bytestream | 2 | /* Decoder for ASN.1 BER/DER/CER encoded bytestream |
| 2 | * | 3 | * |
| 3 | * Copyright (C) 2012 Red Hat, Inc. All Rights Reserved. | 4 | * Copyright (C) 2012 Red Hat, Inc. All Rights Reserved. |
| 4 | * Written by David Howells (dhowells@redhat.com) | 5 | * Written by David Howells (dhowells@redhat.com) |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or | ||
| 7 | * modify it under the terms of the GNU General Public Licence | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the Licence, or (at your option) any later version. | ||
| 10 | */ | 6 | */ |
| 11 | 7 | ||
| 12 | #include <linux/export.h> | 8 | #include <linux/export.h> |
diff --git a/lib/assoc_array.c b/lib/assoc_array.c index edc3c14af41d..6f4bcf524554 100644 --- a/lib/assoc_array.c +++ b/lib/assoc_array.c | |||
| @@ -1,14 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* Generic associative array implementation. | 2 | /* Generic associative array implementation. |
| 2 | * | 3 | * |
| 3 | * See Documentation/core-api/assoc_array.rst for information. | 4 | * See Documentation/core-api/assoc_array.rst for information. |
| 4 | * | 5 | * |
| 5 | * Copyright (C) 2013 Red Hat, Inc. All Rights Reserved. | 6 | * Copyright (C) 2013 Red Hat, Inc. All Rights Reserved. |
| 6 | * Written by David Howells (dhowells@redhat.com) | 7 | * Written by David Howells (dhowells@redhat.com) |
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or | ||
| 9 | * modify it under the terms of the GNU General Public Licence | ||
| 10 | * as published by the Free Software Foundation; either version | ||
| 11 | * 2 of the Licence, or (at your option) any later version. | ||
| 12 | */ | 8 | */ |
| 13 | //#define DEBUG | 9 | //#define DEBUG |
| 14 | #include <linux/rcupdate.h> | 10 | #include <linux/rcupdate.h> |
diff --git a/lib/atomic64.c b/lib/atomic64.c index 1d91e31eceec..7e6905751522 100644 --- a/lib/atomic64.c +++ b/lib/atomic64.c | |||
| @@ -1,13 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Generic implementation of 64-bit atomics using spinlocks, | 3 | * Generic implementation of 64-bit atomics using spinlocks, |
| 3 | * useful on processors that don't have 64-bit atomic instructions. | 4 | * useful on processors that don't have 64-bit atomic instructions. |
| 4 | * | 5 | * |
| 5 | * Copyright © 2009 Paul Mackerras, IBM Corp. <paulus@au1.ibm.com> | 6 | * Copyright © 2009 Paul Mackerras, IBM Corp. <paulus@au1.ibm.com> |
| 6 | * | ||
| 7 | * This program is free software; you can redistribute it and/or | ||
| 8 | * modify it under the terms of the GNU General Public License | ||
| 9 | * as published by the Free Software Foundation; either version | ||
| 10 | * 2 of the License, or (at your option) any later version. | ||
| 11 | */ | 7 | */ |
| 12 | #include <linux/types.h> | 8 | #include <linux/types.h> |
| 13 | #include <linux/cache.h> | 9 | #include <linux/cache.h> |
diff --git a/lib/atomic64_test.c b/lib/atomic64_test.c index 62ab629f51ca..d9d170238165 100644 --- a/lib/atomic64_test.c +++ b/lib/atomic64_test.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Testsuite for atomic64_t functions | 3 | * Testsuite for atomic64_t functions |
| 3 | * | 4 | * |
| 4 | * Copyright © 2010 Luca Barbieri | 5 | * Copyright © 2010 Luca Barbieri |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or modify | ||
| 7 | * it under the terms of the GNU General Public License as published by | ||
| 8 | * the Free Software Foundation; either version 2 of the License, or | ||
| 9 | * (at your option) any later version. | ||
| 10 | */ | 6 | */ |
| 11 | 7 | ||
| 12 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 8 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/lib/bsearch.c b/lib/bsearch.c index 82512fe7b33c..8baa83968162 100644 --- a/lib/bsearch.c +++ b/lib/bsearch.c | |||
| @@ -1,12 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * A generic implementation of binary search for the Linux kernel | 3 | * A generic implementation of binary search for the Linux kernel |
| 3 | * | 4 | * |
| 4 | * Copyright (C) 2008-2009 Ksplice, Inc. | 5 | * Copyright (C) 2008-2009 Ksplice, Inc. |
| 5 | * Author: Tim Abbott <tabbott@ksplice.com> | 6 | * Author: Tim Abbott <tabbott@ksplice.com> |
| 6 | * | ||
| 7 | * This program is free software; you can redistribute it and/or | ||
| 8 | * modify it under the terms of the GNU General Public License as | ||
| 9 | * published by the Free Software Foundation; version 2. | ||
| 10 | */ | 7 | */ |
| 11 | 8 | ||
| 12 | #include <linux/export.h> | 9 | #include <linux/export.h> |
diff --git a/lib/btree.c b/lib/btree.c index 590facba2c50..b4cf08a5c267 100644 --- a/lib/btree.c +++ b/lib/btree.c | |||
| @@ -1,12 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * lib/btree.c - Simple In-memory B+Tree | 3 | * lib/btree.c - Simple In-memory B+Tree |
| 3 | * | 4 | * |
| 4 | * As should be obvious for Linux kernel code, license is GPLv2 | ||
| 5 | * | ||
| 6 | * Copyright (c) 2007-2008 Joern Engel <joern@purestorage.com> | 5 | * Copyright (c) 2007-2008 Joern Engel <joern@purestorage.com> |
| 7 | * Bits and pieces stolen from Peter Zijlstra's code, which is | 6 | * Bits and pieces stolen from Peter Zijlstra's code, which is |
| 8 | * Copyright 2007, Red Hat Inc. Peter Zijlstra | 7 | * Copyright 2007, Red Hat Inc. Peter Zijlstra |
| 9 | * GPLv2 | ||
| 10 | * | 8 | * |
| 11 | * see http://programming.kicks-ass.net/kernel-patches/vma_lookup/btree.patch | 9 | * see http://programming.kicks-ass.net/kernel-patches/vma_lookup/btree.patch |
| 12 | * | 10 | * |
diff --git a/lib/build_OID_registry b/lib/build_OID_registry index 5d9827217360..d7fc32ea8ac2 100755 --- a/lib/build_OID_registry +++ b/lib/build_OID_registry | |||
| @@ -1,15 +1,11 @@ | |||
| 1 | #!/usr/bin/perl -w | 1 | #!/usr/bin/perl -w |
| 2 | # SPDX-License-Identifier: GPL-2.0-or-later | ||
| 2 | # | 3 | # |
| 3 | # Build a static ASN.1 Object Identified (OID) registry | 4 | # Build a static ASN.1 Object Identified (OID) registry |
| 4 | # | 5 | # |
| 5 | # Copyright (C) 2012 Red Hat, Inc. All Rights Reserved. | 6 | # Copyright (C) 2012 Red Hat, Inc. All Rights Reserved. |
| 6 | # Written by David Howells (dhowells@redhat.com) | 7 | # Written by David Howells (dhowells@redhat.com) |
| 7 | # | 8 | # |
| 8 | # This program is free software; you can redistribute it and/or | ||
| 9 | # modify it under the terms of the GNU General Public Licence | ||
| 10 | # as published by the Free Software Foundation; either version | ||
| 11 | # 2 of the Licence, or (at your option) any later version. | ||
| 12 | # | ||
| 13 | 9 | ||
| 14 | use strict; | 10 | use strict; |
| 15 | 11 | ||
diff --git a/lib/chacha.c b/lib/chacha.c index a46d2832dbab..c7c9826564d3 100644 --- a/lib/chacha.c +++ b/lib/chacha.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * The "hash function" used as the core of the ChaCha stream cipher (RFC7539) | 3 | * The "hash function" used as the core of the ChaCha stream cipher (RFC7539) |
| 3 | * | 4 | * |
| 4 | * Copyright (C) 2015 Martin Willi | 5 | * Copyright (C) 2015 Martin Willi |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or modify | ||
| 7 | * it under the terms of the GNU General Public License as published by | ||
| 8 | * the Free Software Foundation; either version 2 of the License, or | ||
| 9 | * (at your option) any later version. | ||
| 10 | */ | 6 | */ |
| 11 | 7 | ||
| 12 | #include <linux/kernel.h> | 8 | #include <linux/kernel.h> |
diff --git a/lib/checksum.c b/lib/checksum.c index d3ec93f9e5f3..de032ad96f4a 100644 --- a/lib/checksum.c +++ b/lib/checksum.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * | 3 | * |
| 3 | * INET An implementation of the TCP/IP protocol suite for the LINUX | 4 | * INET An implementation of the TCP/IP protocol suite for the LINUX |
| @@ -22,11 +23,6 @@ | |||
| 22 | * data-registers to hold input values and one tries to | 23 | * data-registers to hold input values and one tries to |
| 23 | * specify d0 and d1 as scratch registers. Letting gcc | 24 | * specify d0 and d1 as scratch registers. Letting gcc |
| 24 | * choose these registers itself solves the problem. | 25 | * choose these registers itself solves the problem. |
| 25 | * | ||
| 26 | * This program is free software; you can redistribute it and/or | ||
| 27 | * modify it under the terms of the GNU General Public License | ||
| 28 | * as published by the Free Software Foundation; either version | ||
| 29 | * 2 of the License, or (at your option) any later version. | ||
| 30 | */ | 26 | */ |
| 31 | 27 | ||
| 32 | /* Revised by Kenneth Albanowski for m68knommu. Basic problem: unaligned access | 28 | /* Revised by Kenneth Albanowski for m68knommu. Basic problem: unaligned access |
diff --git a/lib/cmpdi2.c b/lib/cmpdi2.c index 2250da7e503e..f7cebd52bd68 100644 --- a/lib/cmpdi2.c +++ b/lib/cmpdi2.c | |||
| @@ -1,17 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation; either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | ||
| 7 | * This program is distributed in the hope that it will be useful, | ||
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 10 | * GNU General Public License for more details. | ||
| 11 | * | ||
| 12 | * You should have received a copy of the GNU General Public License | ||
| 13 | * along with this program; if not, see the file COPYING, or write | ||
| 14 | * to the Free Software Foundation, Inc. | ||
| 15 | */ | 3 | */ |
| 16 | 4 | ||
| 17 | #include <linux/export.h> | 5 | #include <linux/export.h> |
diff --git a/lib/decompress_unlzo.c b/lib/decompress_unlzo.c index f4c158e3a022..1f439a622076 100644 --- a/lib/decompress_unlzo.c +++ b/lib/decompress_unlzo.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * LZO decompressor for the Linux kernel. Code borrowed from the lzo | 3 | * LZO decompressor for the Linux kernel. Code borrowed from the lzo |
| 3 | * implementation by Markus Franz Xaver Johannes Oberhumer. | 4 | * implementation by Markus Franz Xaver Johannes Oberhumer. |
| @@ -10,21 +11,6 @@ | |||
| 10 | * Copyright (C) 1996-2005 Markus Franz Xaver Johannes Oberhumer | 11 | * Copyright (C) 1996-2005 Markus Franz Xaver Johannes Oberhumer |
| 11 | * All Rights Reserved. | 12 | * All Rights Reserved. |
| 12 | * | 13 | * |
| 13 | * lzop and the LZO library are free software; you can redistribute them | ||
| 14 | * and/or modify them under the terms of the GNU General Public License as | ||
| 15 | * published by the Free Software Foundation; either version 2 of | ||
| 16 | * the License, or (at your option) any later version. | ||
| 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; see the file COPYING. | ||
| 25 | * If not, write to the Free Software Foundation, Inc., | ||
| 26 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
| 27 | * | ||
| 28 | * Markus F.X.J. Oberhumer | 14 | * Markus F.X.J. Oberhumer |
| 29 | * <markus@oberhumer.com> | 15 | * <markus@oberhumer.com> |
| 30 | * http://www.oberhumer.com/opensource/lzop/ | 16 | * http://www.oberhumer.com/opensource/lzop/ |
diff --git a/lib/digsig.c b/lib/digsig.c index 3b0a579bdcdf..3cf89c775ab2 100644 --- a/lib/digsig.c +++ b/lib/digsig.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) 2011 Nokia Corporation | 3 | * Copyright (C) 2011 Nokia Corporation |
| 3 | * Copyright (C) 2011 Intel Corporation | 4 | * Copyright (C) 2011 Intel Corporation |
| @@ -6,10 +7,6 @@ | |||
| 6 | * Dmitry Kasatkin <dmitry.kasatkin@nokia.com> | 7 | * Dmitry Kasatkin <dmitry.kasatkin@nokia.com> |
| 7 | * <dmitry.kasatkin@intel.com> | 8 | * <dmitry.kasatkin@intel.com> |
| 8 | * | 9 | * |
| 9 | * This program is free software; you can redistribute it and/or modify | ||
| 10 | * it under the terms of the GNU General Public License as published by | ||
| 11 | * the Free Software Foundation, version 2 of the License. | ||
| 12 | * | ||
| 13 | * File: sign.c | 10 | * File: sign.c |
| 14 | * implements signature (RSA) verification | 11 | * implements signature (RSA) verification |
| 15 | * pkcs decoding is based on LibTomCrypt code | 12 | * pkcs decoding is based on LibTomCrypt code |
diff --git a/lib/earlycpio.c b/lib/earlycpio.c index db283ba4d2c1..c001e084829e 100644 --- a/lib/earlycpio.c +++ b/lib/earlycpio.c | |||
| @@ -1,16 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* ----------------------------------------------------------------------- * | 2 | /* ----------------------------------------------------------------------- * |
| 2 | * | 3 | * |
| 3 | * Copyright 2012 Intel Corporation; author H. Peter Anvin | 4 | * Copyright 2012 Intel Corporation; author H. Peter Anvin |
| 4 | * | 5 | * |
| 5 | * This file is part of the Linux kernel, and is made available | ||
| 6 | * 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 it will be useful, but | ||
| 10 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 12 | * General Public License for more details. | ||
| 13 | * | ||
| 14 | * ----------------------------------------------------------------------- */ | 6 | * ----------------------------------------------------------------------- */ |
| 15 | 7 | ||
| 16 | /* | 8 | /* |
diff --git a/lib/extable.c b/lib/extable.c index f54996fdd0b8..25da4071122a 100644 --- a/lib/extable.c +++ b/lib/extable.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Derived from arch/ppc/mm/extable.c and arch/i386/mm/extable.c. | 3 | * Derived from arch/ppc/mm/extable.c and arch/i386/mm/extable.c. |
| 3 | * | 4 | * |
| 4 | * Copyright (C) 2004 Paul Mackerras, IBM Corp. | 5 | * Copyright (C) 2004 Paul Mackerras, IBM Corp. |
| 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 | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, or (at your option) any later version. | ||
| 10 | */ | 6 | */ |
| 11 | 7 | ||
| 12 | #include <linux/bsearch.h> | 8 | #include <linux/bsearch.h> |
diff --git a/lib/find_bit.c b/lib/find_bit.c index ee3df93ba69a..5c51eb45178a 100644 --- a/lib/find_bit.c +++ b/lib/find_bit.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* bit search implementation | 2 | /* bit search implementation |
| 2 | * | 3 | * |
| 3 | * Copyright (C) 2004 Red Hat, Inc. All Rights Reserved. | 4 | * Copyright (C) 2004 Red Hat, Inc. All Rights Reserved. |
| @@ -9,11 +10,6 @@ | |||
| 9 | * | 10 | * |
| 10 | * Rewritten by Yury Norov <yury.norov@gmail.com> to decrease | 11 | * Rewritten by Yury Norov <yury.norov@gmail.com> to decrease |
| 11 | * size and improve performance, 2015. | 12 | * size and improve performance, 2015. |
| 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 | ||
| 15 | * as published by the Free Software Foundation; either version | ||
| 16 | * 2 of the License, or (at your option) any later version. | ||
| 17 | */ | 13 | */ |
| 18 | 14 | ||
| 19 | #include <linux/bitops.h> | 15 | #include <linux/bitops.h> |
diff --git a/lib/find_bit_benchmark.c b/lib/find_bit_benchmark.c index f0e394dd2beb..5637c5711db9 100644 --- a/lib/find_bit_benchmark.c +++ b/lib/find_bit_benchmark.c | |||
| @@ -1,16 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Test for find_*_bit functions. | 3 | * Test for find_*_bit functions. |
| 3 | * | 4 | * |
| 4 | * Copyright (c) 2017 Cavium. | 5 | * Copyright (c) 2017 Cavium. |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or | ||
| 7 | * modify it under the terms of version 2 of the GNU General Public | ||
| 8 | * License as published by the Free Software Foundation. | ||
| 9 | * | ||
| 10 | * This program is distributed in the hope that it will be useful, but | ||
| 11 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 13 | * General Public License for more details. | ||
| 14 | */ | 6 | */ |
| 15 | 7 | ||
| 16 | /* | 8 | /* |
diff --git a/lib/genalloc.c b/lib/genalloc.c index 7e85d1e37a6e..770c769d7cb7 100644 --- a/lib/genalloc.c +++ b/lib/genalloc.c | |||
| @@ -168,20 +168,21 @@ struct gen_pool *gen_pool_create(int min_alloc_order, int nid) | |||
| 168 | EXPORT_SYMBOL(gen_pool_create); | 168 | EXPORT_SYMBOL(gen_pool_create); |
| 169 | 169 | ||
| 170 | /** | 170 | /** |
| 171 | * gen_pool_add_virt - add a new chunk of special memory to the pool | 171 | * gen_pool_add_owner- add a new chunk of special memory to the pool |
| 172 | * @pool: pool to add new memory chunk to | 172 | * @pool: pool to add new memory chunk to |
| 173 | * @virt: virtual starting address of memory chunk to add to pool | 173 | * @virt: virtual starting address of memory chunk to add to pool |
| 174 | * @phys: physical starting address of memory chunk to add to pool | 174 | * @phys: physical starting address of memory chunk to add to pool |
| 175 | * @size: size in bytes of the memory chunk to add to pool | 175 | * @size: size in bytes of the memory chunk to add to pool |
| 176 | * @nid: node id of the node the chunk structure and bitmap should be | 176 | * @nid: node id of the node the chunk structure and bitmap should be |
| 177 | * allocated on, or -1 | 177 | * allocated on, or -1 |
| 178 | * @owner: private data the publisher would like to recall at alloc time | ||
| 178 | * | 179 | * |
| 179 | * Add a new chunk of special memory to the specified pool. | 180 | * Add a new chunk of special memory to the specified pool. |
| 180 | * | 181 | * |
| 181 | * Returns 0 on success or a -ve errno on failure. | 182 | * Returns 0 on success or a -ve errno on failure. |
| 182 | */ | 183 | */ |
| 183 | int gen_pool_add_virt(struct gen_pool *pool, unsigned long virt, phys_addr_t phys, | 184 | int gen_pool_add_owner(struct gen_pool *pool, unsigned long virt, phys_addr_t phys, |
| 184 | size_t size, int nid) | 185 | size_t size, int nid, void *owner) |
| 185 | { | 186 | { |
| 186 | struct gen_pool_chunk *chunk; | 187 | struct gen_pool_chunk *chunk; |
| 187 | int nbits = size >> pool->min_alloc_order; | 188 | int nbits = size >> pool->min_alloc_order; |
| @@ -195,6 +196,7 @@ int gen_pool_add_virt(struct gen_pool *pool, unsigned long virt, phys_addr_t phy | |||
| 195 | chunk->phys_addr = phys; | 196 | chunk->phys_addr = phys; |
| 196 | chunk->start_addr = virt; | 197 | chunk->start_addr = virt; |
| 197 | chunk->end_addr = virt + size - 1; | 198 | chunk->end_addr = virt + size - 1; |
| 199 | chunk->owner = owner; | ||
| 198 | atomic_long_set(&chunk->avail, size); | 200 | atomic_long_set(&chunk->avail, size); |
| 199 | 201 | ||
| 200 | spin_lock(&pool->lock); | 202 | spin_lock(&pool->lock); |
| @@ -203,7 +205,7 @@ int gen_pool_add_virt(struct gen_pool *pool, unsigned long virt, phys_addr_t phy | |||
| 203 | 205 | ||
| 204 | return 0; | 206 | return 0; |
| 205 | } | 207 | } |
| 206 | EXPORT_SYMBOL(gen_pool_add_virt); | 208 | EXPORT_SYMBOL(gen_pool_add_owner); |
| 207 | 209 | ||
| 208 | /** | 210 | /** |
| 209 | * gen_pool_virt_to_phys - return the physical address of memory | 211 | * gen_pool_virt_to_phys - return the physical address of memory |
| @@ -260,35 +262,20 @@ void gen_pool_destroy(struct gen_pool *pool) | |||
| 260 | EXPORT_SYMBOL(gen_pool_destroy); | 262 | EXPORT_SYMBOL(gen_pool_destroy); |
| 261 | 263 | ||
| 262 | /** | 264 | /** |
| 263 | * gen_pool_alloc - allocate special memory from the pool | 265 | * gen_pool_alloc_algo_owner - allocate special memory from the pool |
| 264 | * @pool: pool to allocate from | ||
| 265 | * @size: number of bytes to allocate from the pool | ||
| 266 | * | ||
| 267 | * Allocate the requested number of bytes from the specified pool. | ||
| 268 | * Uses the pool allocation function (with first-fit algorithm by default). | ||
| 269 | * Can not be used in NMI handler on architectures without | ||
| 270 | * NMI-safe cmpxchg implementation. | ||
| 271 | */ | ||
| 272 | unsigned long gen_pool_alloc(struct gen_pool *pool, size_t size) | ||
| 273 | { | ||
| 274 | return gen_pool_alloc_algo(pool, size, pool->algo, pool->data); | ||
| 275 | } | ||
| 276 | EXPORT_SYMBOL(gen_pool_alloc); | ||
| 277 | |||
| 278 | /** | ||
| 279 | * gen_pool_alloc_algo - allocate special memory from the pool | ||
| 280 | * @pool: pool to allocate from | 266 | * @pool: pool to allocate from |
| 281 | * @size: number of bytes to allocate from the pool | 267 | * @size: number of bytes to allocate from the pool |
| 282 | * @algo: algorithm passed from caller | 268 | * @algo: algorithm passed from caller |
| 283 | * @data: data passed to algorithm | 269 | * @data: data passed to algorithm |
| 270 | * @owner: optionally retrieve the chunk owner | ||
| 284 | * | 271 | * |
| 285 | * Allocate the requested number of bytes from the specified pool. | 272 | * Allocate the requested number of bytes from the specified pool. |
| 286 | * Uses the pool allocation function (with first-fit algorithm by default). | 273 | * Uses the pool allocation function (with first-fit algorithm by default). |
| 287 | * Can not be used in NMI handler on architectures without | 274 | * Can not be used in NMI handler on architectures without |
| 288 | * NMI-safe cmpxchg implementation. | 275 | * NMI-safe cmpxchg implementation. |
| 289 | */ | 276 | */ |
| 290 | unsigned long gen_pool_alloc_algo(struct gen_pool *pool, size_t size, | 277 | unsigned long gen_pool_alloc_algo_owner(struct gen_pool *pool, size_t size, |
| 291 | genpool_algo_t algo, void *data) | 278 | genpool_algo_t algo, void *data, void **owner) |
| 292 | { | 279 | { |
| 293 | struct gen_pool_chunk *chunk; | 280 | struct gen_pool_chunk *chunk; |
| 294 | unsigned long addr = 0; | 281 | unsigned long addr = 0; |
| @@ -299,6 +286,9 @@ unsigned long gen_pool_alloc_algo(struct gen_pool *pool, size_t size, | |||
| 299 | BUG_ON(in_nmi()); | 286 | BUG_ON(in_nmi()); |
| 300 | #endif | 287 | #endif |
| 301 | 288 | ||
| 289 | if (owner) | ||
| 290 | *owner = NULL; | ||
| 291 | |||
| 302 | if (size == 0) | 292 | if (size == 0) |
| 303 | return 0; | 293 | return 0; |
| 304 | 294 | ||
| @@ -326,12 +316,14 @@ retry: | |||
| 326 | addr = chunk->start_addr + ((unsigned long)start_bit << order); | 316 | addr = chunk->start_addr + ((unsigned long)start_bit << order); |
| 327 | size = nbits << order; | 317 | size = nbits << order; |
| 328 | atomic_long_sub(size, &chunk->avail); | 318 | atomic_long_sub(size, &chunk->avail); |
| 319 | if (owner) | ||
| 320 | *owner = chunk->owner; | ||
| 329 | break; | 321 | break; |
| 330 | } | 322 | } |
| 331 | rcu_read_unlock(); | 323 | rcu_read_unlock(); |
| 332 | return addr; | 324 | return addr; |
| 333 | } | 325 | } |
| 334 | EXPORT_SYMBOL(gen_pool_alloc_algo); | 326 | EXPORT_SYMBOL(gen_pool_alloc_algo_owner); |
| 335 | 327 | ||
| 336 | /** | 328 | /** |
| 337 | * gen_pool_dma_alloc - allocate special memory from the pool for DMA usage | 329 | * gen_pool_dma_alloc - allocate special memory from the pool for DMA usage |
| @@ -367,12 +359,14 @@ EXPORT_SYMBOL(gen_pool_dma_alloc); | |||
| 367 | * @pool: pool to free to | 359 | * @pool: pool to free to |
| 368 | * @addr: starting address of memory to free back to pool | 360 | * @addr: starting address of memory to free back to pool |
| 369 | * @size: size in bytes of memory to free | 361 | * @size: size in bytes of memory to free |
| 362 | * @owner: private data stashed at gen_pool_add() time | ||
| 370 | * | 363 | * |
| 371 | * Free previously allocated special memory back to the specified | 364 | * Free previously allocated special memory back to the specified |
| 372 | * pool. Can not be used in NMI handler on architectures without | 365 | * pool. Can not be used in NMI handler on architectures without |
| 373 | * NMI-safe cmpxchg implementation. | 366 | * NMI-safe cmpxchg implementation. |
| 374 | */ | 367 | */ |
| 375 | void gen_pool_free(struct gen_pool *pool, unsigned long addr, size_t size) | 368 | void gen_pool_free_owner(struct gen_pool *pool, unsigned long addr, size_t size, |
| 369 | void **owner) | ||
| 376 | { | 370 | { |
| 377 | struct gen_pool_chunk *chunk; | 371 | struct gen_pool_chunk *chunk; |
| 378 | int order = pool->min_alloc_order; | 372 | int order = pool->min_alloc_order; |
| @@ -382,6 +376,9 @@ void gen_pool_free(struct gen_pool *pool, unsigned long addr, size_t size) | |||
| 382 | BUG_ON(in_nmi()); | 376 | BUG_ON(in_nmi()); |
| 383 | #endif | 377 | #endif |
| 384 | 378 | ||
| 379 | if (owner) | ||
| 380 | *owner = NULL; | ||
| 381 | |||
| 385 | nbits = (size + (1UL << order) - 1) >> order; | 382 | nbits = (size + (1UL << order) - 1) >> order; |
| 386 | rcu_read_lock(); | 383 | rcu_read_lock(); |
| 387 | list_for_each_entry_rcu(chunk, &pool->chunks, next_chunk) { | 384 | list_for_each_entry_rcu(chunk, &pool->chunks, next_chunk) { |
| @@ -392,6 +389,8 @@ void gen_pool_free(struct gen_pool *pool, unsigned long addr, size_t size) | |||
| 392 | BUG_ON(remain); | 389 | BUG_ON(remain); |
| 393 | size = nbits << order; | 390 | size = nbits << order; |
| 394 | atomic_long_add(size, &chunk->avail); | 391 | atomic_long_add(size, &chunk->avail); |
| 392 | if (owner) | ||
| 393 | *owner = chunk->owner; | ||
| 395 | rcu_read_unlock(); | 394 | rcu_read_unlock(); |
| 396 | return; | 395 | return; |
| 397 | } | 396 | } |
| @@ -399,7 +398,7 @@ void gen_pool_free(struct gen_pool *pool, unsigned long addr, size_t size) | |||
| 399 | rcu_read_unlock(); | 398 | rcu_read_unlock(); |
| 400 | BUG(); | 399 | BUG(); |
| 401 | } | 400 | } |
| 402 | EXPORT_SYMBOL(gen_pool_free); | 401 | EXPORT_SYMBOL(gen_pool_free_owner); |
| 403 | 402 | ||
| 404 | /** | 403 | /** |
| 405 | * gen_pool_for_each_chunk - call func for every chunk of generic memory pool | 404 | * gen_pool_for_each_chunk - call func for every chunk of generic memory pool |
diff --git a/lib/irq_regs.c b/lib/irq_regs.c index 9c0a1d70fbe8..0d545a93070e 100644 --- a/lib/irq_regs.c +++ b/lib/irq_regs.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* saved per-CPU IRQ register pointer | 2 | /* saved per-CPU IRQ register pointer |
| 2 | * | 3 | * |
| 3 | * Copyright (C) 2006 Red Hat, Inc. All Rights Reserved. | 4 | * Copyright (C) 2006 Red Hat, Inc. All Rights Reserved. |
| 4 | * Written by David Howells (dhowells@redhat.com) | 5 | * Written by David Howells (dhowells@redhat.com) |
| 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 | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, or (at your option) any later version. | ||
| 10 | */ | 6 | */ |
| 11 | #include <linux/export.h> | 7 | #include <linux/export.h> |
| 12 | #include <linux/percpu.h> | 8 | #include <linux/percpu.h> |
diff --git a/lib/is_single_threaded.c b/lib/is_single_threaded.c index 9c7d89df40ed..8c98b20bfc41 100644 --- a/lib/is_single_threaded.c +++ b/lib/is_single_threaded.c | |||
| @@ -1,13 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* Function to determine if a thread group is single threaded or not | 2 | /* Function to determine if a thread group is single threaded or not |
| 2 | * | 3 | * |
| 3 | * Copyright (C) 2008 Red Hat, Inc. All Rights Reserved. | 4 | * Copyright (C) 2008 Red Hat, Inc. All Rights Reserved. |
| 4 | * Written by David Howells (dhowells@redhat.com) | 5 | * Written by David Howells (dhowells@redhat.com) |
| 5 | * - Derived from security/selinux/hooks.c | 6 | * - Derived from security/selinux/hooks.c |
| 6 | * | ||
| 7 | * This program is free software; you can redistribute it and/or | ||
| 8 | * modify it under the terms of the GNU General Public Licence | ||
| 9 | * as published by the Free Software Foundation; either version | ||
| 10 | * 2 of the Licence, or (at your option) any later version. | ||
| 11 | */ | 7 | */ |
| 12 | #include <linux/sched/signal.h> | 8 | #include <linux/sched/signal.h> |
| 13 | #include <linux/sched/task.h> | 9 | #include <linux/sched/task.h> |
diff --git a/lib/kfifo.c b/lib/kfifo.c index 015656aa8182..117ad0e7fbf4 100644 --- a/lib/kfifo.c +++ b/lib/kfifo.c | |||
| @@ -1,22 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * A generic kernel FIFO implementation | 3 | * A generic kernel FIFO implementation |
| 3 | * | 4 | * |
| 4 | * Copyright (C) 2009/2010 Stefani Seibold <stefani@seibold.net> | 5 | * Copyright (C) 2009/2010 Stefani Seibold <stefani@seibold.net> |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or modify | ||
| 7 | * it under the terms of the GNU General Public License as published by | ||
| 8 | * the Free Software Foundation; either version 2 of the License, or | ||
| 9 | * (at your option) any later version. | ||
| 10 | * | ||
| 11 | * This program is distributed in the hope that it will be useful, | ||
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | * GNU General Public License for more details. | ||
| 15 | * | ||
| 16 | * You should have received a copy of the GNU General Public License | ||
| 17 | * along with this program; if not, write to the Free Software | ||
| 18 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
| 19 | * | ||
| 20 | */ | 6 | */ |
| 21 | 7 | ||
| 22 | #include <linux/kernel.h> | 8 | #include <linux/kernel.h> |
diff --git a/lib/libcrc32c.c b/lib/libcrc32c.c index 4e9829c4d64c..77ab839644c5 100644 --- a/lib/libcrc32c.c +++ b/lib/libcrc32c.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * CRC32C | 3 | * CRC32C |
| 3 | *@Article{castagnoli-crc, | 4 | *@Article{castagnoli-crc, |
| @@ -23,12 +24,6 @@ | |||
| 23 | * <endoflist> | 24 | * <endoflist> |
| 24 | * | 25 | * |
| 25 | * Copyright (c) 2004 Cisco Systems, Inc. | 26 | * Copyright (c) 2004 Cisco Systems, Inc. |
| 26 | * | ||
| 27 | * This program is free software; you can redistribute it and/or modify it | ||
| 28 | * under the terms of the GNU General Public License as published by the Free | ||
| 29 | * Software Foundation; either version 2 of the License, or (at your option) | ||
| 30 | * any later version. | ||
| 31 | * | ||
| 32 | */ | 27 | */ |
| 33 | 28 | ||
| 34 | #include <crypto/hash.h> | 29 | #include <crypto/hash.h> |
diff --git a/lib/list_sort.c b/lib/list_sort.c index 06e900c5587b..712ed1f4eb64 100644 --- a/lib/list_sort.c +++ b/lib/list_sort.c | |||
| @@ -120,7 +120,8 @@ static void merge_final(void *priv, cmp_func cmp, struct list_head *head, | |||
| 120 | * The latter offers a chance to save a few cycles in the comparison | 120 | * The latter offers a chance to save a few cycles in the comparison |
| 121 | * (which is used by e.g. plug_ctx_cmp() in block/blk-mq.c). | 121 | * (which is used by e.g. plug_ctx_cmp() in block/blk-mq.c). |
| 122 | * | 122 | * |
| 123 | * A good way to write a multi-word comparison is | 123 | * A good way to write a multi-word comparison is:: |
| 124 | * | ||
| 124 | * if (a->high != b->high) | 125 | * if (a->high != b->high) |
| 125 | * return a->high > b->high; | 126 | * return a->high > b->high; |
| 126 | * if (a->middle != b->middle) | 127 | * if (a->middle != b->middle) |
diff --git a/lib/llist.c b/lib/llist.c index 7062e931a7bb..611ce4881a87 100644 --- a/lib/llist.c +++ b/lib/llist.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Lock-less NULL terminated single linked list | 3 | * Lock-less NULL terminated single linked list |
| 3 | * | 4 | * |
| @@ -8,19 +9,6 @@ | |||
| 8 | * | 9 | * |
| 9 | * Copyright 2010,2011 Intel Corp. | 10 | * Copyright 2010,2011 Intel Corp. |
| 10 | * Author: Huang Ying <ying.huang@intel.com> | 11 | * Author: Huang Ying <ying.huang@intel.com> |
| 11 | * | ||
| 12 | * This program is free software; you can redistribute it and/or | ||
| 13 | * modify it under the terms of the GNU General Public License version | ||
| 14 | * 2 as published by the Free Software Foundation; | ||
| 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 | */ | 12 | */ |
| 25 | #include <linux/kernel.h> | 13 | #include <linux/kernel.h> |
| 26 | #include <linux/export.h> | 14 | #include <linux/export.h> |
diff --git a/lib/lockref.c b/lib/lockref.c index 3d468b53d4c9..5b34bbd3eba8 100644 --- a/lib/lockref.c +++ b/lib/lockref.c | |||
| @@ -9,6 +9,7 @@ | |||
| 9 | * failure case. | 9 | * failure case. |
| 10 | */ | 10 | */ |
| 11 | #define CMPXCHG_LOOP(CODE, SUCCESS) do { \ | 11 | #define CMPXCHG_LOOP(CODE, SUCCESS) do { \ |
| 12 | int retry = 100; \ | ||
| 12 | struct lockref old; \ | 13 | struct lockref old; \ |
| 13 | BUILD_BUG_ON(sizeof(old) != 8); \ | 14 | BUILD_BUG_ON(sizeof(old) != 8); \ |
| 14 | old.lock_count = READ_ONCE(lockref->lock_count); \ | 15 | old.lock_count = READ_ONCE(lockref->lock_count); \ |
| @@ -21,6 +22,8 @@ | |||
| 21 | if (likely(old.lock_count == prev.lock_count)) { \ | 22 | if (likely(old.lock_count == prev.lock_count)) { \ |
| 22 | SUCCESS; \ | 23 | SUCCESS; \ |
| 23 | } \ | 24 | } \ |
| 25 | if (!--retry) \ | ||
| 26 | break; \ | ||
| 24 | cpu_relax(); \ | 27 | cpu_relax(); \ |
| 25 | } \ | 28 | } \ |
| 26 | } while (0) | 29 | } while (0) |
diff --git a/lib/lru_cache.c b/lib/lru_cache.c index 2b10a4024c35..c69ee53d8dde 100644 --- a/lib/lru_cache.c +++ b/lib/lru_cache.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | lru_cache.c | 3 | lru_cache.c |
| 3 | 4 | ||
| @@ -7,19 +8,6 @@ | |||
| 7 | Copyright (C) 2003-2008, Philipp Reisner <philipp.reisner@linbit.com>. | 8 | Copyright (C) 2003-2008, Philipp Reisner <philipp.reisner@linbit.com>. |
| 8 | Copyright (C) 2003-2008, Lars Ellenberg <lars.ellenberg@linbit.com>. | 9 | Copyright (C) 2003-2008, Lars Ellenberg <lars.ellenberg@linbit.com>. |
| 9 | 10 | ||
| 10 | drbd 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, or (at your option) | ||
| 13 | any later version. | ||
| 14 | |||
| 15 | drbd 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 drbd; see the file COPYING. If not, write to | ||
| 22 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | ||
| 23 | 11 | ||
| 24 | */ | 12 | */ |
| 25 | 13 | ||
diff --git a/lib/lshrdi3.c b/lib/lshrdi3.c index 99cfa5721f2d..312838ce27ea 100644 --- a/lib/lshrdi3.c +++ b/lib/lshrdi3.c | |||
| @@ -1,19 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * lib/lshrdi3.c | 3 | * lib/lshrdi3.c |
| 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 as published by | ||
| 6 | * the Free Software Foundation; either version 2 of the License, or | ||
| 7 | * (at your option) any later version. | ||
| 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 the file COPYING, or write | ||
| 16 | * to the Free Software Foundation, Inc. | ||
| 17 | */ | 4 | */ |
| 18 | 5 | ||
| 19 | #include <linux/module.h> | 6 | #include <linux/module.h> |
diff --git a/lib/mpi/generic_mpih-add1.c b/lib/mpi/generic_mpih-add1.c index c94c7dd344b3..299308b5461c 100644 --- a/lib/mpi/generic_mpih-add1.c +++ b/lib/mpi/generic_mpih-add1.c | |||
| @@ -1,23 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* mpihelp-add_1.c - MPI helper functions | 2 | /* mpihelp-add_1.c - MPI helper functions |
| 2 | * Copyright (C) 1994, 1996, 1997, 1998, | 3 | * Copyright (C) 1994, 1996, 1997, 1998, |
| 3 | * 2000 Free Software Foundation, Inc. | 4 | * 2000 Free Software Foundation, Inc. |
| 4 | * | 5 | * |
| 5 | * This file is part of GnuPG. | 6 | * This file is part of GnuPG. |
| 6 | * | 7 | * |
| 7 | * GnuPG 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 | * GnuPG 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 | * | ||
| 21 | * Note: This code is heavily based on the GNU MP Library. | 8 | * Note: This code is heavily based on the GNU MP Library. |
| 22 | * Actually it's the same code with only minor changes in the | 9 | * Actually it's the same code with only minor changes in the |
| 23 | * way the data is stored; this is to support the abstraction | 10 | * way the data is stored; this is to support the abstraction |
diff --git a/lib/mpi/generic_mpih-lshift.c b/lib/mpi/generic_mpih-lshift.c index 86318927231a..7b21f5938a50 100644 --- a/lib/mpi/generic_mpih-lshift.c +++ b/lib/mpi/generic_mpih-lshift.c | |||
| @@ -1,22 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* mpihelp-lshift.c - MPI helper functions | 2 | /* mpihelp-lshift.c - MPI helper functions |
| 2 | * Copyright (C) 1994, 1996, 1998, 2001 Free Software Foundation, Inc. | 3 | * Copyright (C) 1994, 1996, 1998, 2001 Free Software Foundation, Inc. |
| 3 | * | 4 | * |
| 4 | * This file is part of GnuPG. | 5 | * This file is part of GnuPG. |
| 5 | * | 6 | * |
| 6 | * GnuPG is free software; you can redistribute it and/or modify | ||
| 7 | * it under the terms of the GNU General Public License as published by | ||
| 8 | * the Free Software Foundation; either version 2 of the License, or | ||
| 9 | * (at your option) any later version. | ||
| 10 | * | ||
| 11 | * GnuPG is distributed in the hope that it will be useful, | ||
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | * GNU General Public License for more details. | ||
| 15 | * | ||
| 16 | * You should have received a copy of the GNU General Public License | ||
| 17 | * along with this program; if not, write to the Free Software | ||
| 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
| 19 | * | ||
| 20 | * Note: This code is heavily based on the GNU MP Library. | 7 | * Note: This code is heavily based on the GNU MP Library. |
| 21 | * Actually it's the same code with only minor changes in the | 8 | * Actually it's the same code with only minor changes in the |
| 22 | * way the data is stored; this is to support the abstraction | 9 | * way the data is stored; this is to support the abstraction |
diff --git a/lib/mpi/generic_mpih-mul1.c b/lib/mpi/generic_mpih-mul1.c index 1668dfd9092c..e020e61d47b9 100644 --- a/lib/mpi/generic_mpih-mul1.c +++ b/lib/mpi/generic_mpih-mul1.c | |||
| @@ -1,22 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* mpihelp-mul_1.c - MPI helper functions | 2 | /* mpihelp-mul_1.c - MPI helper functions |
| 2 | * Copyright (C) 1994, 1996, 1997, 1998, 2001 Free Software Foundation, Inc. | 3 | * Copyright (C) 1994, 1996, 1997, 1998, 2001 Free Software Foundation, Inc. |
| 3 | * | 4 | * |
| 4 | * This file is part of GnuPG. | 5 | * This file is part of GnuPG. |
| 5 | * | 6 | * |
| 6 | * GnuPG is free software; you can redistribute it and/or modify | ||
| 7 | * it under the terms of the GNU General Public License as published by | ||
| 8 | * the Free Software Foundation; either version 2 of the License, or | ||
| 9 | * (at your option) any later version. | ||
| 10 | * | ||
| 11 | * GnuPG is distributed in the hope that it will be useful, | ||
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | * GNU General Public License for more details. | ||
| 15 | * | ||
| 16 | * You should have received a copy of the GNU General Public License | ||
| 17 | * along with this program; if not, write to the Free Software | ||
| 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
| 19 | * | ||
| 20 | * Note: This code is heavily based on the GNU MP Library. | 7 | * Note: This code is heavily based on the GNU MP Library. |
| 21 | * Actually it's the same code with only minor changes in the | 8 | * Actually it's the same code with only minor changes in the |
| 22 | * way the data is stored; this is to support the abstraction | 9 | * way the data is stored; this is to support the abstraction |
diff --git a/lib/mpi/generic_mpih-mul2.c b/lib/mpi/generic_mpih-mul2.c index 8a7b29ee1740..9484d8528243 100644 --- a/lib/mpi/generic_mpih-mul2.c +++ b/lib/mpi/generic_mpih-mul2.c | |||
| @@ -1,22 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* mpihelp-mul_2.c - MPI helper functions | 2 | /* mpihelp-mul_2.c - MPI helper functions |
| 2 | * Copyright (C) 1994, 1996, 1997, 1998, 2001 Free Software Foundation, Inc. | 3 | * Copyright (C) 1994, 1996, 1997, 1998, 2001 Free Software Foundation, Inc. |
| 3 | * | 4 | * |
| 4 | * This file is part of GnuPG. | 5 | * This file is part of GnuPG. |
| 5 | * | 6 | * |
| 6 | * GnuPG is free software; you can redistribute it and/or modify | ||
| 7 | * it under the terms of the GNU General Public License as published by | ||
| 8 | * the Free Software Foundation; either version 2 of the License, or | ||
| 9 | * (at your option) any later version. | ||
| 10 | * | ||
| 11 | * GnuPG is distributed in the hope that it will be useful, | ||
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | * GNU General Public License for more details. | ||
| 15 | * | ||
| 16 | * You should have received a copy of the GNU General Public License | ||
| 17 | * along with this program; if not, write to the Free Software | ||
| 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
| 19 | * | ||
| 20 | * Note: This code is heavily based on the GNU MP Library. | 7 | * Note: This code is heavily based on the GNU MP Library. |
| 21 | * Actually it's the same code with only minor changes in the | 8 | * Actually it's the same code with only minor changes in the |
| 22 | * way the data is stored; this is to support the abstraction | 9 | * way the data is stored; this is to support the abstraction |
diff --git a/lib/mpi/generic_mpih-mul3.c b/lib/mpi/generic_mpih-mul3.c index f96df327be63..ccdbab4121e0 100644 --- a/lib/mpi/generic_mpih-mul3.c +++ b/lib/mpi/generic_mpih-mul3.c | |||
| @@ -1,22 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* mpihelp-mul_3.c - MPI helper functions | 2 | /* mpihelp-mul_3.c - MPI helper functions |
| 2 | * Copyright (C) 1994, 1996, 1997, 1998, 2001 Free Software Foundation, Inc. | 3 | * Copyright (C) 1994, 1996, 1997, 1998, 2001 Free Software Foundation, Inc. |
| 3 | * | 4 | * |
| 4 | * This file is part of GnuPG. | 5 | * This file is part of GnuPG. |
| 5 | * | 6 | * |
| 6 | * GnuPG is free software; you can redistribute it and/or modify | ||
| 7 | * it under the terms of the GNU General Public License as published by | ||
| 8 | * the Free Software Foundation; either version 2 of the License, or | ||
| 9 | * (at your option) any later version. | ||
| 10 | * | ||
| 11 | * GnuPG is distributed in the hope that it will be useful, | ||
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | * GNU General Public License for more details. | ||
| 15 | * | ||
| 16 | * You should have received a copy of the GNU General Public License | ||
| 17 | * along with this program; if not, write to the Free Software | ||
| 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
| 19 | * | ||
| 20 | * Note: This code is heavily based on the GNU MP Library. | 7 | * Note: This code is heavily based on the GNU MP Library. |
| 21 | * Actually it's the same code with only minor changes in the | 8 | * Actually it's the same code with only minor changes in the |
| 22 | * way the data is stored; this is to support the abstraction | 9 | * way the data is stored; this is to support the abstraction |
diff --git a/lib/mpi/generic_mpih-rshift.c b/lib/mpi/generic_mpih-rshift.c index ffa328818ca6..e07bc69aa898 100644 --- a/lib/mpi/generic_mpih-rshift.c +++ b/lib/mpi/generic_mpih-rshift.c | |||
| @@ -1,23 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* mpih-rshift.c - MPI helper functions | 2 | /* mpih-rshift.c - MPI helper functions |
| 2 | * Copyright (C) 1994, 1996, 1998, 1999, | 3 | * Copyright (C) 1994, 1996, 1998, 1999, |
| 3 | * 2000, 2001 Free Software Foundation, Inc. | 4 | * 2000, 2001 Free Software Foundation, Inc. |
| 4 | * | 5 | * |
| 5 | * This file is part of GNUPG | 6 | * This file is part of GNUPG |
| 6 | * | 7 | * |
| 7 | * GNUPG 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 | * GNUPG 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 | * | ||
| 21 | * Note: This code is heavily based on the GNU MP Library. | 8 | * Note: This code is heavily based on the GNU MP Library. |
| 22 | * Actually it's the same code with only minor changes in the | 9 | * Actually it's the same code with only minor changes in the |
| 23 | * way the data is stored; this is to support the abstraction | 10 | * way the data is stored; this is to support the abstraction |
diff --git a/lib/mpi/generic_mpih-sub1.c b/lib/mpi/generic_mpih-sub1.c index 5d98ab7d6853..eea4382aad5f 100644 --- a/lib/mpi/generic_mpih-sub1.c +++ b/lib/mpi/generic_mpih-sub1.c | |||
| @@ -1,22 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* mpihelp-add_2.c - MPI helper functions | 2 | /* mpihelp-add_2.c - MPI helper functions |
| 2 | * Copyright (C) 1994, 1996, 1997, 1998, 2001 Free Software Foundation, Inc. | 3 | * Copyright (C) 1994, 1996, 1997, 1998, 2001 Free Software Foundation, Inc. |
| 3 | * | 4 | * |
| 4 | * This file is part of GnuPG. | 5 | * This file is part of GnuPG. |
| 5 | * | 6 | * |
| 6 | * GnuPG is free software; you can redistribute it and/or modify | ||
| 7 | * it under the terms of the GNU General Public License as published by | ||
| 8 | * the Free Software Foundation; either version 2 of the License, or | ||
| 9 | * (at your option) any later version. | ||
| 10 | * | ||
| 11 | * GnuPG is distributed in the hope that it will be useful, | ||
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | * GNU General Public License for more details. | ||
| 15 | * | ||
| 16 | * You should have received a copy of the GNU General Public License | ||
| 17 | * along with this program; if not, write to the Free Software | ||
| 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
| 19 | * | ||
| 20 | * Note: This code is heavily based on the GNU MP Library. | 7 | * Note: This code is heavily based on the GNU MP Library. |
| 21 | * Actually it's the same code with only minor changes in the | 8 | * Actually it's the same code with only minor changes in the |
| 22 | * way the data is stored; this is to support the abstraction | 9 | * way the data is stored; this is to support the abstraction |
diff --git a/lib/mpi/mpi-inline.h b/lib/mpi/mpi-inline.h index c245ea31f785..980b6b940953 100644 --- a/lib/mpi/mpi-inline.h +++ b/lib/mpi/mpi-inline.h | |||
| @@ -1,22 +1,9 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||
| 1 | /* mpi-inline.h - Internal to the Multi Precision Integers | 2 | /* mpi-inline.h - Internal to the Multi Precision Integers |
| 2 | * Copyright (C) 1994, 1996, 1998, 1999 Free Software Foundation, Inc. | 3 | * Copyright (C) 1994, 1996, 1998, 1999 Free Software Foundation, Inc. |
| 3 | * | 4 | * |
| 4 | * This file is part of GnuPG. | 5 | * This file is part of GnuPG. |
| 5 | * | 6 | * |
| 6 | * GnuPG is free software; you can redistribute it and/or modify | ||
| 7 | * it under the terms of the GNU General Public License as published by | ||
| 8 | * the Free Software Foundation; either version 2 of the License, or | ||
| 9 | * (at your option) any later version. | ||
| 10 | * | ||
| 11 | * GnuPG is distributed in the hope that it will be useful, | ||
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | * GNU General Public License for more details. | ||
| 15 | * | ||
| 16 | * You should have received a copy of the GNU General Public License | ||
| 17 | * along with this program; if not, write to the Free Software | ||
| 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
| 19 | * | ||
| 20 | * Note: This code is heavily based on the GNU MP Library. | 7 | * Note: This code is heavily based on the GNU MP Library. |
| 21 | * Actually it's the same code with only minor changes in the | 8 | * Actually it's the same code with only minor changes in the |
| 22 | * way the data is stored; this is to support the abstraction | 9 | * way the data is stored; this is to support the abstraction |
diff --git a/lib/mpi/mpi-internal.h b/lib/mpi/mpi-internal.h index c2d6f4efcfbc..91df5f0b70f2 100644 --- a/lib/mpi/mpi-internal.h +++ b/lib/mpi/mpi-internal.h | |||
| @@ -1,23 +1,10 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||
| 1 | /* mpi-internal.h - Internal to the Multi Precision Integers | 2 | /* mpi-internal.h - Internal to the Multi Precision Integers |
| 2 | * Copyright (C) 1994, 1996 Free Software Foundation, Inc. | 3 | * Copyright (C) 1994, 1996 Free Software Foundation, Inc. |
| 3 | * Copyright (C) 1998, 2000 Free Software Foundation, Inc. | 4 | * Copyright (C) 1998, 2000 Free Software Foundation, Inc. |
| 4 | * | 5 | * |
| 5 | * This file is part of GnuPG. | 6 | * This file is part of GnuPG. |
| 6 | * | 7 | * |
| 7 | * GnuPG 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 | * GnuPG 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 | * | ||
| 21 | * Note: This code is heavily based on the GNU MP Library. | 8 | * Note: This code is heavily based on the GNU MP Library. |
| 22 | * Actually it's the same code with only minor changes in the | 9 | * Actually it's the same code with only minor changes in the |
| 23 | * way the data is stored; this is to support the abstraction | 10 | * way the data is stored; this is to support the abstraction |
diff --git a/lib/mpi/mpi-pow.c b/lib/mpi/mpi-pow.c index a5c921e6d667..82b19e4f1189 100644 --- a/lib/mpi/mpi-pow.c +++ b/lib/mpi/mpi-pow.c | |||
| @@ -1,22 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* mpi-pow.c - MPI functions | 2 | /* mpi-pow.c - MPI functions |
| 2 | * Copyright (C) 1994, 1996, 1998, 2000 Free Software Foundation, Inc. | 3 | * Copyright (C) 1994, 1996, 1998, 2000 Free Software Foundation, Inc. |
| 3 | * | 4 | * |
| 4 | * This file is part of GnuPG. | 5 | * This file is part of GnuPG. |
| 5 | * | 6 | * |
| 6 | * GnuPG is free software; you can redistribute it and/or modify | ||
| 7 | * it under the terms of the GNU General Public License as published by | ||
| 8 | * the Free Software Foundation; either version 2 of the License, or | ||
| 9 | * (at your option) any later version. | ||
| 10 | * | ||
| 11 | * GnuPG is distributed in the hope that it will be useful, | ||
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | * GNU General Public License for more details. | ||
| 15 | * | ||
| 16 | * You should have received a copy of the GNU General Public License | ||
| 17 | * along with this program; if not, write to the Free Software | ||
| 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
| 19 | * | ||
| 20 | * Note: This code is heavily based on the GNU MP Library. | 7 | * Note: This code is heavily based on the GNU MP Library. |
| 21 | * Actually it's the same code with only minor changes in the | 8 | * Actually it's the same code with only minor changes in the |
| 22 | * way the data is stored; this is to support the abstraction | 9 | * way the data is stored; this is to support the abstraction |
diff --git a/lib/mpi/mpih-cmp.c b/lib/mpi/mpih-cmp.c index b2fd39677f1b..f23709114a65 100644 --- a/lib/mpi/mpih-cmp.c +++ b/lib/mpi/mpih-cmp.c | |||
| @@ -1,23 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* mpihelp-sub.c - MPI helper functions | 2 | /* mpihelp-sub.c - MPI helper functions |
| 2 | * Copyright (C) 1994, 1996 Free Software Foundation, Inc. | 3 | * Copyright (C) 1994, 1996 Free Software Foundation, Inc. |
| 3 | * Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc. | 4 | * Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc. |
| 4 | * | 5 | * |
| 5 | * This file is part of GnuPG. | 6 | * This file is part of GnuPG. |
| 6 | * | 7 | * |
| 7 | * GnuPG 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 | * GnuPG 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 | * | ||
| 21 | * Note: This code is heavily based on the GNU MP Library. | 8 | * Note: This code is heavily based on the GNU MP Library. |
| 22 | * Actually it's the same code with only minor changes in the | 9 | * Actually it's the same code with only minor changes in the |
| 23 | * way the data is stored; this is to support the abstraction | 10 | * way the data is stored; this is to support the abstraction |
diff --git a/lib/mpi/mpih-div.c b/lib/mpi/mpih-div.c index c57d1d46295e..913a519eb005 100644 --- a/lib/mpi/mpih-div.c +++ b/lib/mpi/mpih-div.c | |||
| @@ -1,23 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* mpihelp-div.c - MPI helper functions | 2 | /* mpihelp-div.c - MPI helper functions |
| 2 | * Copyright (C) 1994, 1996 Free Software Foundation, Inc. | 3 | * Copyright (C) 1994, 1996 Free Software Foundation, Inc. |
| 3 | * Copyright (C) 1998, 1999 Free Software Foundation, Inc. | 4 | * Copyright (C) 1998, 1999 Free Software Foundation, Inc. |
| 4 | * | 5 | * |
| 5 | * This file is part of GnuPG. | 6 | * This file is part of GnuPG. |
| 6 | * | 7 | * |
| 7 | * GnuPG 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 | * GnuPG 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 | * | ||
| 21 | * Note: This code is heavily based on the GNU MP Library. | 8 | * Note: This code is heavily based on the GNU MP Library. |
| 22 | * Actually it's the same code with only minor changes in the | 9 | * Actually it's the same code with only minor changes in the |
| 23 | * way the data is stored; this is to support the abstraction | 10 | * way the data is stored; this is to support the abstraction |
diff --git a/lib/mpi/mpih-mul.c b/lib/mpi/mpih-mul.c index 7c841719fdfb..a93647564054 100644 --- a/lib/mpi/mpih-mul.c +++ b/lib/mpi/mpih-mul.c | |||
| @@ -1,23 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* mpihelp-mul.c - MPI helper functions | 2 | /* mpihelp-mul.c - MPI helper functions |
| 2 | * Copyright (C) 1994, 1996, 1998, 1999, | 3 | * Copyright (C) 1994, 1996, 1998, 1999, |
| 3 | * 2000 Free Software Foundation, Inc. | 4 | * 2000 Free Software Foundation, Inc. |
| 4 | * | 5 | * |
| 5 | * This file is part of GnuPG. | 6 | * This file is part of GnuPG. |
| 6 | * | 7 | * |
| 7 | * GnuPG 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 | * GnuPG 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 | * | ||
| 21 | * Note: This code is heavily based on the GNU MP Library. | 8 | * Note: This code is heavily based on the GNU MP Library. |
| 22 | * Actually it's the same code with only minor changes in the | 9 | * Actually it's the same code with only minor changes in the |
| 23 | * way the data is stored; this is to support the abstraction | 10 | * way the data is stored; this is to support the abstraction |
diff --git a/lib/muldi3.c b/lib/muldi3.c index 54c8b3123376..9150ac13050e 100644 --- a/lib/muldi3.c +++ b/lib/muldi3.c | |||
| @@ -1,17 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation; either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | ||
| 7 | * This program is distributed in the hope that it will be useful, | ||
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 10 | * GNU General Public License for more details. | ||
| 11 | * | ||
| 12 | * You should have received a copy of the GNU General Public License | ||
| 13 | * along with this program; if not, see the file COPYING, or write | ||
| 14 | * to the Free Software Foundation, Inc. | ||
| 15 | */ | 3 | */ |
| 16 | 4 | ||
| 17 | #include <linux/export.h> | 5 | #include <linux/export.h> |
diff --git a/lib/oid_registry.c b/lib/oid_registry.c index 0bcac6ccb1b2..f7ad43f28579 100644 --- a/lib/oid_registry.c +++ b/lib/oid_registry.c | |||
| @@ -1,12 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* ASN.1 Object identifier (OID) registry | 2 | /* ASN.1 Object identifier (OID) registry |
| 2 | * | 3 | * |
| 3 | * Copyright (C) 2012 Red Hat, Inc. All Rights Reserved. | 4 | * Copyright (C) 2012 Red Hat, Inc. All Rights Reserved. |
| 4 | * Written by David Howells (dhowells@redhat.com) | 5 | * Written by David Howells (dhowells@redhat.com) |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or | ||
| 7 | * modify it under the terms of the GNU General Public Licence | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the Licence, or (at your option) any later version. | ||
| 10 | */ | 6 | */ |
| 11 | 7 | ||
| 12 | #include <linux/module.h> | 8 | #include <linux/module.h> |
diff --git a/lib/radix-tree.c b/lib/radix-tree.c index 14d51548bea6..18c1dfbb1765 100644 --- a/lib/radix-tree.c +++ b/lib/radix-tree.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) 2001 Momchil Velikov | 3 | * Copyright (C) 2001 Momchil Velikov |
| 3 | * Portions Copyright (C) 2001 Christoph Hellwig | 4 | * Portions Copyright (C) 2001 Christoph Hellwig |
| @@ -6,20 +7,6 @@ | |||
| 6 | * Copyright (C) 2012 Konstantin Khlebnikov | 7 | * Copyright (C) 2012 Konstantin Khlebnikov |
| 7 | * Copyright (C) 2016 Intel, Matthew Wilcox | 8 | * Copyright (C) 2016 Intel, Matthew Wilcox |
| 8 | * Copyright (C) 2016 Intel, Ross Zwisler | 9 | * Copyright (C) 2016 Intel, Ross Zwisler |
| 9 | * | ||
| 10 | * This program is free software; you can redistribute it and/or | ||
| 11 | * modify it under the terms of the GNU General Public License as | ||
| 12 | * published by the Free Software Foundation; either version 2, or (at | ||
| 13 | * your option) any later version. | ||
| 14 | * | ||
| 15 | * This program is distributed in the hope that it will be useful, but | ||
| 16 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 18 | * 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., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
| 23 | */ | 10 | */ |
| 24 | 11 | ||
| 25 | #include <linux/bitmap.h> | 12 | #include <linux/bitmap.h> |
diff --git a/lib/raid6/algos.c b/lib/raid6/algos.c index 7e4f7a8ffa8e..17417eee0866 100644 --- a/lib/raid6/algos.c +++ b/lib/raid6/algos.c | |||
| @@ -1,13 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* -*- linux-c -*- ------------------------------------------------------- * | 2 | /* -*- linux-c -*- ------------------------------------------------------- * |
| 2 | * | 3 | * |
| 3 | * Copyright 2002 H. Peter Anvin - All Rights Reserved | 4 | * Copyright 2002 H. Peter Anvin - All Rights Reserved |
| 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 as published by | ||
| 7 | * the Free Software Foundation, Inc., 53 Temple Place Ste 330, | ||
| 8 | * Boston MA 02111-1307, USA; either version 2 of the License, or | ||
| 9 | * (at your option) any later version; incorporated herein by reference. | ||
| 10 | * | ||
| 11 | * ----------------------------------------------------------------------- */ | 6 | * ----------------------------------------------------------------------- */ |
| 12 | 7 | ||
| 13 | /* | 8 | /* |
diff --git a/lib/raid6/avx2.c b/lib/raid6/avx2.c index 20bca3d44f67..87184b6da28a 100644 --- a/lib/raid6/avx2.c +++ b/lib/raid6/avx2.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* -*- linux-c -*- ------------------------------------------------------- * | 2 | /* -*- linux-c -*- ------------------------------------------------------- * |
| 2 | * | 3 | * |
| 3 | * Copyright (C) 2012 Intel Corporation | 4 | * Copyright (C) 2012 Intel Corporation |
| @@ -5,13 +6,6 @@ | |||
| 5 | * | 6 | * |
| 6 | * Based on sse2.c: Copyright 2002 H. Peter Anvin - All Rights Reserved | 7 | * Based on sse2.c: Copyright 2002 H. Peter Anvin - All Rights Reserved |
| 7 | * | 8 | * |
| 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 as published by | ||
| 11 | * the Free Software Foundation, Inc., 53 Temple Place Ste 330, | ||
| 12 | * Boston MA 02111-1307, USA; either version 2 of the License, or | ||
| 13 | * (at your option) any later version; incorporated herein by reference. | ||
| 14 | * | ||
| 15 | * ----------------------------------------------------------------------- */ | 9 | * ----------------------------------------------------------------------- */ |
| 16 | 10 | ||
| 17 | /* | 11 | /* |
diff --git a/lib/raid6/avx512.c b/lib/raid6/avx512.c index 46df7977b971..bb684d144ee2 100644 --- a/lib/raid6/avx512.c +++ b/lib/raid6/avx512.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* -*- linux-c -*- -------------------------------------------------------- | 2 | /* -*- linux-c -*- -------------------------------------------------------- |
| 2 | * | 3 | * |
| 3 | * Copyright (C) 2016 Intel Corporation | 4 | * Copyright (C) 2016 Intel Corporation |
| @@ -8,12 +9,6 @@ | |||
| 8 | * Based on avx2.c: Copyright 2012 Yuanhan Liu All Rights Reserved | 9 | * Based on avx2.c: Copyright 2012 Yuanhan Liu All Rights Reserved |
| 9 | * Based on sse2.c: Copyright 2002 H. Peter Anvin - All Rights Reserved | 10 | * Based on sse2.c: Copyright 2002 H. Peter Anvin - All Rights Reserved |
| 10 | * | 11 | * |
| 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, Inc., 53 Temple Place Ste 330, | ||
| 14 | * Boston MA 02111-1307, USA; either version 2 of the License, or | ||
| 15 | * (at your option) any later version; incorporated herein by reference. | ||
| 16 | * | ||
| 17 | * ----------------------------------------------------------------------- | 12 | * ----------------------------------------------------------------------- |
| 18 | */ | 13 | */ |
| 19 | 14 | ||
diff --git a/lib/raid6/mktables.c b/lib/raid6/mktables.c index e824d088f72c..9c485df1308f 100644 --- a/lib/raid6/mktables.c +++ b/lib/raid6/mktables.c | |||
| @@ -1,11 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* -*- linux-c -*- ------------------------------------------------------- * | 2 | /* -*- linux-c -*- ------------------------------------------------------- * |
| 2 | * | 3 | * |
| 3 | * Copyright 2002-2007 H. Peter Anvin - All Rights Reserved | 4 | * Copyright 2002-2007 H. Peter Anvin - All Rights Reserved |
| 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 or (at your | ||
| 7 | * option) any later version; incorporated herein by reference. | ||
| 8 | * | ||
| 9 | * ----------------------------------------------------------------------- */ | 6 | * ----------------------------------------------------------------------- */ |
| 10 | 7 | ||
| 11 | /* | 8 | /* |
diff --git a/lib/raid6/mmx.c b/lib/raid6/mmx.c index b3b0e1fcd3af..3a5bf53a297b 100644 --- a/lib/raid6/mmx.c +++ b/lib/raid6/mmx.c | |||
| @@ -1,13 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* -*- linux-c -*- ------------------------------------------------------- * | 2 | /* -*- linux-c -*- ------------------------------------------------------- * |
| 2 | * | 3 | * |
| 3 | * Copyright 2002 H. Peter Anvin - All Rights Reserved | 4 | * Copyright 2002 H. Peter Anvin - All Rights Reserved |
| 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 as published by | ||
| 7 | * the Free Software Foundation, Inc., 53 Temple Place Ste 330, | ||
| 8 | * Boston MA 02111-1307, USA; either version 2 of the License, or | ||
| 9 | * (at your option) any later version; incorporated herein by reference. | ||
| 10 | * | ||
| 11 | * ----------------------------------------------------------------------- */ | 6 | * ----------------------------------------------------------------------- */ |
| 12 | 7 | ||
| 13 | /* | 8 | /* |
diff --git a/lib/raid6/recov.c b/lib/raid6/recov.c index a95bccb8497d..e49d519de6cb 100644 --- a/lib/raid6/recov.c +++ b/lib/raid6/recov.c | |||
| @@ -1,13 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* -*- linux-c -*- ------------------------------------------------------- * | 2 | /* -*- linux-c -*- ------------------------------------------------------- * |
| 2 | * | 3 | * |
| 3 | * Copyright 2002 H. Peter Anvin - All Rights Reserved | 4 | * Copyright 2002 H. Peter Anvin - All Rights Reserved |
| 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 as published by | ||
| 7 | * the Free Software Foundation, Inc., 53 Temple Place Ste 330, | ||
| 8 | * Boston MA 02111-1307, USA; either version 2 of the License, or | ||
| 9 | * (at your option) any later version; incorporated herein by reference. | ||
| 10 | * | ||
| 11 | * ----------------------------------------------------------------------- */ | 6 | * ----------------------------------------------------------------------- */ |
| 12 | 7 | ||
| 13 | /* | 8 | /* |
diff --git a/lib/raid6/recov_avx2.c b/lib/raid6/recov_avx2.c index 53fe3d7bdfb3..7a3b5e7f66ee 100644 --- a/lib/raid6/recov_avx2.c +++ b/lib/raid6/recov_avx2.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) 2012 Intel Corporation | 3 | * Copyright (C) 2012 Intel Corporation |
| 3 | * Author: Jim Kukunas <james.t.kukunas@linux.intel.com> | 4 | * Author: Jim Kukunas <james.t.kukunas@linux.intel.com> |
| 4 | * | ||
| 5 | * This program is free software; you can redistribute it and/or | ||
| 6 | * modify it under the terms of the GNU General Public License | ||
| 7 | * as published by the Free Software Foundation; version 2 | ||
| 8 | * of the License. | ||
| 9 | */ | 5 | */ |
| 10 | 6 | ||
| 11 | #ifdef CONFIG_AS_AVX2 | 7 | #ifdef CONFIG_AS_AVX2 |
diff --git a/lib/raid6/recov_avx512.c b/lib/raid6/recov_avx512.c index 625aafa33b61..fd9e15bf3f30 100644 --- a/lib/raid6/recov_avx512.c +++ b/lib/raid6/recov_avx512.c | |||
| @@ -1,14 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) 2016 Intel Corporation | 3 | * Copyright (C) 2016 Intel Corporation |
| 3 | * | 4 | * |
| 4 | * Author: Gayatri Kammela <gayatri.kammela@intel.com> | 5 | * Author: Gayatri Kammela <gayatri.kammela@intel.com> |
| 5 | * Author: Megha Dey <megha.dey@linux.intel.com> | 6 | * Author: Megha Dey <megha.dey@linux.intel.com> |
| 6 | * | ||
| 7 | * This program is free software; you can redistribute it and/or | ||
| 8 | * modify it under the terms of the GNU General Public License | ||
| 9 | * as published by the Free Software Foundation; version 2 | ||
| 10 | * of the License. | ||
| 11 | * | ||
| 12 | */ | 7 | */ |
| 13 | 8 | ||
| 14 | #ifdef CONFIG_AS_AVX512 | 9 | #ifdef CONFIG_AS_AVX512 |
diff --git a/lib/raid6/recov_neon.c b/lib/raid6/recov_neon.c index eeb5c4065b92..d6fba8bf8c0a 100644 --- a/lib/raid6/recov_neon.c +++ b/lib/raid6/recov_neon.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) 2012 Intel Corporation | 3 | * Copyright (C) 2012 Intel Corporation |
| 3 | * Copyright (C) 2017 Linaro Ltd. <ard.biesheuvel@linaro.org> | 4 | * Copyright (C) 2017 Linaro Ltd. <ard.biesheuvel@linaro.org> |
| 4 | * | ||
| 5 | * This program is free software; you can redistribute it and/or | ||
| 6 | * modify it under the terms of the GNU General Public License | ||
| 7 | * as published by the Free Software Foundation; version 2 | ||
| 8 | * of the License. | ||
| 9 | */ | 5 | */ |
| 10 | 6 | ||
| 11 | #include <linux/raid/pq.h> | 7 | #include <linux/raid/pq.h> |
diff --git a/lib/raid6/recov_neon_inner.c b/lib/raid6/recov_neon_inner.c index f13c07f82297..90eb80d43790 100644 --- a/lib/raid6/recov_neon_inner.c +++ b/lib/raid6/recov_neon_inner.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) 2012 Intel Corporation | 3 | * Copyright (C) 2012 Intel Corporation |
| 3 | * Copyright (C) 2017 Linaro Ltd. <ard.biesheuvel@linaro.org> | 4 | * Copyright (C) 2017 Linaro Ltd. <ard.biesheuvel@linaro.org> |
| 4 | * | ||
| 5 | * This program is free software; you can redistribute it and/or | ||
| 6 | * modify it under the terms of the GNU General Public License | ||
| 7 | * as published by the Free Software Foundation; version 2 | ||
| 8 | * of the License. | ||
| 9 | */ | 5 | */ |
| 10 | 6 | ||
| 11 | #include <arm_neon.h> | 7 | #include <arm_neon.h> |
diff --git a/lib/raid6/recov_ssse3.c b/lib/raid6/recov_ssse3.c index cda33e56a5e3..1de97d2405d0 100644 --- a/lib/raid6/recov_ssse3.c +++ b/lib/raid6/recov_ssse3.c | |||
| @@ -1,10 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) 2012 Intel Corporation | 3 | * Copyright (C) 2012 Intel Corporation |
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or | ||
| 5 | * modify it under the terms of the GNU General Public License | ||
| 6 | * as published by the Free Software Foundation; version 2 | ||
| 7 | * of the License. | ||
| 8 | */ | 4 | */ |
| 9 | 5 | ||
| 10 | #ifdef CONFIG_AS_SSSE3 | 6 | #ifdef CONFIG_AS_SSSE3 |
diff --git a/lib/raid6/sse1.c b/lib/raid6/sse1.c index 9025b8ca9aa3..692fa3a93bf0 100644 --- a/lib/raid6/sse1.c +++ b/lib/raid6/sse1.c | |||
| @@ -1,13 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* -*- linux-c -*- ------------------------------------------------------- * | 2 | /* -*- linux-c -*- ------------------------------------------------------- * |
| 2 | * | 3 | * |
| 3 | * Copyright 2002 H. Peter Anvin - All Rights Reserved | 4 | * Copyright 2002 H. Peter Anvin - All Rights Reserved |
| 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 as published by | ||
| 7 | * the Free Software Foundation, Inc., 53 Temple Place Ste 330, | ||
| 8 | * Boston MA 02111-1307, USA; either version 2 of the License, or | ||
| 9 | * (at your option) any later version; incorporated herein by reference. | ||
| 10 | * | ||
| 11 | * ----------------------------------------------------------------------- */ | 6 | * ----------------------------------------------------------------------- */ |
| 12 | 7 | ||
| 13 | /* | 8 | /* |
diff --git a/lib/raid6/sse2.c b/lib/raid6/sse2.c index 8191e1d0d2fb..2930220249c9 100644 --- a/lib/raid6/sse2.c +++ b/lib/raid6/sse2.c | |||
| @@ -1,13 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* -*- linux-c -*- ------------------------------------------------------- * | 2 | /* -*- linux-c -*- ------------------------------------------------------- * |
| 2 | * | 3 | * |
| 3 | * Copyright 2002 H. Peter Anvin - All Rights Reserved | 4 | * Copyright 2002 H. Peter Anvin - All Rights Reserved |
| 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 as published by | ||
| 7 | * the Free Software Foundation, Inc., 53 Temple Place Ste 330, | ||
| 8 | * Boston MA 02111-1307, USA; either version 2 of the License, or | ||
| 9 | * (at your option) any later version; incorporated herein by reference. | ||
| 10 | * | ||
| 11 | * ----------------------------------------------------------------------- */ | 6 | * ----------------------------------------------------------------------- */ |
| 12 | 7 | ||
| 13 | /* | 8 | /* |
diff --git a/lib/raid6/test/test.c b/lib/raid6/test/test.c index b07f4d8e6b03..a3cf071941ab 100644 --- a/lib/raid6/test/test.c +++ b/lib/raid6/test/test.c | |||
| @@ -1,11 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* -*- linux-c -*- ------------------------------------------------------- * | 2 | /* -*- linux-c -*- ------------------------------------------------------- * |
| 2 | * | 3 | * |
| 3 | * Copyright 2002-2007 H. Peter Anvin - All Rights Reserved | 4 | * Copyright 2002-2007 H. Peter Anvin - All Rights Reserved |
| 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 or (at your | ||
| 7 | * option) any later version; incorporated herein by reference. | ||
| 8 | * | ||
| 9 | * ----------------------------------------------------------------------- */ | 6 | * ----------------------------------------------------------------------- */ |
| 10 | 7 | ||
| 11 | /* | 8 | /* |
diff --git a/lib/raid6/x86.h b/lib/raid6/x86.h index 834d268a4b05..9a6ff37115e7 100644 --- a/lib/raid6/x86.h +++ b/lib/raid6/x86.h | |||
| @@ -1,13 +1,8 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||
| 1 | /* ----------------------------------------------------------------------- * | 2 | /* ----------------------------------------------------------------------- * |
| 2 | * | 3 | * |
| 3 | * Copyright 2002-2004 H. Peter Anvin - All Rights Reserved | 4 | * Copyright 2002-2004 H. Peter Anvin - All Rights Reserved |
| 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 as published by | ||
| 7 | * the Free Software Foundation, Inc., 53 Temple Place Ste 330, | ||
| 8 | * Boston MA 02111-1307, USA; either version 2 of the License, or | ||
| 9 | * (at your option) any later version; incorporated herein by reference. | ||
| 10 | * | ||
| 11 | * ----------------------------------------------------------------------- */ | 6 | * ----------------------------------------------------------------------- */ |
| 12 | 7 | ||
| 13 | /* | 8 | /* |
diff --git a/lib/ratelimit.c b/lib/ratelimit.c index d01f47135239..e01a93f46f83 100644 --- a/lib/ratelimit.c +++ b/lib/ratelimit.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * ratelimit.c - Do something with rate limit. | 3 | * ratelimit.c - Do something with rate limit. |
| 3 | * | 4 | * |
| @@ -5,8 +6,6 @@ | |||
| 5 | * | 6 | * |
| 6 | * 2008-05-01 rewrite the function and use a ratelimit_state data struct as | 7 | * 2008-05-01 rewrite the function and use a ratelimit_state data struct as |
| 7 | * parameter. Now every user can use their own standalone ratelimit_state. | 8 | * parameter. Now every user can use their own standalone ratelimit_state. |
| 8 | * | ||
| 9 | * This file is released under the GPLv2. | ||
| 10 | */ | 9 | */ |
| 11 | 10 | ||
| 12 | #include <linux/ratelimit.h> | 11 | #include <linux/ratelimit.h> |
diff --git a/lib/rbtree.c b/lib/rbtree.c index d3ff682fd4b8..1ef6e25d031c 100644 --- a/lib/rbtree.c +++ b/lib/rbtree.c | |||
| @@ -1,22 +1,10 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | Red Black Trees | 3 | Red Black Trees |
| 3 | (C) 1999 Andrea Arcangeli <andrea@suse.de> | 4 | (C) 1999 Andrea Arcangeli <andrea@suse.de> |
| 4 | (C) 2002 David Woodhouse <dwmw2@infradead.org> | 5 | (C) 2002 David Woodhouse <dwmw2@infradead.org> |
| 5 | (C) 2012 Michel Lespinasse <walken@google.com> | 6 | (C) 2012 Michel Lespinasse <walken@google.com> |
| 6 | 7 | ||
| 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 | 8 | ||
| 21 | linux/lib/rbtree.c | 9 | linux/lib/rbtree.c |
| 22 | */ | 10 | */ |
diff --git a/lib/sbitmap.c b/lib/sbitmap.c index 155fe38756ec..54f57cd117c6 100644 --- a/lib/sbitmap.c +++ b/lib/sbitmap.c | |||
| @@ -1,18 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) 2016 Facebook | 3 | * Copyright (C) 2016 Facebook |
| 3 | * Copyright (C) 2013-2014 Jens Axboe | 4 | * Copyright (C) 2013-2014 Jens Axboe |
| 4 | * | ||
| 5 | * This program is free software; you can redistribute it and/or | ||
| 6 | * modify it under the terms of the GNU General Public | ||
| 7 | * License v2 as 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 GNU | ||
| 12 | * 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 <https://www.gnu.org/licenses/>. | ||
| 16 | */ | 5 | */ |
| 17 | 6 | ||
| 18 | #include <linux/sched.h> | 7 | #include <linux/sched.h> |
| @@ -435,7 +424,7 @@ static void sbitmap_queue_update_wake_batch(struct sbitmap_queue *sbq, | |||
| 435 | * to ensure that the batch size is updated before the wait | 424 | * to ensure that the batch size is updated before the wait |
| 436 | * counts. | 425 | * counts. |
| 437 | */ | 426 | */ |
| 438 | smp_mb__before_atomic(); | 427 | smp_mb(); |
| 439 | for (i = 0; i < SBQ_WAIT_QUEUES; i++) | 428 | for (i = 0; i < SBQ_WAIT_QUEUES; i++) |
| 440 | atomic_set(&sbq->ws[i].wait_cnt, 1); | 429 | atomic_set(&sbq->ws[i].wait_cnt, 1); |
| 441 | } | 430 | } |
diff --git a/lib/sha256.c b/lib/sha256.c index 4400c832e2aa..d9af148d4349 100644 --- a/lib/sha256.c +++ b/lib/sha256.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * SHA-256, as specified in | 3 | * SHA-256, as specified in |
| 3 | * http://csrc.nist.gov/groups/STM/cavp/documents/shs/sha256-384-512.pdf | 4 | * http://csrc.nist.gov/groups/STM/cavp/documents/shs/sha256-384-512.pdf |
| @@ -8,11 +9,6 @@ | |||
| 8 | * Copyright (c) Andrew McDonald <andrew@mcdonald.org.uk> | 9 | * Copyright (c) Andrew McDonald <andrew@mcdonald.org.uk> |
| 9 | * Copyright (c) 2002 James Morris <jmorris@intercode.com.au> | 10 | * Copyright (c) 2002 James Morris <jmorris@intercode.com.au> |
| 10 | * Copyright (c) 2014 Red Hat Inc. | 11 | * Copyright (c) 2014 Red Hat Inc. |
| 11 | * | ||
| 12 | * This program is free software; you can redistribute it and/or modify it | ||
| 13 | * under the terms of the GNU General Public License as published by the Free | ||
| 14 | * Software Foundation; either version 2 of the License, or (at your option) | ||
| 15 | * any later version. | ||
| 16 | */ | 12 | */ |
| 17 | 13 | ||
| 18 | #include <linux/bitops.h> | 14 | #include <linux/bitops.h> |
diff --git a/lib/show_mem.c b/lib/show_mem.c index 6a042f53e7bb..5c86ef4c899f 100644 --- a/lib/show_mem.c +++ b/lib/show_mem.c | |||
| @@ -1,8 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Generic show_mem() implementation | 3 | * Generic show_mem() implementation |
| 3 | * | 4 | * |
| 4 | * Copyright (C) 2008 Johannes Weiner <hannes@saeurebad.de> | 5 | * Copyright (C) 2008 Johannes Weiner <hannes@saeurebad.de> |
| 5 | * All code subject to the GPL version 2. | ||
| 6 | */ | 6 | */ |
| 7 | 7 | ||
| 8 | #include <linux/mm.h> | 8 | #include <linux/mm.h> |
diff --git a/lib/sort.c b/lib/sort.c index 50855ea8c262..cf408aec3733 100644 --- a/lib/sort.c +++ b/lib/sort.c | |||
| @@ -43,8 +43,9 @@ static bool is_aligned(const void *base, size_t size, unsigned char align) | |||
| 43 | 43 | ||
| 44 | /** | 44 | /** |
| 45 | * swap_words_32 - swap two elements in 32-bit chunks | 45 | * swap_words_32 - swap two elements in 32-bit chunks |
| 46 | * @a, @b: pointers to the elements | 46 | * @a: pointer to the first element to swap |
| 47 | * @size: element size (must be a multiple of 4) | 47 | * @b: pointer to the second element to swap |
| 48 | * @n: element size (must be a multiple of 4) | ||
| 48 | * | 49 | * |
| 49 | * Exchange the two objects in memory. This exploits base+index addressing, | 50 | * Exchange the two objects in memory. This exploits base+index addressing, |
| 50 | * which basically all CPUs have, to minimize loop overhead computations. | 51 | * which basically all CPUs have, to minimize loop overhead computations. |
| @@ -65,8 +66,9 @@ static void swap_words_32(void *a, void *b, size_t n) | |||
| 65 | 66 | ||
| 66 | /** | 67 | /** |
| 67 | * swap_words_64 - swap two elements in 64-bit chunks | 68 | * swap_words_64 - swap two elements in 64-bit chunks |
| 68 | * @a, @b: pointers to the elements | 69 | * @a: pointer to the first element to swap |
| 69 | * @size: element size (must be a multiple of 8) | 70 | * @b: pointer to the second element to swap |
| 71 | * @n: element size (must be a multiple of 8) | ||
| 70 | * | 72 | * |
| 71 | * Exchange the two objects in memory. This exploits base+index | 73 | * Exchange the two objects in memory. This exploits base+index |
| 72 | * addressing, which basically all CPUs have, to minimize loop overhead | 74 | * addressing, which basically all CPUs have, to minimize loop overhead |
| @@ -100,8 +102,9 @@ static void swap_words_64(void *a, void *b, size_t n) | |||
| 100 | 102 | ||
| 101 | /** | 103 | /** |
| 102 | * swap_bytes - swap two elements a byte at a time | 104 | * swap_bytes - swap two elements a byte at a time |
| 103 | * @a, @b: pointers to the elements | 105 | * @a: pointer to the first element to swap |
| 104 | * @size: element size | 106 | * @b: pointer to the second element to swap |
| 107 | * @n: element size | ||
| 105 | * | 108 | * |
| 106 | * This is the fallback if alignment doesn't allow using larger chunks. | 109 | * This is the fallback if alignment doesn't allow using larger chunks. |
| 107 | */ | 110 | */ |
diff --git a/lib/stackdepot.c b/lib/stackdepot.c index 605c61f65d94..66cab785bea0 100644 --- a/lib/stackdepot.c +++ b/lib/stackdepot.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Generic stack depot for storing stack traces. | 3 | * Generic stack depot for storing stack traces. |
| 3 | * | 4 | * |
| @@ -16,16 +17,6 @@ | |||
| 16 | * Copyright (C) 2016 Google, Inc. | 17 | * Copyright (C) 2016 Google, Inc. |
| 17 | * | 18 | * |
| 18 | * Based on code by Dmitry Chernenkov. | 19 | * Based on code by Dmitry Chernenkov. |
| 19 | * | ||
| 20 | * This program is free software; you can redistribute it and/or | ||
| 21 | * modify it under the terms of the GNU General Public License | ||
| 22 | * version 2 as published by the Free Software Foundation. | ||
| 23 | * | ||
| 24 | * This program is distributed in the hope that it will be useful, but | ||
| 25 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 27 | * General Public License for more details. | ||
| 28 | * | ||
| 29 | */ | 20 | */ |
| 30 | 21 | ||
| 31 | #include <linux/gfp.h> | 22 | #include <linux/gfp.h> |
diff --git a/lib/stmp_device.c b/lib/stmp_device.c index a904656f4fd7..a4f77b6a91e3 100644 --- a/lib/stmp_device.c +++ b/lib/stmp_device.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Copyright (C) 1999 ARM Limited | 3 | * Copyright (C) 1999 ARM Limited |
| 3 | * Copyright (C) 2000 Deep Blue Solutions Ltd | 4 | * Copyright (C) 2000 Deep Blue Solutions Ltd |
| @@ -5,11 +6,6 @@ | |||
| 5 | * Copyright 2008 Juergen Beisert, kernel@pengutronix.de | 6 | * Copyright 2008 Juergen Beisert, kernel@pengutronix.de |
| 6 | * Copyright 2009 Ilya Yanok, Emcraft Systems Ltd, yanok@emcraft.com | 7 | * Copyright 2009 Ilya Yanok, Emcraft Systems Ltd, yanok@emcraft.com |
| 7 | * Copyright (C) 2011 Wolfram Sang, Pengutronix e.K. | 8 | * Copyright (C) 2011 Wolfram Sang, Pengutronix e.K. |
| 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 as published by | ||
| 11 | * the Free Software Foundation; either version 2 of the License, or | ||
| 12 | * (at your option) any later version. | ||
| 13 | */ | 9 | */ |
| 14 | 10 | ||
| 15 | #include <linux/io.h> | 11 | #include <linux/io.h> |
diff --git a/lib/test_bpf.c b/lib/test_bpf.c index 0845f635f404..c41705835cba 100644 --- a/lib/test_bpf.c +++ b/lib/test_bpf.c | |||
| @@ -1,16 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Testsuite for BPF interpreter and BPF JIT compiler | 3 | * Testsuite for BPF interpreter and BPF JIT compiler |
| 3 | * | 4 | * |
| 4 | * Copyright (c) 2011-2014 PLUMgrid, http://plumgrid.com | 5 | * Copyright (c) 2011-2014 PLUMgrid, http://plumgrid.com |
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or | ||
| 7 | * modify it under the terms of version 2 of the GNU General Public | ||
| 8 | * License as published by the Free Software Foundation. | ||
| 9 | * | ||
| 10 | * This program is distributed in the hope that it will be useful, but | ||
| 11 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 13 | * General Public License for more details. | ||
| 14 | */ | 6 | */ |
| 15 | 7 | ||
| 16 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 8 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/lib/test_firmware.c b/lib/test_firmware.c index 787c146eb485..83ea6c4e623c 100644 --- a/lib/test_firmware.c +++ b/lib/test_firmware.c | |||
| @@ -224,30 +224,30 @@ static ssize_t config_show(struct device *dev, | |||
| 224 | 224 | ||
| 225 | mutex_lock(&test_fw_mutex); | 225 | mutex_lock(&test_fw_mutex); |
| 226 | 226 | ||
| 227 | len += snprintf(buf, PAGE_SIZE, | 227 | len += scnprintf(buf, PAGE_SIZE - len, |
| 228 | "Custom trigger configuration for: %s\n", | 228 | "Custom trigger configuration for: %s\n", |
| 229 | dev_name(dev)); | 229 | dev_name(dev)); |
| 230 | 230 | ||
| 231 | if (test_fw_config->name) | 231 | if (test_fw_config->name) |
| 232 | len += snprintf(buf+len, PAGE_SIZE, | 232 | len += scnprintf(buf+len, PAGE_SIZE - len, |
| 233 | "name:\t%s\n", | 233 | "name:\t%s\n", |
| 234 | test_fw_config->name); | 234 | test_fw_config->name); |
| 235 | else | 235 | else |
| 236 | len += snprintf(buf+len, PAGE_SIZE, | 236 | len += scnprintf(buf+len, PAGE_SIZE - len, |
| 237 | "name:\tEMTPY\n"); | 237 | "name:\tEMTPY\n"); |
| 238 | 238 | ||
| 239 | len += snprintf(buf+len, PAGE_SIZE, | 239 | len += scnprintf(buf+len, PAGE_SIZE - len, |
| 240 | "num_requests:\t%u\n", test_fw_config->num_requests); | 240 | "num_requests:\t%u\n", test_fw_config->num_requests); |
| 241 | 241 | ||
| 242 | len += snprintf(buf+len, PAGE_SIZE, | 242 | len += scnprintf(buf+len, PAGE_SIZE - len, |
| 243 | "send_uevent:\t\t%s\n", | 243 | "send_uevent:\t\t%s\n", |
| 244 | test_fw_config->send_uevent ? | 244 | test_fw_config->send_uevent ? |
| 245 | "FW_ACTION_HOTPLUG" : | 245 | "FW_ACTION_HOTPLUG" : |
| 246 | "FW_ACTION_NOHOTPLUG"); | 246 | "FW_ACTION_NOHOTPLUG"); |
| 247 | len += snprintf(buf+len, PAGE_SIZE, | 247 | len += scnprintf(buf+len, PAGE_SIZE - len, |
| 248 | "sync_direct:\t\t%s\n", | 248 | "sync_direct:\t\t%s\n", |
| 249 | test_fw_config->sync_direct ? "true" : "false"); | 249 | test_fw_config->sync_direct ? "true" : "false"); |
| 250 | len += snprintf(buf+len, PAGE_SIZE, | 250 | len += scnprintf(buf+len, PAGE_SIZE - len, |
| 251 | "read_fw_idx:\t%u\n", test_fw_config->read_fw_idx); | 251 | "read_fw_idx:\t%u\n", test_fw_config->read_fw_idx); |
| 252 | 252 | ||
| 253 | mutex_unlock(&test_fw_mutex); | 253 | mutex_unlock(&test_fw_mutex); |
diff --git a/lib/test_stackinit.c b/lib/test_stackinit.c index 13115b6f2b88..e97dc54b4fdf 100644 --- a/lib/test_stackinit.c +++ b/lib/test_stackinit.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | // SPDX-Licenses: GPLv2 | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* | 2 | /* |
| 3 | * Test cases for compiler-based stack variable zeroing via future | 3 | * Test cases for compiler-based stack variable zeroing via future |
| 4 | * compiler flags or CONFIG_GCC_PLUGIN_STRUCTLEAK*. | 4 | * compiler flags or CONFIG_GCC_PLUGIN_STRUCTLEAK*. |
diff --git a/lib/test_static_key_base.c b/lib/test_static_key_base.c index 729447aea02f..5089a2e2bdd8 100644 --- a/lib/test_static_key_base.c +++ b/lib/test_static_key_base.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Kernel module for testing static keys. | 3 | * Kernel module for testing static keys. |
| 3 | * | 4 | * |
| @@ -5,15 +6,6 @@ | |||
| 5 | * | 6 | * |
| 6 | * Authors: | 7 | * Authors: |
| 7 | * Jason Baron <jbaron@akamai.com> | 8 | * Jason Baron <jbaron@akamai.com> |
| 8 | * | ||
| 9 | * This software is licensed under the terms of the GNU General Public | ||
| 10 | * License version 2, as published by the Free Software Foundation, and | ||
| 11 | * may be copied, distributed, and modified under those terms. | ||
| 12 | * | ||
| 13 | * This program is distributed in the hope that it will be useful, | ||
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 16 | * GNU General Public License for more details. | ||
| 17 | */ | 9 | */ |
| 18 | 10 | ||
| 19 | #include <linux/module.h> | 11 | #include <linux/module.h> |
diff --git a/lib/test_static_keys.c b/lib/test_static_keys.c index 915d75df2086..42daa74be029 100644 --- a/lib/test_static_keys.c +++ b/lib/test_static_keys.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Kernel module for testing static keys. | 3 | * Kernel module for testing static keys. |
| 3 | * | 4 | * |
| @@ -5,15 +6,6 @@ | |||
| 5 | * | 6 | * |
| 6 | * Authors: | 7 | * Authors: |
| 7 | * Jason Baron <jbaron@akamai.com> | 8 | * Jason Baron <jbaron@akamai.com> |
| 8 | * | ||
| 9 | * This software is licensed under the terms of the GNU General Public | ||
| 10 | * License version 2, as published by the Free Software Foundation, and | ||
| 11 | * may be copied, distributed, and modified under those terms. | ||
| 12 | * | ||
| 13 | * This program is distributed in the hope that it will be useful, | ||
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 16 | * GNU General Public License for more details. | ||
| 17 | */ | 9 | */ |
| 18 | 10 | ||
| 19 | #include <linux/module.h> | 11 | #include <linux/module.h> |
diff --git a/lib/test_user_copy.c b/lib/test_user_copy.c index e161f0498f42..67bcd5dfd847 100644 --- a/lib/test_user_copy.c +++ b/lib/test_user_copy.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Kernel module for testing copy_to/from_user infrastructure. | 3 | * Kernel module for testing copy_to/from_user infrastructure. |
| 3 | * | 4 | * |
| @@ -5,15 +6,6 @@ | |||
| 5 | * | 6 | * |
| 6 | * Authors: | 7 | * Authors: |
| 7 | * Kees Cook <keescook@chromium.org> | 8 | * Kees Cook <keescook@chromium.org> |
| 8 | * | ||
| 9 | * This software is licensed under the terms of the GNU General Public | ||
| 10 | * License version 2, as published by the Free Software Foundation, and | ||
| 11 | * may be copied, distributed, and modified under those terms. | ||
| 12 | * | ||
| 13 | * This program is distributed in the hope that it will be useful, | ||
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 16 | * GNU General Public License for more details. | ||
| 17 | */ | 9 | */ |
| 18 | 10 | ||
| 19 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 11 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/lib/textsearch.c b/lib/textsearch.c index 5939549c0e7b..4f16eec5d554 100644 --- a/lib/textsearch.c +++ b/lib/textsearch.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * lib/textsearch.c Generic text search interface | 3 | * lib/textsearch.c Generic text search interface |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute it and/or | ||
| 5 | * modify it under the terms of the GNU General Public License | ||
| 6 | * as published by the Free Software Foundation; either version | ||
| 7 | * 2 of the License, or (at your option) any later version. | ||
| 8 | * | ||
| 9 | * Authors: Thomas Graf <tgraf@suug.ch> | 5 | * Authors: Thomas Graf <tgraf@suug.ch> |
| 10 | * Pablo Neira Ayuso <pablo@netfilter.org> | 6 | * Pablo Neira Ayuso <pablo@netfilter.org> |
| 11 | * | 7 | * |
diff --git a/lib/timerqueue.c b/lib/timerqueue.c index 0d54bcbc8170..bc7e64df27df 100644 --- a/lib/timerqueue.c +++ b/lib/timerqueue.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * Generic Timer-queue | 3 | * Generic Timer-queue |
| 3 | * | 4 | * |
| @@ -6,20 +7,6 @@ | |||
| 6 | * | 7 | * |
| 7 | * NOTE: All of the following functions need to be serialized | 8 | * NOTE: All of the following functions need to be serialized |
| 8 | * to avoid races. No locking is done by this library code. | 9 | * to avoid races. No locking is done by this library code. |
| 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 | */ | 10 | */ |
| 24 | 11 | ||
| 25 | #include <linux/bug.h> | 12 | #include <linux/bug.h> |
diff --git a/lib/ts_bm.c b/lib/ts_bm.c index 9e66ee4020e9..b352903c50e3 100644 --- a/lib/ts_bm.c +++ b/lib/ts_bm.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * lib/ts_bm.c Boyer-Moore text search implementation | 3 | * lib/ts_bm.c Boyer-Moore text search implementation |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute it and/or | ||
| 5 | * modify it under the terms of the GNU General Public License | ||
| 6 | * as published by the Free Software Foundation; either version | ||
| 7 | * 2 of the License, or (at your option) any later version. | ||
| 8 | * | ||
| 9 | * Authors: Pablo Neira Ayuso <pablo@eurodev.net> | 5 | * Authors: Pablo Neira Ayuso <pablo@eurodev.net> |
| 10 | * | 6 | * |
| 11 | * ========================================================================== | 7 | * ========================================================================== |
diff --git a/lib/ts_fsm.c b/lib/ts_fsm.c index 69557c74ef9f..9c873cadab7c 100644 --- a/lib/ts_fsm.c +++ b/lib/ts_fsm.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * lib/ts_fsm.c A naive finite state machine text search approach | 3 | * lib/ts_fsm.c A naive finite state machine text search approach |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute it and/or | ||
| 5 | * modify it under the terms of the GNU General Public License | ||
| 6 | * as published by the Free Software Foundation; either version | ||
| 7 | * 2 of the License, or (at your option) any later version. | ||
| 8 | * | ||
| 9 | * Authors: Thomas Graf <tgraf@suug.ch> | 5 | * Authors: Thomas Graf <tgraf@suug.ch> |
| 10 | * | 6 | * |
| 11 | * ========================================================================== | 7 | * ========================================================================== |
diff --git a/lib/ts_kmp.c b/lib/ts_kmp.c index ffbe66cbb0ed..94617e014b3a 100644 --- a/lib/ts_kmp.c +++ b/lib/ts_kmp.c | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * lib/ts_kmp.c Knuth-Morris-Pratt text search implementation | 3 | * lib/ts_kmp.c Knuth-Morris-Pratt text search implementation |
| 3 | * | 4 | * |
| 4 | * This program is free software; you can redistribute it and/or | ||
| 5 | * modify it under the terms of the GNU General Public License | ||
| 6 | * as published by the Free Software Foundation; either version | ||
| 7 | * 2 of the License, or (at your option) any later version. | ||
| 8 | * | ||
| 9 | * Authors: Thomas Graf <tgraf@suug.ch> | 5 | * Authors: Thomas Graf <tgraf@suug.ch> |
| 10 | * | 6 | * |
| 11 | * ========================================================================== | 7 | * ========================================================================== |
diff --git a/lib/ucmpdi2.c b/lib/ucmpdi2.c index 597998169a96..726e394c9fcc 100644 --- a/lib/ucmpdi2.c +++ b/lib/ucmpdi2.c | |||
| @@ -1,17 +1,5 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation; either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | ||
| 7 | * This program is distributed in the hope that it will be useful, | ||
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 10 | * GNU General Public License for more details. | ||
| 11 | * | ||
| 12 | * You should have received a copy of the GNU General Public License | ||
| 13 | * along with this program; if not, see the file COPYING, or write | ||
| 14 | * to the Free Software Foundation, Inc. | ||
| 15 | */ | 3 | */ |
| 16 | 4 | ||
| 17 | #include <linux/module.h> | 5 | #include <linux/module.h> |
diff --git a/lib/uuid.c b/lib/uuid.c index 2290b9f001a9..b6a1edb61d87 100644 --- a/lib/uuid.c +++ b/lib/uuid.c | |||
| @@ -1,17 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Unified UUID/GUID definition | 3 | * Unified UUID/GUID definition |
| 3 | * | 4 | * |
| 4 | * Copyright (C) 2009, 2016 Intel Corp. | 5 | * Copyright (C) 2009, 2016 Intel Corp. |
| 5 | * Huang Ying <ying.huang@intel.com> | 6 | * Huang Ying <ying.huang@intel.com> |
| 6 | * | ||
| 7 | * This program is free software; you can redistribute it and/or | ||
| 8 | * modify it under the terms of the GNU General Public License version | ||
| 9 | * 2 as published by the Free Software Foundation; | ||
| 10 | * | ||
| 11 | * This program is distributed in the hope that it will be useful, | ||
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | * GNU General Public License for more details. | ||
| 15 | */ | 7 | */ |
| 16 | 8 | ||
| 17 | #include <linux/kernel.h> | 9 | #include <linux/kernel.h> |
