Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp11649662rwr; Sat, 13 May 2023 07:18:14 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7e5cEnuuLvdji+Y7xOXV+mDrbVolD2HoqxLARpQPM66UzYgXAao1XcJLXYVUkyeib6f+Ua X-Received: by 2002:a17:903:1103:b0:1ab:d89:5ef6 with SMTP id n3-20020a170903110300b001ab0d895ef6mr34631918plh.68.1683987494389; Sat, 13 May 2023 07:18:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683987494; cv=none; d=google.com; s=arc-20160816; b=LP8dQ3cy8A1talmnQnddq+zgOdGcJ6ffN2irfYLgi+R6APtWqlJQrLTf0I6MUBDi2r SsCzEODB8pI9Xt5biOIeVmj+xoz6QTiCWn3D9Rm4vxM8tr6nbZ0CkjNDL2Y2hYdvbRYC RNfD1QSFQKOto6SnG5cdXQMYd6wDNRlDQhFAQSpcjsAWmE4Shr3owiHA/60FGUeEoAtP jZ20ECxIJ4om2sx+H8TkN0qnLFwNm3foHtc1Pm74RCsXUAtDIGJpuIb2HFSYnMG20ylV kIuMWVXd5hONO90AqWn5Mb21x5v9lcF25xQ7Cc8sbP/+Cw/ChS+0U9Hpw6dGY6kJeYYj bxyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=9DB3tShWsmKkupSG4kjkSPgdjSDVuKYI2Ix/HxUCEp4=; b=0Hfu7qBp16iJgOxxSpIDaRiynVXMzCGpLya1HnLmUnr1jJkn+yQimNWB3hgKwC3WfN vEijQaoDPyHu7+i6QImG8O2PCzOBGV/2l+KeXRK2v3AYGQwC2vESTsLo5N3cft+J8r/S PuhCxzeeeBa3283+SR+Y87Va2tVkQUtRNADVklmyJqF2ZBuiICT1JKoSo1iHDUo4enVy F97+IE14S2mlYg19/PFlCDcyOWjg1FGMhbhdLUlsUcwk5LWCPjfNfOe83ThRUHhMtbwk X1mEKanr88qcTqyOt0iM1hC6NeBGF0Jqy3n5BQ9024+aCKhX4D3+lChvBqOAQ59bkYPn 6nfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AKh6BRfP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a12-20020a170902900c00b001a94429df88si10941889plp.123.2023.05.13.07.17.57; Sat, 13 May 2023 07:18:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AKh6BRfP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230149AbjEMNol (ORCPT + 99 others); Sat, 13 May 2023 09:44:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238375AbjEMNoj (ORCPT ); Sat, 13 May 2023 09:44:39 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3EA5A1BD5 for ; Sat, 13 May 2023 06:43:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1683985433; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9DB3tShWsmKkupSG4kjkSPgdjSDVuKYI2Ix/HxUCEp4=; b=AKh6BRfPbXI8tSfvbMPIWiQ/lXwc1+naBX6guPflwYEZH/Q3UGdJ2JWK+jv5/PbVsLtyHg UQyGkuUKsokxeI2EmGb0EnzhJkp/7YSueAY4kgLZ3EQR7saq45ePIqaSnPZTS1XUmQeONM 61HIjoTj7K6/cjuJ5ZzDP8ifhmW30+Y= Received: from mail-vk1-f198.google.com (mail-vk1-f198.google.com [209.85.221.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-648-hy96PfUMMz-sJlGwAGmUUg-1; Sat, 13 May 2023 09:43:51 -0400 X-MC-Unique: hy96PfUMMz-sJlGwAGmUUg-1 Received: by mail-vk1-f198.google.com with SMTP id 71dfb90a1353d-45307c00953so1918978e0c.0 for ; Sat, 13 May 2023 06:43:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683985430; x=1686577430; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9DB3tShWsmKkupSG4kjkSPgdjSDVuKYI2Ix/HxUCEp4=; b=M+vvEEY348yd2YfrHeWzoSKgr/F2EVsz4aclhdy7dN19MCLjQdRRXavrwh7Log56Lt QZ6xCArwQwXiud6iQ+ZludlPdm8pYKy5qjVM4KhQ0vVtvhisW+6qpYgLEQRQzlSsaNhZ HChtjwlita+1/cJS/UosRybuzIWfYYHkop9nt7nyd4qt+EUZa7gCMwDO13fxcIiYeqqL QHZPX8LMlrzc/XjVWXNmIJo99ABVMw5KPbcRO/srW1Xk72gUgznInDmY4xHWrbhNtB1G Smdrmjdcxymjcej6uCuEWgWVDJmCmW3qQxXy8eM4ldtAcGidwr59gipgnvGvKCIVHVbq Egeg== X-Gm-Message-State: AC+VfDwmZrY1ooMQTGocWW6pqthZuleDDm5QdTw/TXd5qRT8F1aF/oMP 9+6mGISrdrPcoqroNGziTnIZ9CogN8oF9zhlK+jn/yMXNhKkLLMKoZ6c40rPDuifrsJdI6SweeR g2S45L/ugHdye9C9aYPY/MGcS8pYQVGj7FTgocN1S X-Received: by 2002:a1f:cf44:0:b0:43c:6e7d:60b0 with SMTP id f65-20020a1fcf44000000b0043c6e7d60b0mr8278749vkg.15.1683985430624; Sat, 13 May 2023 06:43:50 -0700 (PDT) X-Received: by 2002:a1f:cf44:0:b0:43c:6e7d:60b0 with SMTP id f65-20020a1fcf44000000b0043c6e7d60b0mr8278732vkg.15.1683985430363; Sat, 13 May 2023 06:43:50 -0700 (PDT) MIME-Version: 1.0 References: <20230512100620.36807-1-bagasdotme@gmail.com> <20230512100620.36807-9-bagasdotme@gmail.com> In-Reply-To: From: Richard Fontana Date: Sat, 13 May 2023 09:43:39 -0400 Message-ID: Subject: Re: [PATCH v2 08/10] drivers: watchdog: Replace GPL license notice with SPDX identifier To: Bagas Sanjaya Cc: Linux SPDX Licenses , Linux DRI Development , Linux Kernel Mailing List , Linux Networking , Linux ARM , Linux Staging Drivers , Linux Watchdog Devices , Linux Kernel Actions , Diederik de Haas , Kate Stewart , Philippe Ombredanne , Thomas Gleixner , David Airlie , Karsten Keil , Jay Vosburgh , Andy Gospodarek , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Sam Creasey , Dominik Brodowski , Daniel Mack , Haojian Zhuang , Robert Jarzmik , Greg Kroah-Hartman , Wim Van Sebroeck , Guenter Roeck , Jan Kara , =?UTF-8?Q?Andreas_F=C3=A4rber?= , Manivannan Sadhasivam , Ray Lehtiniemi , Alessandro Zummo , Andrey Panin , Oleg Drokin , Marc Zyngier , Jonas Jensen , Sylver Bruneau , Andrew Sharp , Denis Turischev , Mika Westerberg , Alan Cox , Simon Horman Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 13, 2023 at 6:53=E2=80=AFAM Bagas Sanjaya wrote: > > On 5/12/23 19:46, Richard Fontana wrote: > > On Fri, May 12, 2023 at 6:07=E2=80=AFAM Bagas Sanjaya wrote: > > > > > >> diff --git a/drivers/watchdog/sb_wdog.c b/drivers/watchdog/sb_wdog.c > >> index 504be461f992a9..822bf8905bf3ce 100644 > >> --- a/drivers/watchdog/sb_wdog.c > >> +++ b/drivers/watchdog/sb_wdog.c > >> @@ -1,3 +1,4 @@ > >> +// SPDX-License-Identifier: GPL-1.0+ > >> /* > >> * Watchdog driver for SiByte SB1 SoCs > >> * > >> @@ -38,10 +39,6 @@ > >> * (c) Copyright 1996 Alan Cox , > >> * All Rights Reserved. > >> * > >> - * This program is free software; you can redistribute it and/or > >> - * modify it under the terms of the GNU General Public License > >> - * version 1 or 2 as published by the Free Software Foundation. > > > > Shouldn't this be > > // SPDX-License-Identifier: GPL-1.0 OR GPL-2.0 > > (or in current SPDX notation GPL-1.0-only OR GPL-2.0-only) ? > > > > Nope, as it will fail spdxcheck.py. Also, SPDX specification [1] > doesn't have negation operator (NOT), thus the licensing requirement > on the above notice can't be expressed reliably in SPDX here. > > [1]: https://spdx.github.io/spdx-spec/v2.3/SPDX-license-expressions/ The GPL identifiers in recent versions of SPDX include an `-only` and an `-or-later` variant. So I don't see why you can't represent it as `GPL-1.0-only OR GPL-2.0-only`. From what I understand the kernel requires/prefers use of the earlier approach to GPL identifiers (which was better in my opinion) under which `GPL-1.0 OR GPL-2.0` would at least be semantically similar. I don't see why you need a negation operator in this case. You have other patches where you used the `-only` identifiers. Richard