From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Jason@zx2c4.com Received: from krantz.zx2c4.com (localhost [127.0.0.1]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id c3313310 for ; Thu, 30 Nov 2017 23:42:59 +0000 (UTC) Received: from frisell.zx2c4.com (frisell.zx2c4.com [192.95.5.64]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 4a8ccd21 for ; Thu, 30 Nov 2017 23:42:59 +0000 (UTC) Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 6037697a for ; Thu, 30 Nov 2017 23:42:59 +0000 (UTC) Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 735f3e9b (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128:NO) for ; Thu, 30 Nov 2017 23:42:59 +0000 (UTC) Received: by mail-ot0-f170.google.com with SMTP id p3so7664452oti.5 for ; Thu, 30 Nov 2017 15:49:10 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <20171130152355.25387-1-gregkh@linuxfoundation.org> <20171130152355.25387-2-gregkh@linuxfoundation.org> From: "Jason A. Donenfeld" Date: Fri, 1 Dec 2017 00:49:09 +0100 Message-ID: Subject: Re: [PATCH 1/6] src/tools: add SPDX tags to all files To: Greg Kroah-Hartman Content-Type: text/plain; charset="UTF-8" Cc: WireGuard mailing list List-Id: Development discussion of WireGuard List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, Nov 30, 2017 at 6:57 PM, Jason A. Donenfeld wrote: > On Thu, Nov 30, 2017 at 4:23 PM, Greg Kroah-Hartman > wrote: >> It's good to have SPDX identifiers in all files as the Linux kernel >> diff --git a/src/tools/config.c b/src/tools/config.c >> index 6ff03767f9e6..312cbcdd7a85 100644 >> --- a/src/tools/config.c >> +++ b/src/tools/config.c >> @@ -1,3 +1,4 @@ >> +// SPDX-License-Identifier: GPL-2.0 >> /* Copyright (C) 2015-2017 Jason A. Donenfeld . All Rights Reserved. */ >> >> #include >> diff --git a/src/tools/config.h b/src/tools/config.h >> index 63a272cc1285..e3ad9f87404b 100644 >> --- a/src/tools/config.h >> +++ b/src/tools/config.h >> @@ -1,3 +1,4 @@ >> +/* SPDX-License-Identifier: GPL-2.0 */ >> /* Copyright (C) 2015-2017 Jason A. Donenfeld . All Rights Reserved. */ > > It looks like you're giving .h a /* style comment and .c a // style > comment. Is there a reason for this, or did you just have two > different sed commands by accident? zx2c4@thinkpad ~/Projects/linux $ grep -rl '/* SPDX-' | sed 's/.*\/\([^/]\+\)$/\1/;s/.*\.\(.\+\)$/\1/' | sort | uniq -c | sort -nr | head -n 5 7621 h 3671 c 1193 Makefile 486 S 221 dts zx2c4@thinkpad ~/Projects/linux $ grep -rl '// SPDX-' | sed 's/.*\/\([^/]\+\)$/\1/;s/.*\.\(.\+\)$/\1/' | sort | uniq -c | sort -nr | head -n 5 3655 c 326 h 187 dts 147 dtsi 8 cocci Doesn't seem like there's much rhyme or reason to it.