diff options
Diffstat (limited to 'lib')
92 files changed, 109 insertions, 407 deletions
diff --git a/lib/842/Makefile b/lib/842/Makefile index 5d24c0baff2e..6f7aad269288 100644 --- a/lib/842/Makefile +++ b/lib/842/Makefile | |||
| @@ -1,2 +1,3 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | obj-$(CONFIG_842_COMPRESS) += 842_compress.o | 2 | obj-$(CONFIG_842_COMPRESS) += 842_compress.o |
| 2 | obj-$(CONFIG_842_DECOMPRESS) += 842_decompress.o | 3 | obj-$(CONFIG_842_DECOMPRESS) += 842_decompress.o |
diff --git a/lib/Kconfig b/lib/Kconfig index 8d9239a4156c..90623a0e1942 100644 --- a/lib/Kconfig +++ b/lib/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Library configuration | 3 | # Library configuration |
| 3 | # | 4 | # |
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index eae43952902e..cbdfae379896 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | menu "Kernel hacking" | 2 | menu "Kernel hacking" |
| 2 | 3 | ||
| 3 | menu "printk and dmesg options" | 4 | menu "printk and dmesg options" |
diff --git a/lib/Kconfig.kasan b/lib/Kconfig.kasan index 9950b660e62d..4fafba1a923b 100644 --- a/lib/Kconfig.kasan +++ b/lib/Kconfig.kasan | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # This config refers to the generic KASAN mode. | 2 | # This config refers to the generic KASAN mode. |
| 2 | config HAVE_ARCH_KASAN | 3 | config HAVE_ARCH_KASAN |
| 3 | bool | 4 | bool |
diff --git a/lib/Kconfig.kgdb b/lib/Kconfig.kgdb index ab4ff0eea776..bbe397df04a3 100644 --- a/lib/Kconfig.kgdb +++ b/lib/Kconfig.kgdb | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | 2 | ||
| 2 | config HAVE_ARCH_KGDB | 3 | config HAVE_ARCH_KGDB |
| 3 | bool | 4 | bool |
diff --git a/lib/Kconfig.ubsan b/lib/Kconfig.ubsan index a2ae4a8e4fa6..0e04fcb3ab3d 100644 --- a/lib/Kconfig.ubsan +++ b/lib/Kconfig.ubsan | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | config ARCH_HAS_UBSAN_SANITIZE_ALL | 2 | config ARCH_HAS_UBSAN_SANITIZE_ALL |
| 2 | bool | 3 | bool |
| 3 | 4 | ||
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/bitrev.c b/lib/bitrev.c index 40ffda94cc5d..81b56e0a7f32 100644 --- a/lib/bitrev.c +++ b/lib/bitrev.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #ifndef CONFIG_HAVE_ARCH_BITREVERSE | 2 | #ifndef CONFIG_HAVE_ARCH_BITREVERSE |
| 2 | #include <linux/types.h> | 3 | #include <linux/types.h> |
| 3 | #include <linux/module.h> | 4 | #include <linux/module.h> |
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/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/debug_locks.c b/lib/debug_locks.c index ce51749cc145..a75ee30b77cb 100644 --- a/lib/debug_locks.c +++ b/lib/debug_locks.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * lib/debug_locks.c | 3 | * lib/debug_locks.c |
| 3 | * | 4 | * |
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/fault-inject.c b/lib/fault-inject.c index e26aa4f65eb9..3cb21b2bf088 100644 --- a/lib/fault-inject.c +++ b/lib/fault-inject.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #include <linux/kernel.h> | 2 | #include <linux/kernel.h> |
| 2 | #include <linux/init.h> | 3 | #include <linux/init.h> |
| 3 | #include <linux/random.h> | 4 | #include <linux/random.h> |
diff --git a/lib/fonts/Kconfig b/lib/fonts/Kconfig index 3ecdd5204ec5..37baa79cdd71 100644 --- a/lib/fonts/Kconfig +++ b/lib/fonts/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # Font configuration | 3 | # Font configuration |
| 3 | # | 4 | # |
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #include <linux/bitmap.h> | 2 | #include <linux/bitmap.h> |
| 2 | #include <linux/bug.h> | 3 | #include <linux/bug.h> |
| 3 | #include <linux/export.h> | 4 | #include <linux/export.h> |
diff --git a/lib/interval_tree.c b/lib/interval_tree.c index c85f6600a5f8..593ce56ece50 100644 --- a/lib/interval_tree.c +++ b/lib/interval_tree.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #include <linux/interval_tree.h> | 2 | #include <linux/interval_tree.h> |
| 2 | #include <linux/interval_tree_generic.h> | 3 | #include <linux/interval_tree_generic.h> |
| 3 | #include <linux/compiler.h> | 4 | #include <linux/compiler.h> |
diff --git a/lib/interval_tree_test.c b/lib/interval_tree_test.c index 75509a1511a3..f37f4d44faa9 100644 --- a/lib/interval_tree_test.c +++ b/lib/interval_tree_test.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #include <linux/module.h> | 2 | #include <linux/module.h> |
| 2 | #include <linux/moduleparam.h> | 3 | #include <linux/moduleparam.h> |
| 3 | #include <linux/interval_tree.h> | 4 | #include <linux/interval_tree.h> |
diff --git a/lib/iov_iter.c b/lib/iov_iter.c index f74fa832f3aa..f99c41d4eb54 100644 --- a/lib/iov_iter.c +++ b/lib/iov_iter.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #include <linux/export.h> | 2 | #include <linux/export.h> |
| 2 | #include <linux/bvec.h> | 3 | #include <linux/bvec.h> |
| 3 | #include <linux/uio.h> | 4 | #include <linux/uio.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/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/lz4/Makefile b/lib/lz4/Makefile index f7b113271d13..5b42242afaa2 100644 --- a/lib/lz4/Makefile +++ b/lib/lz4/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | ccflags-y += -O3 | 2 | ccflags-y += -O3 |
| 2 | 3 | ||
| 3 | obj-$(CONFIG_LZ4_COMPRESS) += lz4_compress.o | 4 | obj-$(CONFIG_LZ4_COMPRESS) += lz4_compress.o |
diff --git a/lib/lzo/Makefile b/lib/lzo/Makefile index f0f7d7ca2b83..2f58fafbbddd 100644 --- a/lib/lzo/Makefile +++ b/lib/lzo/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | lzo_compress-objs := lzo1x_compress.o | 2 | lzo_compress-objs := lzo1x_compress.o |
| 2 | lzo_decompress-objs := lzo1x_decompress_safe.o | 3 | lzo_decompress-objs := lzo1x_decompress_safe.o |
| 3 | 4 | ||
diff --git a/lib/lzo/lzo1x_compress.c b/lib/lzo/lzo1x_compress.c index a8ede77afe0d..ba16c08e8cb9 100644 --- a/lib/lzo/lzo1x_compress.c +++ b/lib/lzo/lzo1x_compress.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * LZO1X Compressor from LZO | 3 | * LZO1X Compressor from LZO |
| 3 | * | 4 | * |
diff --git a/lib/lzo/lzo1x_decompress_safe.c b/lib/lzo/lzo1x_decompress_safe.c index 9e07e9ef1aad..2717c7963acd 100644 --- a/lib/lzo/lzo1x_decompress_safe.c +++ b/lib/lzo/lzo1x_decompress_safe.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * LZO1X Decompressor from LZO | 3 | * LZO1X Decompressor from LZO |
| 3 | * | 4 | * |
diff --git a/lib/math/Kconfig b/lib/math/Kconfig index 73bdf37178d1..15bd50d92308 100644 --- a/lib/math/Kconfig +++ b/lib/math/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | config CORDIC | 2 | config CORDIC |
| 2 | tristate "CORDIC algorithm" | 3 | tristate "CORDIC algorithm" |
| 3 | help | 4 | help |
diff --git a/lib/math/Makefile b/lib/math/Makefile index 583bbfebfc09..be6909e943bd 100644 --- a/lib/math/Makefile +++ b/lib/math/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | obj-y += div64.o gcd.o lcm.o int_pow.o int_sqrt.o reciprocal_div.o | 2 | obj-y += div64.o gcd.o lcm.o int_pow.o int_sqrt.o reciprocal_div.o |
| 2 | 3 | ||
| 3 | obj-$(CONFIG_CORDIC) += cordic.o | 4 | obj-$(CONFIG_CORDIC) += cordic.o |
diff --git a/lib/math/gcd.c b/lib/math/gcd.c index 7948ab27f0a4..e3b042214d1b 100644 --- a/lib/math/gcd.c +++ b/lib/math/gcd.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #include <linux/kernel.h> | 2 | #include <linux/kernel.h> |
| 2 | #include <linux/gcd.h> | 3 | #include <linux/gcd.h> |
| 3 | #include <linux/export.h> | 4 | #include <linux/export.h> |
diff --git a/lib/math/lcm.c b/lib/math/lcm.c index 03d7fcb420b5..6e0b2e736700 100644 --- a/lib/math/lcm.c +++ b/lib/math/lcm.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #include <linux/compiler.h> | 2 | #include <linux/compiler.h> |
| 2 | #include <linux/gcd.h> | 3 | #include <linux/gcd.h> |
| 3 | #include <linux/export.h> | 4 | #include <linux/export.h> |
diff --git a/lib/math/prime_numbers.c b/lib/math/prime_numbers.c index 550eec457c2e..052f5b727be7 100644 --- a/lib/math/prime_numbers.c +++ b/lib/math/prime_numbers.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #define pr_fmt(fmt) "prime numbers: " fmt "\n" | 2 | #define pr_fmt(fmt) "prime numbers: " fmt "\n" |
| 2 | 3 | ||
| 3 | #include <linux/module.h> | 4 | #include <linux/module.h> |
diff --git a/lib/memory-notifier-error-inject.c b/lib/memory-notifier-error-inject.c index e6239bf0b0df..2c46dde59644 100644 --- a/lib/memory-notifier-error-inject.c +++ b/lib/memory-notifier-error-inject.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #include <linux/kernel.h> | 2 | #include <linux/kernel.h> |
| 2 | #include <linux/module.h> | 3 | #include <linux/module.h> |
| 3 | #include <linux/memory.h> | 4 | #include <linux/memory.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/netdev-notifier-error-inject.c b/lib/netdev-notifier-error-inject.c index 13e9c62e216f..bb930f279e90 100644 --- a/lib/netdev-notifier-error-inject.c +++ b/lib/netdev-notifier-error-inject.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #include <linux/kernel.h> | 2 | #include <linux/kernel.h> |
| 2 | #include <linux/module.h> | 3 | #include <linux/module.h> |
| 3 | #include <linux/netdevice.h> | 4 | #include <linux/netdevice.h> |
diff --git a/lib/notifier-error-inject.c b/lib/notifier-error-inject.c index eb4a04afea80..3d2ba7cf83f4 100644 --- a/lib/notifier-error-inject.c +++ b/lib/notifier-error-inject.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #include <linux/module.h> | 2 | #include <linux/module.h> |
| 2 | 3 | ||
| 3 | #include "notifier-error-inject.h" | 4 | #include "notifier-error-inject.h" |
diff --git a/lib/of-reconfig-notifier-error-inject.c b/lib/of-reconfig-notifier-error-inject.c index 8dc79861758a..b26f16402a19 100644 --- a/lib/of-reconfig-notifier-error-inject.c +++ b/lib/of-reconfig-notifier-error-inject.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #include <linux/kernel.h> | 2 | #include <linux/kernel.h> |
| 2 | #include <linux/module.h> | 3 | #include <linux/module.h> |
| 3 | #include <linux/of.h> | 4 | #include <linux/of.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/percpu-refcount.c b/lib/percpu-refcount.c index da54318d3b55..071a76c7bac0 100644 --- a/lib/percpu-refcount.c +++ b/lib/percpu-refcount.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #define pr_fmt(fmt) "%s: " fmt "\n", __func__ | 2 | #define pr_fmt(fmt) "%s: " fmt "\n", __func__ |
| 2 | 3 | ||
| 3 | #include <linux/kernel.h> | 4 | #include <linux/kernel.h> |
diff --git a/lib/percpu_test.c b/lib/percpu_test.c index 0b5d14dadd1a..4a3d70bbc1a0 100644 --- a/lib/percpu_test.c +++ b/lib/percpu_test.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #include <linux/module.h> | 2 | #include <linux/module.h> |
| 2 | 3 | ||
| 3 | /* validate @native and @pcp counter values match @expected */ | 4 | /* validate @native and @pcp counter values match @expected */ |
diff --git a/lib/plist.c b/lib/plist.c index d3bd8827186f..0d86ed7a76ac 100644 --- a/lib/plist.c +++ b/lib/plist.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | /* | 2 | /* |
| 2 | * lib/plist.c | 3 | * lib/plist.c |
| 3 | * | 4 | * |
| @@ -14,8 +15,6 @@ | |||
| 14 | * Simplifications of the original code by | 15 | * Simplifications of the original code by |
| 15 | * Oleg Nesterov <oleg@tv-sign.ru> | 16 | * Oleg Nesterov <oleg@tv-sign.ru> |
| 16 | * | 17 | * |
| 17 | * Licensed under the FSF's GNU Public License v2 or later. | ||
| 18 | * | ||
| 19 | * Based on simple lists (include/linux/list.h). | 18 | * Based on simple lists (include/linux/list.h). |
| 20 | * | 19 | * |
| 21 | * This file contains the add / del functions which are considered to | 20 | * This file contains the add / del functions which are considered to |
diff --git a/lib/pm-notifier-error-inject.c b/lib/pm-notifier-error-inject.c index c094b2dedc23..5d89f0d9099a 100644 --- a/lib/pm-notifier-error-inject.c +++ b/lib/pm-notifier-error-inject.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #include <linux/kernel.h> | 2 | #include <linux/kernel.h> |
| 2 | #include <linux/module.h> | 3 | #include <linux/module.h> |
| 3 | #include <linux/suspend.h> | 4 | #include <linux/suspend.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/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/random32.c b/lib/random32.c index 4aaa76404d56..763b920a6206 100644 --- a/lib/random32.c +++ b/lib/random32.c | |||
| @@ -171,9 +171,9 @@ static void prandom_seed_early(struct rnd_state *state, u32 seed, | |||
| 171 | 171 | ||
| 172 | /** | 172 | /** |
| 173 | * prandom_seed - add entropy to pseudo random number generator | 173 | * prandom_seed - add entropy to pseudo random number generator |
| 174 | * @seed: seed value | 174 | * @entropy: entropy value |
| 175 | * | 175 | * |
| 176 | * Add some additional seeding to the prandom pool. | 176 | * Add some additional entropy to the prandom pool. |
| 177 | */ | 177 | */ |
| 178 | void prandom_seed(u32 entropy) | 178 | void prandom_seed(u32 entropy) |
| 179 | { | 179 | { |
diff --git a/lib/rbtree_test.c b/lib/rbtree_test.c index b7055b2a07d3..62b8ee92643d 100644 --- a/lib/rbtree_test.c +++ b/lib/rbtree_test.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #include <linux/module.h> | 2 | #include <linux/module.h> |
| 2 | #include <linux/moduleparam.h> | 3 | #include <linux/moduleparam.h> |
| 3 | #include <linux/rbtree_augmented.h> | 4 | #include <linux/rbtree_augmented.h> |
diff --git a/lib/reed_solomon/Makefile b/lib/reed_solomon/Makefile index c3d7136827ed..ba9d7a3329eb 100644 --- a/lib/reed_solomon/Makefile +++ b/lib/reed_solomon/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # This is a modified version of reed solomon lib, | 3 | # This is a modified version of reed solomon lib, |
| 3 | # | 4 | # |
diff --git a/lib/rhashtable.c b/lib/rhashtable.c index 6529fe1b45c1..935ec80f213f 100644 --- a/lib/rhashtable.c +++ b/lib/rhashtable.c | |||
| @@ -34,7 +34,7 @@ | |||
| 34 | 34 | ||
| 35 | union nested_table { | 35 | union nested_table { |
| 36 | union nested_table __rcu *table; | 36 | union nested_table __rcu *table; |
| 37 | struct rhash_lock_head __rcu *bucket; | 37 | struct rhash_lock_head *bucket; |
| 38 | }; | 38 | }; |
| 39 | 39 | ||
| 40 | static u32 head_hashfn(struct rhashtable *ht, | 40 | static u32 head_hashfn(struct rhashtable *ht, |
| @@ -131,7 +131,7 @@ static union nested_table *nested_table_alloc(struct rhashtable *ht, | |||
| 131 | INIT_RHT_NULLS_HEAD(ntbl[i].bucket); | 131 | INIT_RHT_NULLS_HEAD(ntbl[i].bucket); |
| 132 | } | 132 | } |
| 133 | 133 | ||
| 134 | if (cmpxchg(prev, NULL, ntbl) == NULL) | 134 | if (cmpxchg((union nested_table **)prev, NULL, ntbl) == NULL) |
| 135 | return ntbl; | 135 | return ntbl; |
| 136 | /* Raced with another thread. */ | 136 | /* Raced with another thread. */ |
| 137 | kfree(ntbl); | 137 | kfree(ntbl); |
| @@ -216,7 +216,7 @@ static struct bucket_table *rhashtable_last_table(struct rhashtable *ht, | |||
| 216 | } | 216 | } |
| 217 | 217 | ||
| 218 | static int rhashtable_rehash_one(struct rhashtable *ht, | 218 | static int rhashtable_rehash_one(struct rhashtable *ht, |
| 219 | struct rhash_lock_head __rcu **bkt, | 219 | struct rhash_lock_head **bkt, |
| 220 | unsigned int old_hash) | 220 | unsigned int old_hash) |
| 221 | { | 221 | { |
| 222 | struct bucket_table *old_tbl = rht_dereference(ht->tbl, ht); | 222 | struct bucket_table *old_tbl = rht_dereference(ht->tbl, ht); |
| @@ -269,7 +269,7 @@ static int rhashtable_rehash_chain(struct rhashtable *ht, | |||
| 269 | unsigned int old_hash) | 269 | unsigned int old_hash) |
| 270 | { | 270 | { |
| 271 | struct bucket_table *old_tbl = rht_dereference(ht->tbl, ht); | 271 | struct bucket_table *old_tbl = rht_dereference(ht->tbl, ht); |
| 272 | struct rhash_lock_head __rcu **bkt = rht_bucket_var(old_tbl, old_hash); | 272 | struct rhash_lock_head **bkt = rht_bucket_var(old_tbl, old_hash); |
| 273 | int err; | 273 | int err; |
| 274 | 274 | ||
| 275 | if (!bkt) | 275 | if (!bkt) |
| @@ -296,7 +296,8 @@ static int rhashtable_rehash_attach(struct rhashtable *ht, | |||
| 296 | * rcu_assign_pointer(). | 296 | * rcu_assign_pointer(). |
| 297 | */ | 297 | */ |
| 298 | 298 | ||
| 299 | if (cmpxchg(&old_tbl->future_tbl, NULL, new_tbl) != NULL) | 299 | if (cmpxchg((struct bucket_table **)&old_tbl->future_tbl, NULL, |
| 300 | new_tbl) != NULL) | ||
| 300 | return -EEXIST; | 301 | return -EEXIST; |
| 301 | 302 | ||
| 302 | return 0; | 303 | return 0; |
| @@ -478,7 +479,7 @@ fail: | |||
| 478 | } | 479 | } |
| 479 | 480 | ||
| 480 | static void *rhashtable_lookup_one(struct rhashtable *ht, | 481 | static void *rhashtable_lookup_one(struct rhashtable *ht, |
| 481 | struct rhash_lock_head __rcu **bkt, | 482 | struct rhash_lock_head **bkt, |
| 482 | struct bucket_table *tbl, unsigned int hash, | 483 | struct bucket_table *tbl, unsigned int hash, |
| 483 | const void *key, struct rhash_head *obj) | 484 | const void *key, struct rhash_head *obj) |
| 484 | { | 485 | { |
| @@ -529,7 +530,7 @@ static void *rhashtable_lookup_one(struct rhashtable *ht, | |||
| 529 | } | 530 | } |
| 530 | 531 | ||
| 531 | static struct bucket_table *rhashtable_insert_one(struct rhashtable *ht, | 532 | static struct bucket_table *rhashtable_insert_one(struct rhashtable *ht, |
| 532 | struct rhash_lock_head __rcu **bkt, | 533 | struct rhash_lock_head **bkt, |
| 533 | struct bucket_table *tbl, | 534 | struct bucket_table *tbl, |
| 534 | unsigned int hash, | 535 | unsigned int hash, |
| 535 | struct rhash_head *obj, | 536 | struct rhash_head *obj, |
| @@ -584,7 +585,7 @@ static void *rhashtable_try_insert(struct rhashtable *ht, const void *key, | |||
| 584 | { | 585 | { |
| 585 | struct bucket_table *new_tbl; | 586 | struct bucket_table *new_tbl; |
| 586 | struct bucket_table *tbl; | 587 | struct bucket_table *tbl; |
| 587 | struct rhash_lock_head __rcu **bkt; | 588 | struct rhash_lock_head **bkt; |
| 588 | unsigned int hash; | 589 | unsigned int hash; |
| 589 | void *data; | 590 | void *data; |
| 590 | 591 | ||
| @@ -1166,8 +1167,8 @@ void rhashtable_destroy(struct rhashtable *ht) | |||
| 1166 | } | 1167 | } |
| 1167 | EXPORT_SYMBOL_GPL(rhashtable_destroy); | 1168 | EXPORT_SYMBOL_GPL(rhashtable_destroy); |
| 1168 | 1169 | ||
| 1169 | struct rhash_lock_head __rcu **__rht_bucket_nested(const struct bucket_table *tbl, | 1170 | struct rhash_lock_head **__rht_bucket_nested(const struct bucket_table *tbl, |
| 1170 | unsigned int hash) | 1171 | unsigned int hash) |
| 1171 | { | 1172 | { |
| 1172 | const unsigned int shift = PAGE_SHIFT - ilog2(sizeof(void *)); | 1173 | const unsigned int shift = PAGE_SHIFT - ilog2(sizeof(void *)); |
| 1173 | unsigned int index = hash & ((1 << tbl->nest) - 1); | 1174 | unsigned int index = hash & ((1 << tbl->nest) - 1); |
| @@ -1195,10 +1196,10 @@ struct rhash_lock_head __rcu **__rht_bucket_nested(const struct bucket_table *tb | |||
| 1195 | } | 1196 | } |
| 1196 | EXPORT_SYMBOL_GPL(__rht_bucket_nested); | 1197 | EXPORT_SYMBOL_GPL(__rht_bucket_nested); |
| 1197 | 1198 | ||
| 1198 | struct rhash_lock_head __rcu **rht_bucket_nested(const struct bucket_table *tbl, | 1199 | struct rhash_lock_head **rht_bucket_nested(const struct bucket_table *tbl, |
| 1199 | unsigned int hash) | 1200 | unsigned int hash) |
| 1200 | { | 1201 | { |
| 1201 | static struct rhash_lock_head __rcu *rhnull; | 1202 | static struct rhash_lock_head *rhnull; |
| 1202 | 1203 | ||
| 1203 | if (!rhnull) | 1204 | if (!rhnull) |
| 1204 | INIT_RHT_NULLS_HEAD(rhnull); | 1205 | INIT_RHT_NULLS_HEAD(rhnull); |
| @@ -1206,9 +1207,9 @@ struct rhash_lock_head __rcu **rht_bucket_nested(const struct bucket_table *tbl, | |||
| 1206 | } | 1207 | } |
| 1207 | EXPORT_SYMBOL_GPL(rht_bucket_nested); | 1208 | EXPORT_SYMBOL_GPL(rht_bucket_nested); |
| 1208 | 1209 | ||
| 1209 | struct rhash_lock_head __rcu **rht_bucket_nested_insert(struct rhashtable *ht, | 1210 | struct rhash_lock_head **rht_bucket_nested_insert(struct rhashtable *ht, |
| 1210 | struct bucket_table *tbl, | 1211 | struct bucket_table *tbl, |
| 1211 | unsigned int hash) | 1212 | unsigned int hash) |
| 1212 | { | 1213 | { |
| 1213 | const unsigned int shift = PAGE_SHIFT - ilog2(sizeof(void *)); | 1214 | const unsigned int shift = PAGE_SHIFT - ilog2(sizeof(void *)); |
| 1214 | unsigned int index = hash & ((1 << tbl->nest) - 1); | 1215 | unsigned int index = hash & ((1 << tbl->nest) - 1); |
diff --git a/lib/sbitmap.c b/lib/sbitmap.c index 155fe38756ec..4a7fc4915dfc 100644 --- a/lib/sbitmap.c +++ b/lib/sbitmap.c | |||
| @@ -435,7 +435,7 @@ static void sbitmap_queue_update_wake_batch(struct sbitmap_queue *sbq, | |||
| 435 | * to ensure that the batch size is updated before the wait | 435 | * to ensure that the batch size is updated before the wait |
| 436 | * counts. | 436 | * counts. |
| 437 | */ | 437 | */ |
| 438 | smp_mb__before_atomic(); | 438 | smp_mb(); |
| 439 | for (i = 0; i < SBQ_WAIT_QUEUES; i++) | 439 | for (i = 0; i < SBQ_WAIT_QUEUES; i++) |
| 440 | atomic_set(&sbq->ws[i].wait_cnt, 1); | 440 | atomic_set(&sbq->ws[i].wait_cnt, 1); |
| 441 | } | 441 | } |
diff --git a/lib/sg_pool.c b/lib/sg_pool.c index d1c1e6388eaa..cff20df2695e 100644 --- a/lib/sg_pool.c +++ b/lib/sg_pool.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #include <linux/module.h> | 2 | #include <linux/module.h> |
| 2 | #include <linux/scatterlist.h> | 3 | #include <linux/scatterlist.h> |
| 3 | #include <linux/mempool.h> | 4 | #include <linux/mempool.h> |
diff --git a/lib/string_helpers.c b/lib/string_helpers.c index 29c490e5d478..4403e1924f73 100644 --- a/lib/string_helpers.c +++ b/lib/string_helpers.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Helpers for formatting and printing strings | 3 | * Helpers for formatting and printing strings |
| 3 | * | 4 | * |
diff --git a/lib/test_bitmap.c b/lib/test_bitmap.c index d3a501f2a81a..51a98f7ee79e 100644 --- a/lib/test_bitmap.c +++ b/lib/test_bitmap.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Test cases for printf facility. | 3 | * Test cases for printf facility. |
| 3 | */ | 4 | */ |
diff --git a/lib/test_debug_virtual.c b/lib/test_debug_virtual.c index bf864c73e462..b7cc0aaee173 100644 --- a/lib/test_debug_virtual.c +++ b/lib/test_debug_virtual.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #include <linux/kernel.h> | 2 | #include <linux/kernel.h> |
| 2 | #include <linux/module.h> | 3 | #include <linux/module.h> |
| 3 | #include <linux/export.h> | 4 | #include <linux/export.h> |
diff --git a/lib/test_firmware.c b/lib/test_firmware.c index 7222093ee00b..787c146eb485 100644 --- a/lib/test_firmware.c +++ b/lib/test_firmware.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * This module provides an interface to trigger and test firmware loading. | 3 | * This module provides an interface to trigger and test firmware loading. |
| 3 | * | 4 | * |
diff --git a/lib/test_hash.c b/lib/test_hash.c index cac20c5fb304..0ee40b4a56dd 100644 --- a/lib/test_hash.c +++ b/lib/test_hash.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Test cases for <linux/hash.h> and <linux/stringhash.h> | 3 | * Test cases for <linux/hash.h> and <linux/stringhash.h> |
| 3 | * This just verifies that various ways of computing a hash | 4 | * This just verifies that various ways of computing a hash |
diff --git a/lib/test_list_sort.c b/lib/test_list_sort.c index 5474f3f3e41d..1f017d3b610e 100644 --- a/lib/test_list_sort.c +++ b/lib/test_list_sort.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #define pr_fmt(fmt) "list_sort_test: " fmt | 2 | #define pr_fmt(fmt) "list_sort_test: " fmt |
| 2 | 3 | ||
| 3 | #include <linux/kernel.h> | 4 | #include <linux/kernel.h> |
diff --git a/lib/test_module.c b/lib/test_module.c index 319b66f1ff61..debd19e35198 100644 --- a/lib/test_module.c +++ b/lib/test_module.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * This module emits "Hello, world" on printk when loaded. | 3 | * This module emits "Hello, world" on printk when loaded. |
| 3 | * | 4 | * |
diff --git a/lib/test_printf.c b/lib/test_printf.c index 93da0a5000ec..944eb50f3862 100644 --- a/lib/test_printf.c +++ b/lib/test_printf.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * Test cases for printf facility. | 3 | * Test cases for printf facility. |
| 3 | */ | 4 | */ |
diff --git a/lib/test_sort.c b/lib/test_sort.c index 385c0ed5202f..52edbe10f2e5 100644 --- a/lib/test_sort.c +++ b/lib/test_sort.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #include <linux/sort.h> | 2 | #include <linux/sort.h> |
| 2 | #include <linux/slab.h> | 3 | #include <linux/slab.h> |
| 3 | #include <linux/module.h> | 4 | #include <linux/module.h> |
diff --git a/lib/test_string.c b/lib/test_string.c index 0fcdb82dca86..bf8def01ed20 100644 --- a/lib/test_string.c +++ b/lib/test_string.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | #include <linux/module.h> | 2 | #include <linux/module.h> |
| 2 | #include <linux/printk.h> | 3 | #include <linux/printk.h> |
| 3 | #include <linux/slab.h> | 4 | #include <linux/slab.h> |
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/vsprintf.c b/lib/vsprintf.c index 2f003cfe340e..63937044c57d 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * linux/lib/vsprintf.c | 3 | * linux/lib/vsprintf.c |
| 3 | * | 4 | * |
diff --git a/lib/xz/Kconfig b/lib/xz/Kconfig index 12d2d777f36b..22528743d4ce 100644 --- a/lib/xz/Kconfig +++ b/lib/xz/Kconfig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | config XZ_DEC | 2 | config XZ_DEC |
| 2 | tristate "XZ decompression support" | 3 | tristate "XZ decompression support" |
| 3 | select CRC32 | 4 | select CRC32 |
diff --git a/lib/xz/Makefile b/lib/xz/Makefile index a7fa7693f0f3..fa6af814a8d1 100644 --- a/lib/xz/Makefile +++ b/lib/xz/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | obj-$(CONFIG_XZ_DEC) += xz_dec.o | 2 | obj-$(CONFIG_XZ_DEC) += xz_dec.o |
| 2 | xz_dec-y := xz_dec_syms.o xz_dec_stream.o xz_dec_lzma2.o | 3 | xz_dec-y := xz_dec_syms.o xz_dec_stream.o xz_dec_lzma2.o |
| 3 | xz_dec-$(CONFIG_XZ_DEC_BCJ) += xz_dec_bcj.o | 4 | xz_dec-$(CONFIG_XZ_DEC_BCJ) += xz_dec_bcj.o |
diff --git a/lib/zlib_deflate/Makefile b/lib/zlib_deflate/Makefile index 86275e3fdcbc..2622e03c0b94 100644 --- a/lib/zlib_deflate/Makefile +++ b/lib/zlib_deflate/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # This is a modified version of zlib, which does all memory | 3 | # This is a modified version of zlib, which does all memory |
| 3 | # allocation ahead of time. | 4 | # allocation ahead of time. |
diff --git a/lib/zlib_deflate/deflate_syms.c b/lib/zlib_deflate/deflate_syms.c index ccfe25f3920f..72fe4b73be53 100644 --- a/lib/zlib_deflate/deflate_syms.c +++ b/lib/zlib_deflate/deflate_syms.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * linux/lib/zlib_deflate/deflate_syms.c | 3 | * linux/lib/zlib_deflate/deflate_syms.c |
| 3 | * | 4 | * |
diff --git a/lib/zlib_inflate/Makefile b/lib/zlib_inflate/Makefile index 49f8ce5774d2..27327d3e9f54 100644 --- a/lib/zlib_inflate/Makefile +++ b/lib/zlib_inflate/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | # | 2 | # |
| 2 | # This is a modified version of zlib, which does all memory | 3 | # This is a modified version of zlib, which does all memory |
| 3 | # allocation ahead of time. | 4 | # allocation ahead of time. |
diff --git a/lib/zlib_inflate/inflate_syms.c b/lib/zlib_inflate/inflate_syms.c index 67329fe9907e..9720114c0672 100644 --- a/lib/zlib_inflate/inflate_syms.c +++ b/lib/zlib_inflate/inflate_syms.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | /* | 2 | /* |
| 2 | * linux/lib/zlib_inflate/inflate_syms.c | 3 | * linux/lib/zlib_inflate/inflate_syms.c |
| 3 | * | 4 | * |
diff --git a/lib/zstd/Makefile b/lib/zstd/Makefile index 7920cbbfeae9..f5d778e7e5c7 100644 --- a/lib/zstd/Makefile +++ b/lib/zstd/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 1 | obj-$(CONFIG_ZSTD_COMPRESS) += zstd_compress.o | 2 | obj-$(CONFIG_ZSTD_COMPRESS) += zstd_compress.o |
| 2 | obj-$(CONFIG_ZSTD_DECOMPRESS) += zstd_decompress.o | 3 | obj-$(CONFIG_ZSTD_DECOMPRESS) += zstd_decompress.o |
| 3 | 4 | ||
