From patchwork Fri Apr 7 13:16:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Huth X-Patchwork-Id: 9669499 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4770D602A0 for ; Fri, 7 Apr 2017 13:17:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 37C4D27F94 for ; Fri, 7 Apr 2017 13:17:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 29DA42818B; Fri, 7 Apr 2017 13:17:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A6C5527F94 for ; Fri, 7 Apr 2017 13:17:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755901AbdDGNRI (ORCPT ); Fri, 7 Apr 2017 09:17:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56452 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755754AbdDGNRH (ORCPT ); Fri, 7 Apr 2017 09:17:07 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id EDF5064D80 for ; Fri, 7 Apr 2017 13:17:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com EDF5064D80 Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=thuth@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com EDF5064D80 Received: from thh440s.str.redhat.com (dhcp-192-189.str.redhat.com [10.33.192.189]) by smtp.corp.redhat.com (Postfix) with ESMTP id 727FA88685; Fri, 7 Apr 2017 13:16:58 +0000 (UTC) From: Thomas Huth To: kvm@vger.kernel.org, pbonzini@redhat.com, rkrcmar@redhat.com Cc: drjones@redhat.com Subject: [kvm-unit-tests PATCH] lib: Add headers to generic library files Date: Fri, 7 Apr 2017 15:16:57 +0200 Message-Id: <1491571017-12452-1-git-send-email-thuth@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Fri, 07 Apr 2017 13:17:07 +0000 (UTC) Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Many files in the lib folder do not have proper statements about their license. Add such a header there so that it is clear under which conditions the code can be used. Signed-off-by: Thomas Huth Reviewed-by: Andrew Jones --- lib/argv.c | 7 +++++++ lib/auxinfo.h | 4 ++++ lib/errata.h | 6 ++++++ lib/printf.c | 7 +++++++ lib/setjmp.h | 6 ++++++ lib/stack.c | 7 +++++++ lib/stack.h | 6 ++++++ lib/string.c | 7 +++++++ lib/string.h | 6 ++++++ 9 files changed, 56 insertions(+) diff --git a/lib/argv.c b/lib/argv.c index a37fc87..f2466d4 100644 --- a/lib/argv.c +++ b/lib/argv.c @@ -1,3 +1,10 @@ +/* + * Set up arguments for main() and prepare environment variables + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU Library General Public License version 2. + */ + #include "libcflat.h" #include "auxinfo.h" diff --git a/lib/auxinfo.h b/lib/auxinfo.h index ef2376b..669ba5d 100644 --- a/lib/auxinfo.h +++ b/lib/auxinfo.h @@ -1,3 +1,7 @@ +/* + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU Library General Public License version 2. + */ #ifndef _AUXINFO_H_ #define _AUXINFO_H_ struct auxinfo { diff --git a/lib/errata.h b/lib/errata.h index 5e63f73..7b089c2 100644 --- a/lib/errata.h +++ b/lib/errata.h @@ -1,3 +1,9 @@ +/* + * errata functions + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU Library General Public License version 2. + */ #ifndef _ERRATA_H_ #define _ERRATA_H_ diff --git a/lib/printf.c b/lib/printf.c index 2aec59a..063a1ed 100644 --- a/lib/printf.c +++ b/lib/printf.c @@ -1,3 +1,10 @@ +/* + * libc printf and friends + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU Library General Public License version 2. + */ + #include "libcflat.h" #define BUFSZ 2000 diff --git a/lib/setjmp.h b/lib/setjmp.h index 334f466..2c56b4c 100644 --- a/lib/setjmp.h +++ b/lib/setjmp.h @@ -1,3 +1,9 @@ +/* + * setjmp/longjmp prototypes + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU Library General Public License version 2. + */ #ifndef LIBCFLAT_SETJMP_H #define LIBCFLAT_SETJMP_H 1 diff --git a/lib/stack.c b/lib/stack.c index b0a0295..bdb23fd 100644 --- a/lib/stack.c +++ b/lib/stack.c @@ -1,3 +1,10 @@ +/* + * stack related functions + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU Library General Public License version 2. + */ + #include #include diff --git a/lib/stack.h b/lib/stack.h index cfc66f4..10fc2f7 100644 --- a/lib/stack.h +++ b/lib/stack.h @@ -1,3 +1,9 @@ +/* + * Header for stack related functions + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU Library General Public License version 2. + */ #ifndef _STACK_H_ #define _STACK_H_ diff --git a/lib/string.c b/lib/string.c index 833f22b..776fa0d 100644 --- a/lib/string.c +++ b/lib/string.c @@ -1,3 +1,10 @@ +/* + * libc string functions + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU Library General Public License version 2. + */ + #include "libcflat.h" unsigned long strlen(const char *buf) diff --git a/lib/string.h b/lib/string.h index 2391013..493d51b 100644 --- a/lib/string.h +++ b/lib/string.h @@ -1,3 +1,9 @@ +/* + * Header for libc string functions + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU Library General Public License version 2. + */ #ifndef __STRING_H #define __STRING_H