diff --git a/btf_encoder.c b/btf_encoder.c index cb378b2..613e7e9 100644 --- a/btf_encoder.c +++ b/btf_encoder.c @@ -1,3 +1,9 @@ +/* + SPDX-License-Identifier: GPL-2.0-only + + Copyright (C) 2019 Arnaldo Carvalho de Melo + */ + #include "dwarves.h" #include "libbtf.h" #include "btf.h" diff --git a/btf_encoder.h b/btf_encoder.h index 3e21434..daf5d37 100644 --- a/btf_encoder.h +++ b/btf_encoder.h @@ -1,5 +1,10 @@ #ifndef _BTF_ENCODER_H_ #define _BTF_ENCODER_H_ 1 +/* + SPDX-License-Identifier: GPL-2.0-only + + Copyright (C) 2019 Arnaldo Carvalho de Melo + */ struct cu; diff --git a/codiff.c b/codiff.c index a3bee05..8bbc32a 100644 --- a/codiff.c +++ b/codiff.c @@ -1,10 +1,8 @@ /* + SPDX-License-Identifier: GPL-2.0-only + Copyright (C) 2006 Mandriva Conectiva S.A. Copyright (C) 2006 Arnaldo Carvalho de Melo - - This program is free software; you can redistribute it and/or modify it - under the terms of version 2 of the GNU General Public License as - published by the Free Software Foundation. */ #include diff --git a/ctf.h b/ctf.h index 6233f6f..25b7989 100644 --- a/ctf.h +++ b/ctf.h @@ -1,5 +1,10 @@ #ifndef _CTF_H #define _CTF_H +/* + SPDX-License-Identifier: GPL-2.0-only + + Copyright (C) 2019 Arnaldo Carvalho de Melo + */ #include diff --git a/ctf_encoder.c b/ctf_encoder.c index 6787eb6..37d10d5 100644 --- a/ctf_encoder.c +++ b/ctf_encoder.c @@ -1,10 +1,8 @@ /* + SPDX-License-Identifier: GPL-2.0-only + Copyright (C) 2009 Red Hat Inc. Copyright (C) 2009 Arnaldo Carvalho de Melo - - This program is free software; you can redistribute it and/or modify it - under the terms of version 2 of the GNU General Public License as - published by the Free Software Foundation. */ #include "dwarves.h" diff --git a/ctf_encoder.h b/ctf_encoder.h index 91c43d9..16e76e2 100644 --- a/ctf_encoder.h +++ b/ctf_encoder.h @@ -1,12 +1,10 @@ #ifndef _CTF_ENCODER_H_ #define _CTF_ENCODER_H_ 1 /* + SPDX-License-Identifier: GPL-2.0-only + Copyright (C) 2009 Red Hat Inc. Copyright (C) 2009 Arnaldo Carvalho de Melo - - This program is free software; you can redistribute it and/or modify it - under the terms of version 2 of the GNU General Public License as - published by the Free Software Foundation. */ struct cu; diff --git a/ctracer.c b/ctracer.c index 710bdab..e4bd5e0 100644 --- a/ctracer.c +++ b/ctracer.c @@ -1,10 +1,8 @@ /* + SPDX-License-Identifier: GPL-2.0-only + Copyright (C) 2006 Mandriva Conectiva S.A. Copyright (C) 2006 Arnaldo Carvalho de Melo - - This program is free software; you can redistribute it and/or modify it - under the terms of version 2 of the GNU General Public License as - published by the Free Software Foundation. */ #include diff --git a/dtagnames.c b/dtagnames.c index 16b9987..0ffcbf7 100644 --- a/dtagnames.c +++ b/dtagnames.c @@ -1,10 +1,8 @@ /* + SPDX-License-Identifier: GPL-2.0-only + Copyright (C) 2006 Mandriva Conectiva S.A. Copyright (C) 2006 Arnaldo Carvalho de Melo - - This program is free software; you can redistribute it and/or modify it - under the terms of version 2 of the GNU General Public License as - published by the Free Software Foundation. */ #include diff --git a/dutil.c b/dutil.c index 791866f..51bed2d 100644 --- a/dutil.c +++ b/dutil.c @@ -1,9 +1,7 @@ /* - Copyright (C) 2007 Arnaldo Carvalho de Melo + SPDX-License-Identifier: GPL-2.0-only - This program is free software; you can redistribute it and/or modify it - under the terms of version 2 of the GNU General Public License as - published by the Free Software Foundation. + Copyright (C) 2007 Arnaldo Carvalho de Melo */ diff --git a/dutil.h b/dutil.h index 7af0c82..0f5f74a 100644 --- a/dutil.h +++ b/dutil.h @@ -1,12 +1,10 @@ #ifndef _DUTIL_H_ #define _DUTIL_H_ 1 /* + SPDX-License-Identifier: GPL-2.0-only + * Copyright (C) 2007..2009 Arnaldo Carvalho de Melo * - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * * Some functions came from the Linux Kernel sources, copyrighted by a * cast of dozens, please see the Linux Kernel git history for details. */ diff --git a/dwarf_loader.c b/dwarf_loader.c index 7e3d049..adef437 100644 --- a/dwarf_loader.c +++ b/dwarf_loader.c @@ -1,9 +1,7 @@ /* - Copyright (C) 2008 Arnaldo Carvalho de Melo + SPDX-License-Identifier: GPL-2.0-only - This program is free software; you can redistribute it and/or modify it - under the terms of version 2 of the GNU General Public License as - published by the Free Software Foundation. + Copyright (C) 2008 Arnaldo Carvalho de Melo */ #include diff --git a/dwarves.c b/dwarves.c index 1afd85c..250eaae 100644 --- a/dwarves.c +++ b/dwarves.c @@ -1,12 +1,10 @@ /* + SPDX-License-Identifier: GPL-2.0-only + Copyright (C) 2006 Mandriva Conectiva S.A. Copyright (C) 2006 Arnaldo Carvalho de Melo Copyright (C) 2007 Red Hat Inc. Copyright (C) 2007 Arnaldo Carvalho de Melo - - This program is free software; you can redistribute it and/or modify it - under the terms of version 2 of the GNU General Public License as - published by the Free Software Foundation. */ #include diff --git a/dwarves.h b/dwarves.h index e5f8347..d929316 100644 --- a/dwarves.h +++ b/dwarves.h @@ -1,12 +1,10 @@ #ifndef _DWARVES_H_ #define _DWARVES_H_ 1 /* + SPDX-License-Identifier: GPL-2.0-only + Copyright (C) 2006 Mandriva Conectiva S.A. Copyright (C) 2006..2009 Arnaldo Carvalho de Melo - - This program is free software; you can redistribute it and/or modify it - under the terms of version 2 of the GNU General Public License as - published by the Free Software Foundation. */ diff --git a/dwarves_emit.c b/dwarves_emit.c index ad0e163..062cdea 100644 --- a/dwarves_emit.c +++ b/dwarves_emit.c @@ -1,12 +1,10 @@ /* + SPDX-License-Identifier: GPL-2.0-only + Copyright (C) 2006 Mandriva Conectiva S.A. Copyright (C) 2006 Arnaldo Carvalho de Melo Copyright (C) 2007 Red Hat Inc. Copyright (C) 2007 Arnaldo Carvalho de Melo - - This program is free software; you can redistribute it and/or modify it - under the terms of version 2 of the GNU General Public License as - published by the Free Software Foundation. */ #include diff --git a/dwarves_emit.h b/dwarves_emit.h index 1aa485b..5d8c7ab 100644 --- a/dwarves_emit.h +++ b/dwarves_emit.h @@ -1,13 +1,11 @@ #ifndef _DWARVES_EMIT_H_ #define _DWARVES_EMIT_H_ 1 /* + SPDX-License-Identifier: GPL-2.0-only + Copyright (C) 2006 Mandriva Conectiva S.A. Copyright (C) 2006 Arnaldo Carvalho de Melo Copyright (C) 2007 Arnaldo Carvalho de Melo - - This program is free software; you can redistribute it and/or modify it - under the terms of version 2 of the GNU General Public License as - published by the Free Software Foundation. */ #include diff --git a/dwarves_fprintf.c b/dwarves_fprintf.c index 39f9631..490dc30 100644 --- a/dwarves_fprintf.c +++ b/dwarves_fprintf.c @@ -1,12 +1,10 @@ /* + SPDX-License-Identifier: GPL-2.0-only + Copyright (C) 2006 Mandriva Conectiva S.A. Copyright (C) 2006 Arnaldo Carvalho de Melo Copyright (C) 2007..2009 Red Hat Inc. Copyright (C) 2007..2009 Arnaldo Carvalho de Melo - - This program is free software; you can redistribute it and/or modify it - under the terms of version 2 of the GNU General Public License as - published by the Free Software Foundation. */ #include diff --git a/dwarves_reorganize.c b/dwarves_reorganize.c index 6f59a76..1fb08d5 100644 --- a/dwarves_reorganize.c +++ b/dwarves_reorganize.c @@ -1,12 +1,10 @@ /* + SPDX-License-Identifier: GPL-2.0-only + Copyright (C) 2006 Mandriva Conectiva S.A. Copyright (C) 2006 Arnaldo Carvalho de Melo Copyright (C) 2007 Red Hat Inc. Copyright (C) 2007 Arnaldo Carvalho de Melo - - This program is free software; you can redistribute it and/or modify it - under the terms of version 2 of the GNU General Public License as - published by the Free Software Foundation. */ #include "list.h" diff --git a/dwarves_reorganize.h b/dwarves_reorganize.h index 97cfc5a..5fccf6d 100644 --- a/dwarves_reorganize.h +++ b/dwarves_reorganize.h @@ -1,13 +1,11 @@ #ifndef _DWARVES_REORGANIZE_H_ #define _DWARVES_REORGANIZE_H_ 1 /* + SPDX-License-Identifier: GPL-2.0-only + Copyright (C) 2006 Mandriva Conectiva S.A. Copyright (C) 2006 Arnaldo Carvalho de Melo Copyright (C) 2007 Arnaldo Carvalho de Melo - - This program is free software; you can redistribute it and/or modify it - under the terms of version 2 of the GNU General Public License as - published by the Free Software Foundation. */ diff --git a/elf_symtab.c b/elf_symtab.c index d70d1bc..741990e 100644 --- a/elf_symtab.c +++ b/elf_symtab.c @@ -1,10 +1,8 @@ /* + SPDX-License-Identifier: GPL-2.0-only + Copyright (C) 2009 Red Hat Inc. Copyright (C) 2009 Arnaldo Carvalho de Melo - - This program is free software; you can redistribute it and/or modify it - under the terms of version 2 of the GNU General Public License as - published by the Free Software Foundation. */ #include diff --git a/elf_symtab.h b/elf_symtab.h index 70bcfd5..359add6 100644 --- a/elf_symtab.h +++ b/elf_symtab.h @@ -1,12 +1,10 @@ #ifndef _ELF_SYMTAB_H_ #define _ELF_SYMTAB_H_ 1 /* + SPDX-License-Identifier: GPL-2.0-only + Copyright (C) 2009 Red Hat Inc. Copyright (C) 2009 Arnaldo Carvalho de Melo - - This program is free software; you can redistribute it and/or modify it - under the terms of version 2 of the GNU General Public License as - published by the Free Software Foundation. */ #include diff --git a/elfcreator.c b/elfcreator.c index c284b52..baea6e8 100644 --- a/elfcreator.c +++ b/elfcreator.c @@ -1,9 +1,7 @@ /* - * Copyright 2009 Red Hat, Inc. + * SPDX-License-Identifier: GPL-2.0-only * - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. + * Copyright 2009 Red Hat, Inc. * * Author: Peter Jones */ diff --git a/elfcreator.h b/elfcreator.h index 7de1a98..a071de5 100644 --- a/elfcreator.h +++ b/elfcreator.h @@ -1,9 +1,7 @@ /* - * Copyright 2009 Red Hat, Inc. + * SPDX-License-Identifier: GPL-2.0-only * - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. + * Copyright 2009 Red Hat, Inc. * * Author: Peter Jones */ diff --git a/gobuffer.c b/gobuffer.c index ef4718d..f8d2066 100644 --- a/gobuffer.c +++ b/gobuffer.c @@ -1,11 +1,9 @@ /* + SPDX-License-Identifier: GPL-2.0-only + Copyright (C) 2008 Arnaldo Carvalho de Melo Grow only buffer, add entries but never delete - - This program is free software; you can redistribute it and/or modify it - under the terms of version 2 of the GNU General Public License as - published by the Free Software Foundation. */ #include "gobuffer.h" diff --git a/gobuffer.h b/gobuffer.h index 41f0c9d..a12c5c8 100644 --- a/gobuffer.h +++ b/gobuffer.h @@ -1,11 +1,9 @@ #ifndef _GOBUFFER_H_ #define _GOBUFFER_H_ 1 /* - Copyright (C) 2008 Arnaldo Carvalho de Melo + SPDX-License-Identifier: GPL-2.0-only - This program is free software; you can redistribute it and/or modify it - under the terms of version 2 of the GNU General Public License as - published by the Free Software Foundation. + Copyright (C) 2008 Arnaldo Carvalho de Melo */ struct gobuffer { diff --git a/libbtf.c b/libbtf.c index e7626fe..64437f3 100644 --- a/libbtf.c +++ b/libbtf.c @@ -1,3 +1,9 @@ +/* + SPDX-License-Identifier: GPL-2.0-only + + Copyright (C) 2019 Arnaldo Carvalho de Melo + */ + #include #include #include diff --git a/libbtf.h b/libbtf.h index 553a599..ef1c498 100644 --- a/libbtf.h +++ b/libbtf.h @@ -1,3 +1,9 @@ +/* + SPDX-License-Identifier: GPL-2.0-only + + Copyright (C) 2019 Arnaldo Carvalho de Melo + */ + #ifndef _LIBBTF_H #define _LIBBTF_H diff --git a/libctf.c b/libctf.c index 33e2b67..e9fc609 100644 --- a/libctf.c +++ b/libctf.c @@ -1,3 +1,9 @@ +/* + SPDX-License-Identifier: GPL-2.0-only + + Copyright (C) 2019 Arnaldo Carvalho de Melo + */ + #include #include #include diff --git a/libctf.h b/libctf.h index edb2104..6ebc191 100644 --- a/libctf.h +++ b/libctf.h @@ -1,3 +1,9 @@ +/* + SPDX-License-Identifier: GPL-2.0-only + + Copyright (C) 2019 Arnaldo Carvalho de Melo + */ + #ifndef _LIBCTF_H #define _LIBCTF_H diff --git a/list.h b/list.h index e2548e8..6072919 100644 --- a/list.h +++ b/list.h @@ -1,11 +1,9 @@ #ifndef _LINUX_LIST_H #define _LINUX_LIST_H /* - Copyright (C) Cast of dozens, comes from the Linux kernel + SPDX-License-Identifier: GPL-2.0-only - This program is free software; you can redistribute it and/or modify it - under the terms of version 2 of the GNU General Public License as - published by the Free Software Foundation. + Copyright (C) Cast of dozens, comes from the Linux kernel */ #include diff --git a/pahole.c b/pahole.c index a495da8..2230e37 100644 --- a/pahole.c +++ b/pahole.c @@ -1,11 +1,9 @@ /* + SPDX-License-Identifier: GPL-2.0-only + Copyright (C) 2006 Mandriva Conectiva S.A. Copyright (C) 2006 Arnaldo Carvalho de Melo Copyright (C) 2007-2008 Arnaldo Carvalho de Melo - - This program is free software; you can redistribute it and/or modify it - under the terms of version 2 of the GNU General Public License as - published by the Free Software Foundation. */ #include diff --git a/pdwtags.c b/pdwtags.c index c1c6688..1d300e6 100644 --- a/pdwtags.c +++ b/pdwtags.c @@ -1,9 +1,7 @@ /* - Copyright (C) 2007-2016 Arnaldo Carvalho de Melo + SPDX-License-Identifier: GPL-2.0-only - This program is free software; you can redistribute it and/or modify it - under the terms of version 2 of the GNU General Public License as - published by the Free Software Foundation. + Copyright (C) 2007-2016 Arnaldo Carvalho de Melo */ #include diff --git a/pfunct.c b/pfunct.c index 97c31f0..bb57507 100644 --- a/pfunct.c +++ b/pfunct.c @@ -1,11 +1,9 @@ /* + SPDX-License-Identifier: GPL-2.0-only + Copyright (C) 2006 Mandriva Conectiva S.A. Copyright (C) 2006 Arnaldo Carvalho de Melo Copyright (C) 2007 Arnaldo Carvalho de Melo - - This program is free software; you can redistribute it and/or modify it - under the terms of version 2 of the GNU General Public License as - published by the Free Software Foundation. */ #include diff --git a/pglobal.c b/pglobal.c index f7ca54d..1f6cdad 100644 --- a/pglobal.c +++ b/pglobal.c @@ -1,10 +1,7 @@ /* + * SPDX-License-Identifier: GPL-2.0-only * * Copyright (C) 2007 Davi E. M. Arnaut - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as published - * by the Free Software Foundation. */ #include diff --git a/prefcnt.c b/prefcnt.c index 412e999..8b24db2 100644 --- a/prefcnt.c +++ b/prefcnt.c @@ -1,10 +1,8 @@ /* + SPDX-License-Identifier: GPL-2.0-only + Copyright (C) 2006 Mandriva Conectiva S.A. Copyright (C) 2006 Arnaldo Carvalho de Melo - - This program is free software; you can redistribute it and/or modify it - under the terms of version 2 of the GNU General Public License as - published by the Free Software Foundation. */ #include diff --git a/rbtree.c b/rbtree.c index 2189f88..b8b907d 100644 --- a/rbtree.c +++ b/rbtree.c @@ -1,22 +1,10 @@ /* + SPDX-License-Identifier: GPL-2.0-or-later + Red Black Trees (C) 1999 Andrea Arcangeli (C) 2002 David Woodhouse - 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) any later version. - - 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 02111-1307 USA - linux/lib/rbtree.c */ diff --git a/rbtree.h b/rbtree.h index c9ab87a..3eb99f9 100644 --- a/rbtree.h +++ b/rbtree.h @@ -1,21 +1,9 @@ /* + SPDX-License-Identifier: GPL-2.0-or-later + Red Black Trees (C) 1999 Andrea Arcangeli - 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) any later version. - - 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 02111-1307 USA - linux/include/linux/rbtree.h To use rbtrees you'll have to implement your own insert and search cores. diff --git a/scncopy.c b/scncopy.c index 9acc16d..539186f 100644 --- a/scncopy.c +++ b/scncopy.c @@ -1,9 +1,7 @@ /* - * Copyright 2009 Red Hat, Inc. + * SPDX-License-Identifier: GPL-2.0-only * - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. + * Copyright 2009 Red Hat, Inc. * * Author: Peter Jones */ diff --git a/strings.c b/strings.c index a0f188a..ddb2b1b 100644 --- a/strings.c +++ b/strings.c @@ -1,9 +1,7 @@ /* - Copyright (C) 2008 Arnaldo Carvalho de Melo + SPDX-License-Identifier: GPL-2.0-only - This program is free software; you can redistribute it and/or modify it - under the terms of version 2 of the GNU General Public License as - published by the Free Software Foundation. + Copyright (C) 2008 Arnaldo Carvalho de Melo */ #include "strings.h" diff --git a/strings.h b/strings.h index 127f651..01f50ef 100644 --- a/strings.h +++ b/strings.h @@ -1,11 +1,9 @@ #ifndef _STRINGS_H_ #define _STRINGS_H_ 1 /* - Copyright (C) 2008 Arnaldo Carvalho de Melo + SPDX-License-Identifier: GPL-2.0-only - This program is free software; you can redistribute it and/or modify it - under the terms of version 2 of the GNU General Public License as - published by the Free Software Foundation. + Copyright (C) 2008 Arnaldo Carvalho de Melo */ #include "gobuffer.h" diff --git a/syscse.c b/syscse.c index edd8ee7..1d5d905 100644 --- a/syscse.c +++ b/syscse.c @@ -1,11 +1,9 @@ /* + SPDX-License-Identifier: GPL-2.0-only + Copyright (C) 2007-2016 Arnaldo Carvalho de Melo System call sign extender - - This program is free software; you can redistribute it and/or modify it - under the terms of version 2 of the GNU General Public License as - published by the Free Software Foundation. */ #include