From c3ee6a8a0915bfbefa960fee5cf6df43d9b13191 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Mon, 6 Sep 2021 16:23:14 +0200 Subject: [PATCH] btrfs-progs: unify GPL header comments Add the GPL v2 header to files where it was missing and is not from an external source, update to the most recent version with the address. Signed-off-by: David Sterba --- cmds/receive-dump.c | 4 +++- cmds/receive-dump.h | 4 +++- cmds/rescue.h | 5 +++++ cmds/restore.c | 1 - cmds/send.c | 1 - common/device-scan.h | 16 ++++++++++++++++ common/extent-cache.c | 1 + common/utils-lib.c | 16 ++++++++++++++++ crypto/crc32c.c | 7 ++++--- crypto/hash-speedtest.c | 16 ++++++++++++++++ crypto/hash-vectest.c | 16 ++++++++++++++++ crypto/hash.c | 16 ++++++++++++++++ crypto/hash.h | 16 ++++++++++++++++ kernel-shared/ctree.c | 1 + kernel-shared/delayed-ref.c | 14 ++++++++++++++ kernel-shared/delayed-ref.h | 14 ++++++++++++++ kernel-shared/extent_io.c | 2 +- kernel-shared/ulist.c | 14 ++++++++++++++ kernel-shared/ulist.h | 13 +++++++++++++ kernel-shared/uuid-tree.c | 1 + kernel-shared/volumes.c | 1 + kernel-shared/zoned.c | 15 +++++++++++++++ kernel-shared/zoned.h | 15 +++++++++++++++ mkfs/rootdir.c | 4 +++- mkfs/rootdir.h | 4 +++- 25 files changed, 207 insertions(+), 10 deletions(-) diff --git a/cmds/receive-dump.c b/cmds/receive-dump.c index 648d9314..058e8918 100644 --- a/cmds/receive-dump.c +++ b/cmds/receive-dump.c @@ -11,7 +11,9 @@ * General Public License for more details. * * You should have received a copy of the GNU General Public - * License along with this program. + * License along with this program; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 021110-1307, USA. */ #include diff --git a/cmds/receive-dump.h b/cmds/receive-dump.h index 06a61085..38025222 100644 --- a/cmds/receive-dump.h +++ b/cmds/receive-dump.h @@ -11,7 +11,9 @@ * General Public License for more details. * * You should have received a copy of the GNU General Public - * License along with this program. + * License along with this program; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 021110-1307, USA. */ #ifndef __BTRFS_SEND_DUMP_H__ diff --git a/cmds/rescue.h b/cmds/rescue.h index 3b99ec6b..5a9e46b7 100644 --- a/cmds/rescue.h +++ b/cmds/rescue.h @@ -10,6 +10,11 @@ * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 021110-1307, USA. */ #ifndef __BTRFS_RESCUE_H__ diff --git a/cmds/restore.c b/cmds/restore.c index 39fcc69d..dd75508a 100644 --- a/cmds/restore.c +++ b/cmds/restore.c @@ -16,7 +16,6 @@ * Boston, MA 021110-1307, USA. */ - #include "kerncompat.h" #include diff --git a/cmds/send.c b/cmds/send.c index 3bfc69f5..236e3bb9 100644 --- a/cmds/send.c +++ b/cmds/send.c @@ -16,7 +16,6 @@ * Boston, MA 021110-1307, USA. */ - #include "kerncompat.h" #include diff --git a/common/device-scan.h b/common/device-scan.h index 988725b7..3a816f1b 100644 --- a/common/device-scan.h +++ b/common/device-scan.h @@ -1,3 +1,19 @@ +/* + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public + * License v2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 021110-1307, USA. + */ + #ifndef __DEVICE_SCAN_H__ #define __DEVICE_SCAN_H__ diff --git a/common/extent-cache.c b/common/extent-cache.c index 3d42dbc0..568e9f0a 100644 --- a/common/extent-cache.c +++ b/common/extent-cache.c @@ -15,6 +15,7 @@ * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 021110-1307, USA. */ + #include #include #include "kerncompat.h" diff --git a/common/utils-lib.c b/common/utils-lib.c index 0847ee69..461760e1 100644 --- a/common/utils-lib.c +++ b/common/utils-lib.c @@ -1,3 +1,19 @@ +/* + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public + * License v2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 021110-1307, USA. + */ + #include "kerncompat.h" #include "common/utils.h" #include diff --git a/crypto/crc32c.c b/crypto/crc32c.c index bd6283d5..5ae12fd2 100644 --- a/crypto/crc32c.c +++ b/crypto/crc32c.c @@ -1,12 +1,13 @@ -/* +/* * Copied from the kernel source code, lib/libcrc32c.c. - * + * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free - * Software Foundation; either version 2 of the License, or (at your option) + * Software Foundation; either version 2 of the License, or (at your option) * any later version. * */ + #include "kerncompat.h" #include "crypto/crc32c.h" #include diff --git a/crypto/hash-speedtest.c b/crypto/hash-speedtest.c index 0e6a3b84..639666be 100644 --- a/crypto/hash-speedtest.c +++ b/crypto/hash-speedtest.c @@ -1,3 +1,19 @@ +/* + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public + * License v2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 021110-1307, USA. + */ + #include "../kerncompat.h" #include #include diff --git a/crypto/hash-vectest.c b/crypto/hash-vectest.c index a677d7ad..c0905d71 100644 --- a/crypto/hash-vectest.c +++ b/crypto/hash-vectest.c @@ -1,3 +1,19 @@ +/* + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public + * License v2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 021110-1307, USA. + */ + #include "../kerncompat.h" #include "crypto/hash.h" #include "crypto/crc32c.h" diff --git a/crypto/hash.c b/crypto/hash.c index 65443aa1..1aa65e6d 100644 --- a/crypto/hash.c +++ b/crypto/hash.c @@ -1,3 +1,19 @@ +/* + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public + * License v2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 021110-1307, USA. + */ + #include "crypto/hash.h" #include "crypto/crc32c.h" #include "crypto/xxhash.h" diff --git a/crypto/hash.h b/crypto/hash.h index fefccbd5..425576f4 100644 --- a/crypto/hash.h +++ b/crypto/hash.h @@ -1,3 +1,19 @@ +/* + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public + * License v2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 021110-1307, USA. + */ + #ifndef CRYPTO_HASH_H #define CRYPTO_HASH_H diff --git a/kernel-shared/ctree.c b/kernel-shared/ctree.c index 0845cc60..2dd5f5ac 100644 --- a/kernel-shared/ctree.c +++ b/kernel-shared/ctree.c @@ -15,6 +15,7 @@ * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 021110-1307, USA. */ + #include "kernel-shared/ctree.h" #include "kernel-shared/disk-io.h" #include "kernel-shared/transaction.h" diff --git a/kernel-shared/delayed-ref.c b/kernel-shared/delayed-ref.c index 48dcf159..829c2cd3 100644 --- a/kernel-shared/delayed-ref.c +++ b/kernel-shared/delayed-ref.c @@ -1,6 +1,20 @@ // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2009 Oracle. All rights reserved. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public + * License v2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 021110-1307, USA. */ #include "kernel-shared/ctree.h" diff --git a/kernel-shared/delayed-ref.h b/kernel-shared/delayed-ref.h index 2ccfd27c..14e78704 100644 --- a/kernel-shared/delayed-ref.h +++ b/kernel-shared/delayed-ref.h @@ -1,6 +1,20 @@ /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2008 Oracle. All rights reserved. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public + * License v2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 021110-1307, USA. */ #ifndef BTRFS_DELAYED_REF_H diff --git a/kernel-shared/extent_io.c b/kernel-shared/extent_io.c index 06c955b7..d3d79bc8 100644 --- a/kernel-shared/extent_io.c +++ b/kernel-shared/extent_io.c @@ -1,4 +1,3 @@ - /* * Copyright (C) 2007 Oracle. All rights reserved. * @@ -16,6 +15,7 @@ * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 021110-1307, USA. */ + #include #include #include diff --git a/kernel-shared/ulist.c b/kernel-shared/ulist.c index 32667618..e193b02d 100644 --- a/kernel-shared/ulist.c +++ b/kernel-shared/ulist.c @@ -2,6 +2,20 @@ * Copyright (C) 2011 STRATO AG * written by Arne Jansen * Distributed under the GNU GPL license version 2. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public + * License v2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 021110-1307, USA. */ #include "kerncompat.h" diff --git a/kernel-shared/ulist.h b/kernel-shared/ulist.h index 5db1b798..3fed89fa 100644 --- a/kernel-shared/ulist.h +++ b/kernel-shared/ulist.h @@ -3,6 +3,19 @@ * written by Arne Jansen * Distributed under the GNU GPL license version 2. * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public + * License v2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 021110-1307, USA. */ #ifndef __ULIST_H__ diff --git a/kernel-shared/uuid-tree.c b/kernel-shared/uuid-tree.c index 21115a4d..c9ba3232 100644 --- a/kernel-shared/uuid-tree.c +++ b/kernel-shared/uuid-tree.c @@ -15,6 +15,7 @@ * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 021110-1307, USA. */ + #include #include #include diff --git a/kernel-shared/volumes.c b/kernel-shared/volumes.c index 9e2366a7..44d2f36e 100644 --- a/kernel-shared/volumes.c +++ b/kernel-shared/volumes.c @@ -15,6 +15,7 @@ * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 021110-1307, USA. */ + #include #include #include diff --git a/kernel-shared/zoned.c b/kernel-shared/zoned.c index 31352c9c..c245e592 100644 --- a/kernel-shared/zoned.c +++ b/kernel-shared/zoned.c @@ -1,4 +1,19 @@ // SPDX-License-Identifier: GPL-2.0 +/* + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public + * License v2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 021110-1307, USA. + */ #include #include diff --git a/kernel-shared/zoned.h b/kernel-shared/zoned.h index baf920ea..99f8e9a2 100644 --- a/kernel-shared/zoned.h +++ b/kernel-shared/zoned.h @@ -1,4 +1,19 @@ /* SPDX-License-Identifier: GPL-2.0 */ +/* + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public + * License v2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 021110-1307, USA. + */ #ifndef __BTRFS_ZONED_H__ #define __BTRFS_ZONED_H__ diff --git a/mkfs/rootdir.c b/mkfs/rootdir.c index fe5ce993..471d49da 100644 --- a/mkfs/rootdir.c +++ b/mkfs/rootdir.c @@ -11,7 +11,9 @@ * General Public License for more details. * * You should have received a copy of the GNU General Public - * License along with this program. + * License along with this program; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 021110-1307, USA. */ #include "kerncompat.h" diff --git a/mkfs/rootdir.h b/mkfs/rootdir.h index f06c7dd1..de3722d7 100644 --- a/mkfs/rootdir.h +++ b/mkfs/rootdir.h @@ -9,7 +9,9 @@ * General Public License for more details. * * You should have received a copy of the GNU General Public - * License along with this program. + * License along with this program; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 021110-1307, USA. */ /*