Em Fri, Jan 18, 2019 at 06:30:38PM +0100, Domenico Andreoli escreveu:
> From: Domenico Andreoli <domenico.andre...@linux.com>
> 
> Hi Arnaldo,
> 
>   I noticed that some files of pahole come without licensing and
> copyright information, this makes Debian struggle with the redistribution
> and, unfortunately, puts the inclusion of pahole into coming release
> at risk.
> 
> For your convenience, I attached a patch that adds the info where
> missing and also adopts the SPDX notation.

Thanks, I've added the fb team involved in recent changes to this
package so that they are aware of it and can voice any concern, folks
anything to say about this? Is everything okay?

I'm tentatively adding this to my repo, hope to tag 1.13 soon.

- Arnaldo
 
> I presumed to match your intentions in fact copyright/licensing but
> please comment back so that I can adapt and hopefully converge quickly.
> 
> Kind regards,
> Domenico
> 
> Signed-off-by: Domenico Andreoli <domenico.andre...@linux.com>
> ---
>  btf_encoder.c        |  6 ++++++
>  btf_encoder.h        |  5 +++++
>  codiff.c             |  6 ++----
>  ctf.h                |  5 +++++
>  ctf_encoder.c        |  6 ++----
>  ctf_encoder.h        |  6 ++----
>  ctracer.c            |  6 ++----
>  dtagnames.c          |  6 ++----
>  dutil.c              |  6 ++----
>  dutil.h              |  6 ++----
>  dwarf_loader.c       |  6 ++----
>  dwarves.c            |  6 ++----
>  dwarves.h            |  6 ++----
>  dwarves_emit.c       |  6 ++----
>  dwarves_emit.h       |  6 ++----
>  dwarves_fprintf.c    |  6 ++----
>  dwarves_reorganize.c |  6 ++----
>  dwarves_reorganize.h |  6 ++----
>  elf_symtab.c         |  6 ++----
>  elf_symtab.h         |  6 ++----
>  elfcreator.c         |  6 ++----
>  elfcreator.h         |  6 ++----
>  gobuffer.c           |  6 ++----
>  gobuffer.h           |  6 ++----
>  libbtf.c             |  6 ++++++
>  libbtf.h             |  6 ++++++
>  libctf.c             |  6 ++++++
>  libctf.h             |  6 ++++++
>  list.h               |  6 ++----
>  pahole.c             |  6 ++----
>  pdwtags.c            |  6 ++----
>  pfunct.c             |  6 ++----
>  pglobal.c            |  5 +----
>  prefcnt.c            |  6 ++----
>  rbtree.c             | 16 ++--------------
>  rbtree.h             | 16 ++--------------
>  scncopy.c            |  6 ++----
>  strings.c            |  6 ++----
>  strings.h            |  6 ++----
>  syscse.c             |  6 ++----
>  40 files changed, 105 insertions(+), 152 deletions(-)
> 
> diff --git a/btf_encoder.c b/btf_encoder.c
> index bfdab27..854434c 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 <a...@redhat.com>
> + */
> +
>  #include "dwarves.h"
>  #include "libbtf.h"
>  #include "btf.h"
> diff --git a/btf_encoder.h b/btf_encoder.h
> index a9d622f..62409f8 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 <a...@redhat.com>
> + */
>  
>  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 <a...@mandriva.com>
> -
> -  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 <argp.h>
> 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 <a...@redhat.com>
> + */
>  
>  #include <stdint.h>
>  
> diff --git a/ctf_encoder.c b/ctf_encoder.c
> index ab70254..8f1c0be 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 <a...@redhat.com>
> -
> -  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 <a...@redhat.com>
> -
> -  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 <a...@mandriva.com>
> -
> -  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 <argp.h>
> 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 <a...@mandriva.com>
> -
> -  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 <stdio.h>
> 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 <a...@redhat.com>
> +  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 <a...@redhat.com>
>  */
>  
>  
> diff --git a/dutil.h b/dutil.h
> index 0401b3e..7404d6b 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 <a...@redhat.com>
>   *
> - * 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 2cc0911..47eeb70 100644
> --- a/dwarf_loader.c
> +++ b/dwarf_loader.c
> @@ -1,9 +1,7 @@
>  /*
> -  Copyright (C) 2008 Arnaldo Carvalho de Melo <a...@redhat.com>
> +  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 <a...@redhat.com>
>  */
>  
>  #include <assert.h>
> diff --git a/dwarves.c b/dwarves.c
> index cef0681..3b966f3 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 <a...@mandriva.com>
>    Copyright (C) 2007 Red Hat Inc.
>    Copyright (C) 2007 Arnaldo Carvalho de Melo <a...@redhat.com>
> -
> -  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 <assert.h>
> diff --git a/dwarves.h b/dwarves.h
> index 52a68db..212ebea 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 <a...@redhat.com>
> -
> -  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 <a...@mandriva.com>
>    Copyright (C) 2007 Red Hat Inc.
>    Copyright (C) 2007 Arnaldo Carvalho de Melo <a...@redhat.com>
> -
> -  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 <string.h>
> 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 <a...@mandriva.com>
>    Copyright (C) 2007 Arnaldo Carvalho de Melo <a...@ghostprotocols.net>
> -
> -  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 <stdio.h>
> diff --git a/dwarves_fprintf.c b/dwarves_fprintf.c
> index 2164c9e..09626d0 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 <a...@mandriva.com>
>    Copyright (C) 2007..2009 Red Hat Inc.
>    Copyright (C) 2007..2009 Arnaldo Carvalho de Melo <a...@redhat.com>
> -
> -  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 <dwarf.h>
> 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 <a...@mandriva.com>
>    Copyright (C) 2007 Red Hat Inc.
>    Copyright (C) 2007 Arnaldo Carvalho de Melo <a...@redhat.com>
> -
> -  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 <a...@mandriva.com>
>    Copyright (C) 2007 Arnaldo Carvalho de Melo <a...@ghostprotocols.net>
> -
> -  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 <a...@redhat.com>
> -
> -  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 <malloc.h>
> 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 <a...@redhat.com>
> -
> -  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 <stdbool.h>
> 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 <pjo...@redhat.com>
>   */
> 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 <pjo...@redhat.com>
>   */
> 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 <a...@redhat.com>
>  
>    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 <a...@redhat.com>
> +  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 <a...@redhat.com>
>  */
>  
>  struct gobuffer {
> diff --git a/libbtf.c b/libbtf.c
> index 3f49c0f..f075988 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 <a...@redhat.com>
> + */
> +
>  #include <fcntl.h>
>  #include <gelf.h>
>  #include <limits.h>
> diff --git a/libbtf.h b/libbtf.h
> index 02156fd..fee05e3 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 <a...@redhat.com>
> + */
> +
>  #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 <a...@redhat.com>
> + */
> +
>  #include <fcntl.h>
>  #include <gelf.h>
>  #include <limits.h>
> 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 <a...@redhat.com>
> + */
> +
>  #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 <stddef.h>
> diff --git a/pahole.c b/pahole.c
> index 55803c3..4f99a85 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 <a...@mandriva.com>
>    Copyright (C) 2007-2008 Arnaldo Carvalho de Melo <a...@redhat.com>
> -
> -  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 <argp.h>
> 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 <a...@kernel.org>
> +  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 <a...@kernel.org>
>  */
>  
>  #include <argp.h>
> 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 <a...@mandriva.com>
>    Copyright (C) 2007 Arnaldo Carvalho de Melo <a...@redhat.com>
> -
> -  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 <argp.h>
> 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 <d...@haxent.com.br>
> - *
> - * 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 <argp.h>
> 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 <a...@mandriva.com>
> -
> -  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 <assert.h>
> 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 <and...@suse.de>
>    (C) 2002  David Woodhouse <dw...@infradead.org>
>  
> -  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 <and...@suse.de>
>  
> -  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 <pjo...@redhat.com>
>   */
> 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 <a...@redhat.com>
> +  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 <a...@redhat.com>
>  */
>  
>  #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 <a...@redhat.com>
> +  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 <a...@redhat.com>
>  */
>  
>  #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 <a...@kernel.org>
>  
>    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 <argp.h>

> From: Domenico Andreoli <domenico.andre...@linux.com>
> Date: Tue, 15 Jan 2019 18:28:24 +0100
> Subject: Adopt SPDX-License-Identifier
> 
> ---
>  btf_encoder.c        |  6 ++++++
>  btf_encoder.h        |  5 +++++
>  codiff.c             |  6 ++----
>  ctf.h                |  5 +++++
>  ctf_encoder.c        |  6 ++----
>  ctf_encoder.h        |  6 ++----
>  ctracer.c            |  6 ++----
>  dtagnames.c          |  6 ++----
>  dutil.c              |  6 ++----
>  dutil.h              |  6 ++----
>  dwarf_loader.c       |  6 ++----
>  dwarves.c            |  6 ++----
>  dwarves.h            |  6 ++----
>  dwarves_emit.c       |  6 ++----
>  dwarves_emit.h       |  6 ++----
>  dwarves_fprintf.c    |  6 ++----
>  dwarves_reorganize.c |  6 ++----
>  dwarves_reorganize.h |  6 ++----
>  elf_symtab.c         |  6 ++----
>  elf_symtab.h         |  6 ++----
>  elfcreator.c         |  6 ++----
>  elfcreator.h         |  6 ++----
>  gobuffer.c           |  6 ++----
>  gobuffer.h           |  6 ++----
>  libbtf.c             |  6 ++++++
>  libbtf.h             |  6 ++++++
>  libctf.c             |  6 ++++++
>  libctf.h             |  6 ++++++
>  list.h               |  6 ++----
>  pahole.c             |  6 ++----
>  pdwtags.c            |  6 ++----
>  pfunct.c             |  6 ++----
>  pglobal.c            |  5 +----
>  prefcnt.c            |  6 ++----
>  rbtree.c             | 16 ++--------------
>  rbtree.h             | 16 ++--------------
>  scncopy.c            |  6 ++----
>  strings.c            |  6 ++----
>  strings.h            |  6 ++----
>  syscse.c             |  6 ++----
>  40 files changed, 105 insertions(+), 152 deletions(-)
> 
> diff --git a/btf_encoder.c b/btf_encoder.c
> index bfdab27..854434c 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 <a...@redhat.com>
> + */
> +
>  #include "dwarves.h"
>  #include "libbtf.h"
>  #include "btf.h"
> diff --git a/btf_encoder.h b/btf_encoder.h
> index a9d622f..62409f8 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 <a...@redhat.com>
> + */
>  
>  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 <a...@mandriva.com>
> -
> -  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 <argp.h>
> 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 <a...@redhat.com>
> + */
>  
>  #include <stdint.h>
>  
> diff --git a/ctf_encoder.c b/ctf_encoder.c
> index ab70254..8f1c0be 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 <a...@redhat.com>
> -
> -  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 <a...@redhat.com>
> -
> -  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 <a...@mandriva.com>
> -
> -  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 <argp.h>
> 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 <a...@mandriva.com>
> -
> -  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 <stdio.h>
> 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 <a...@redhat.com>
> +  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 <a...@redhat.com>
>  */
>  
>  
> diff --git a/dutil.h b/dutil.h
> index 0401b3e..7404d6b 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 <a...@redhat.com>
>   *
> - * 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 2cc0911..47eeb70 100644
> --- a/dwarf_loader.c
> +++ b/dwarf_loader.c
> @@ -1,9 +1,7 @@
>  /*
> -  Copyright (C) 2008 Arnaldo Carvalho de Melo <a...@redhat.com>
> +  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 <a...@redhat.com>
>  */
>  
>  #include <assert.h>
> diff --git a/dwarves.c b/dwarves.c
> index cef0681..3b966f3 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 <a...@mandriva.com>
>    Copyright (C) 2007 Red Hat Inc.
>    Copyright (C) 2007 Arnaldo Carvalho de Melo <a...@redhat.com>
> -
> -  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 <assert.h>
> diff --git a/dwarves.h b/dwarves.h
> index 52a68db..212ebea 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 <a...@redhat.com>
> -
> -  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 <a...@mandriva.com>
>    Copyright (C) 2007 Red Hat Inc.
>    Copyright (C) 2007 Arnaldo Carvalho de Melo <a...@redhat.com>
> -
> -  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 <string.h>
> 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 <a...@mandriva.com>
>    Copyright (C) 2007 Arnaldo Carvalho de Melo <a...@ghostprotocols.net>
> -
> -  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 <stdio.h>
> diff --git a/dwarves_fprintf.c b/dwarves_fprintf.c
> index 2164c9e..09626d0 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 <a...@mandriva.com>
>    Copyright (C) 2007..2009 Red Hat Inc.
>    Copyright (C) 2007..2009 Arnaldo Carvalho de Melo <a...@redhat.com>
> -
> -  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 <dwarf.h>
> 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 <a...@mandriva.com>
>    Copyright (C) 2007 Red Hat Inc.
>    Copyright (C) 2007 Arnaldo Carvalho de Melo <a...@redhat.com>
> -
> -  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 <a...@mandriva.com>
>    Copyright (C) 2007 Arnaldo Carvalho de Melo <a...@ghostprotocols.net>
> -
> -  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 <a...@redhat.com>
> -
> -  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 <malloc.h>
> 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 <a...@redhat.com>
> -
> -  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 <stdbool.h>
> 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 <pjo...@redhat.com>
>   */
> 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 <pjo...@redhat.com>
>   */
> 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 <a...@redhat.com>
>  
>    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 <a...@redhat.com>
> +  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 <a...@redhat.com>
>  */
>  
>  struct gobuffer {
> diff --git a/libbtf.c b/libbtf.c
> index 3f49c0f..f075988 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 <a...@redhat.com>
> + */
> +
>  #include <fcntl.h>
>  #include <gelf.h>
>  #include <limits.h>
> diff --git a/libbtf.h b/libbtf.h
> index 02156fd..fee05e3 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 <a...@redhat.com>
> + */
> +
>  #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 <a...@redhat.com>
> + */
> +
>  #include <fcntl.h>
>  #include <gelf.h>
>  #include <limits.h>
> 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 <a...@redhat.com>
> + */
> +
>  #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 <stddef.h>
> diff --git a/pahole.c b/pahole.c
> index 55803c3..4f99a85 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 <a...@mandriva.com>
>    Copyright (C) 2007-2008 Arnaldo Carvalho de Melo <a...@redhat.com>
> -
> -  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 <argp.h>
> 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 <a...@kernel.org>
> +  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 <a...@kernel.org>
>  */
>  
>  #include <argp.h>
> 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 <a...@mandriva.com>
>    Copyright (C) 2007 Arnaldo Carvalho de Melo <a...@redhat.com>
> -
> -  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 <argp.h>
> 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 <d...@haxent.com.br>
> - *
> - * 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 <argp.h>
> 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 <a...@mandriva.com>
> -
> -  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 <assert.h>
> 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 <and...@suse.de>
>    (C) 2002  David Woodhouse <dw...@infradead.org>
>  
> -  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 <and...@suse.de>
>  
> -  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 <pjo...@redhat.com>
>   */
> 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 <a...@redhat.com>
> +  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 <a...@redhat.com>
>  */
>  
>  #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 <a...@redhat.com>
> +  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 <a...@redhat.com>
>  */
>  
>  #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 <a...@kernel.org>
>  
>    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 <argp.h>

Reply via email to