Received: by 10.223.164.202 with SMTP id h10csp681026wrb; Thu, 30 Nov 2017 05:51:49 -0800 (PST) X-Google-Smtp-Source: AGs4zMYi8Nb3QBkYb2fLXrqtGk8W71H+SETgSZJjlhKkcDEEpoAKjzjhXGtyuWbs/uATEnPQ8ui0 X-Received: by 10.98.11.71 with SMTP id t68mr6612921pfi.79.1512049909284; Thu, 30 Nov 2017 05:51:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512049909; cv=none; d=google.com; s=arc-20160816; b=RmX77mhV4BIfoWtGdpbuzeB1TOGCEjGzMqRroiqNL6f/B4euyFuMnyQbIr3O/MUkvU eWrxh7M9C/Lnh180zBgdVSwuYR8BsbptVeoUpxZwPVIR+Cqc6Fo/z+1FqRoDWfOku+ne 8D54gNTgHQngMWWr20Pl9uLvOZMgbtBKoN1fAWesmt6gJh9TXQJ2Jzz8hG61TdB85xC0 ubR+tlnwgTa/RrKDzGjCVYcE3Cmz09oxAm73Ji/d2vVzBrK+Dc/x90RnECcUFjTpt+FY fbbYAJMN2BXr8yA/GrJes5RfnIIw9kmpEPDMfu96t5HIKlUJ/xZLzCo4Rmh+IN6eWBM8 At+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=DZveI7nwYp+GwBJQgehlWV2VU+JLpSV61VXRQYXO5MU=; b=fq2xR6bnwn5qcfIE+tUzhJgk1pU6MiOYhsNegMQV4rhLe99R48hQMlXFkIF1t8AWHT d4MARhIzskQ98nGs07OEdvXMoiJ2gG5fzLr38cmr22tWona3yE7uccMXcc/3/R3uM4BN op5Ku0k400I8EkjW2MpebG9oOTSYnP5yJOlpNJpjJKD22eLmX+5ZYH/Tk6Yr5lC+Xo/1 STsY21vneB/+YQY5Fn8UQqqE+AON6KlMKrpwvNYrzEaY05bGUul1PBZsSqSn8RnvcUdX Bnsx2RaTKva7OJpXOIn9Zmb7RiSFrw0wMzLUdHXNrGqQIFFNH9Sp9anIEWH0+jOjgFnK I6cA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nexb-com.20150623.gappssmtp.com header.s=20150623 header.b=pFzMHTGS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h3si2991644pgr.714.2017.11.30.05.51.29; Thu, 30 Nov 2017 05:51:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nexb-com.20150623.gappssmtp.com header.s=20150623 header.b=pFzMHTGS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752298AbdK3NuM (ORCPT + 99 others); Thu, 30 Nov 2017 08:50:12 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:35711 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751443AbdK3NuK (ORCPT ); Thu, 30 Nov 2017 08:50:10 -0500 Received: by mail-wm0-f67.google.com with SMTP id f9so12615030wmh.0 for ; Thu, 30 Nov 2017 05:50:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexb-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=DZveI7nwYp+GwBJQgehlWV2VU+JLpSV61VXRQYXO5MU=; b=pFzMHTGSEYS7JwdoziNzd5yru8gmj2E+HBau5+68DKeRN2ppPM20zN8Cm0DXMEzbjb n2Rj6iPnpoDcXKpLtkuKfWhICcj3xGTEfUp0iCdhO6oKrr0HVVTvg2a5maNnEnYNHjwT MG6yty2i4sGFIpuPKaDN3NudQSPneUct5BOlP7j4YTVmd+IA1CuE7SlIAR2gorBJ7dYr 3Z1m5msOVin6FyJ1gXiAjyIGlB8F6KyFvKWa1w3MZ7ggEIAcRQyiel1yUeZQi7VDdxjM twf2GTUPfrI1rKnLTyiYQAuVMtIRcyEeOg+BxXBNHf8CzvUBRmtGAtwnbe+AP4jTNsLw YnaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=DZveI7nwYp+GwBJQgehlWV2VU+JLpSV61VXRQYXO5MU=; b=lZP/3pDpIiWvbxaD8rTDitizjVicrq3lhewJwskJSho/CRDYxyeMwm9kzFBrTD4ODC k/bkiKNYTLi9VlCMDxPT0r+HxGnJXTiWcdbmJYrpVSgWoBAI8nS/kzByt1FrxgeVNose RHJQowO2Tn/TxSRFNDkIQ72qrepDmok+4X8jwSVfUAMzmrf8fFj3QXO0PR0BJ26/jHI1 8qFIMik0VB1E6Q8sa9Ep/00AcphbLe3+vGzwfwYdfsvgmKXPnXvNundBuMYshLQu0EWJ tjbUFYKnrOb4sOMt6TGRiyTWU1d7H0KgXFyLwqj6M6wujnANVkzvQmYba/zA4fghpl1S ALKQ== X-Gm-Message-State: AJaThX6qWvHffixrSABHMFVhU/ujoOZ6Wm6cef3wrfNFeRF0YTKP3Rvl 9+/Hl+fFCbj6LxLv6EPoPHiPXYtBYtbJKgsmvZFdlw== X-Received: by 10.28.61.135 with SMTP id k129mr618133wma.81.1512049808650; Thu, 30 Nov 2017 05:50:08 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.157.195 with HTTP; Thu, 30 Nov 2017 05:49:28 -0800 (PST) In-Reply-To: References: <20171130084108.23083-1-benjamin.gaignard@st.com> From: Philippe Ombredanne Date: Thu, 30 Nov 2017 14:49:28 +0100 Message-ID: Subject: Re: [PATCH v2] clk: stm32-h7: fix copyright To: Benjamin Gaignard Cc: Michael Turquette , Stephen Boyd , Maxime Coquelin , Alexandre Torgue , linux-clk@vger.kernel.org, "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , LKML , Benjamin Gaignard , Gabriel Fernandez Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Benjamin: On Thu, Nov 30, 2017 at 2:05 PM, Benjamin Gaignard wrote: > 2017-11-30 13:56 GMT+01:00 Philippe Ombredanne : >> On Thu, Nov 30, 2017 at 1:47 PM, Benjamin Gaignard >> wrote: >>> 2017-11-30 12:28 GMT+01:00 Philippe Ombredanne : >>>> On Thu, Nov 30, 2017 at 9:41 AM, Benjamin Gaignard >>>> wrote: >>>>> Uniformize STMicroelectronics copyrights header >>>>> Add SPDX identifier >>>>> >>>>> Signed-off-by: Benjamin Gaignard >>>>> Acked-by: Alexandre TORGUE >>>>> CC: Gabriel Fernandez >>>>> --- >>>>> drivers/clk/clk-stm32h7.c | 19 +++---------------- >>>>> 1 file changed, 3 insertions(+), 16 deletions(-) >>>>> >>>>> diff --git a/drivers/clk/clk-stm32h7.c b/drivers/clk/clk-stm32h7.c >>>>> index 61c3e40507d3..db2b162c0d4c 100644 >>>>> --- a/drivers/clk/clk-stm32h7.c >>>>> +++ b/drivers/clk/clk-stm32h7.c >>>>> @@ -1,20 +1,7 @@ >>>>> +// SPDX-License-Identifier: GPL-2.0 >>>>> /* >>>>> - * Copyright (C) Gabriel Fernandez 2017 >>>>> - * Author: Gabriel Fernandez >>>>> - * >>>>> - * License terms: GPL V2.0. >>>>> - * >>>>> - * This program is free software; you can redistribute it and/or modify it >>>>> - * under the terms and conditions of the GNU General Public License, >>>>> - * version 2, as published by the Free Software Foundation. >>>>> - * >>>>> - * This program is distributed in the hope 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, see . >>>>> + * Copyright (C) STMicroelectronics 2017 >>>>> + * Author: Gabriel Fernandez for STMicroelectronics. >>>>> */ >>>>> >>>>> #include >>>> >>>> Awesome! Don't you like it when you remove this type of things? >>> >>> Yes but is also means that many other STM files need to be updated... >> >> Sure thing. I have a FLOSS tool to help with this FWIW. I would be >> glad to help as needed. > > Do you have a link to this tool ? https://github.com/nexB/scancode-toolkit And the experimental 833-espedexify [1] branch has a new option such that if a single license is detected exactly and is clearly a well defined SPDX license, it can also delete the boilerplate and inject the correct SPDX identifier at once (though not at the canonical first line place, and not being too smart about the comment style that is hardcoded to //) NB: I only spent a couple hours on this new license text decrapifier option [2] and it is very (too) strict, making too many checks before deciding to remove boilerplate ... but that would be my pleasure to make it work for you and iron the quirks. I am not qualified to contribute code to the kernel (though I dabble enough in C to have a few odd patches of mine in strace) BUT I grok Python and a few thing about licensing alright. FWIW, this is the tool that has been used to help greg k-h and tglx injecting the first pass of SPDX ids and that should be useful to do more of it. As a weird twist of fate, it does not do (yet) a great job at the detection of normalized SPDX-License-Identifiers .... but then the whole point is that once you have these a good ole grep is all you should need, right? But it is otherwise best in class for license detection and uses eventually a very simple algo: a good ole diff with a few twists. It is routinely used by several large and small projects, orgs and companies for license detection and compliance and is supposed to be the least worst of the tools in that domain. At least I am working on hard to make it so. And bonus: any bug reported or ticket or question reported by a kernel contributor gets VIP treatment, whatever this means :) [1] https://github.com/nexB/scancode-toolkit/tree/833-espedexify [2] https://github.com/nexB/scancode-toolkit/blob/833-espedexify/src/scancode/plugin_espedexify.py -- Cordially Philippe Ombredanne From 1585496396376667469@xxx Thu Nov 30 13:06:31 +0000 2017 X-GM-THRID: 1585479740034463145 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread