* [PATCH] license: standardize SPDX tag for 3-Clause BSD
@ 2025-11-12 9:13 Thomas Monjalon
2025-11-12 9:31 ` Bruce Richardson
0 siblings, 1 reply; 5+ messages in thread
From: Thomas Monjalon @ 2025-11-12 9:13 UTC (permalink / raw)
To: dev; +Cc: Hemant Agrawal, Sachin Saxena, Stephen Hemminger
Make sure the SPDX tag is used as defined in license/README.
Reduce separator to single space.
Use parenthesis and uppercased "OR" when a second license is applied.
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
---
doc/guides/eventdevs/dpaa.rst | 2 +-
drivers/common/dpaax/caamflib/desc/pdcp.h | 2 +-
drivers/event/dpaa/dpaa_eventdev.c | 2 +-
drivers/event/dpaa/dpaa_eventdev.h | 2 +-
| 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/doc/guides/eventdevs/dpaa.rst b/doc/guides/eventdevs/dpaa.rst
index 33d41fc7c4..8fb1d469dd 100644
--- a/doc/guides/eventdevs/dpaa.rst
+++ b/doc/guides/eventdevs/dpaa.rst
@@ -1,4 +1,4 @@
-.. SPDX-License-Identifier: BSD-3-Clause
+.. SPDX-License-Identifier: BSD-3-Clause
Copyright 2017 NXP
NXP DPAA Eventdev Driver
diff --git a/drivers/common/dpaax/caamflib/desc/pdcp.h b/drivers/common/dpaax/caamflib/desc/pdcp.h
index 55159d53f0..460f48c9e3 100644
--- a/drivers/common/dpaax/caamflib/desc/pdcp.h
+++ b/drivers/common/dpaax/caamflib/desc/pdcp.h
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: BSD-3-Clause or GPL-2.0+
+/* SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0+)
* Copyright 2008-2013 Freescale Semiconductor, Inc.
* Copyright 2019-2025 NXP
*/
diff --git a/drivers/event/dpaa/dpaa_eventdev.c b/drivers/event/dpaa/dpaa_eventdev.c
index 400e0ecd1c..e5d93afca2 100644
--- a/drivers/event/dpaa/dpaa_eventdev.c
+++ b/drivers/event/dpaa/dpaa_eventdev.c
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: BSD-3-Clause
+/* SPDX-License-Identifier: BSD-3-Clause
* Copyright 2017-2019 NXP
*/
diff --git a/drivers/event/dpaa/dpaa_eventdev.h b/drivers/event/dpaa/dpaa_eventdev.h
index 047c9781bd..1794f4cde6 100644
--- a/drivers/event/dpaa/dpaa_eventdev.h
+++ b/drivers/event/dpaa/dpaa_eventdev.h
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: BSD-3-Clause
+/* SPDX-License-Identifier: BSD-3-Clause
* Copyright 2017 NXP
*/
--git a/drivers/net/tap/bpf/tap_rss.c b/drivers/net/tap/bpf/tap_rss.c
index 6a1c3761b7..040cd7488c 100644
--- a/drivers/net/tap/bpf/tap_rss.c
+++ b/drivers/net/tap/bpf/tap_rss.c
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0
+/* SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0)
* Copyright 2017 Mellanox Technologies, Ltd
*/
--
2.51.0
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] license: standardize SPDX tag for 3-Clause BSD
2025-11-12 9:13 [PATCH] license: standardize SPDX tag for 3-Clause BSD Thomas Monjalon
@ 2025-11-12 9:31 ` Bruce Richardson
2025-11-12 9:38 ` Thomas Monjalon
0 siblings, 1 reply; 5+ messages in thread
From: Bruce Richardson @ 2025-11-12 9:31 UTC (permalink / raw)
To: Thomas Monjalon; +Cc: dev, Hemant Agrawal, Sachin Saxena, Stephen Hemminger
On Wed, Nov 12, 2025 at 10:13:35AM +0100, Thomas Monjalon wrote:
> Make sure the SPDX tag is used as defined in license/README.
> Reduce separator to single space.
> Use parenthesis and uppercased "OR" when a second license is applied.
>
Upper-case or is fine, I suppose, but I'm not convinced we need the
parentheses. However, I see other drivers tend to have it, so let's
standardize on that.
> Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] license: standardize SPDX tag for 3-Clause BSD
2025-11-12 9:31 ` Bruce Richardson
@ 2025-11-12 9:38 ` Thomas Monjalon
2025-11-12 9:41 ` Bruce Richardson
0 siblings, 1 reply; 5+ messages in thread
From: Thomas Monjalon @ 2025-11-12 9:38 UTC (permalink / raw)
To: Bruce Richardson; +Cc: dev, Hemant Agrawal, Sachin Saxena, Stephen Hemminger
12/11/2025 10:31, Bruce Richardson:
> On Wed, Nov 12, 2025 at 10:13:35AM +0100, Thomas Monjalon wrote:
> > Make sure the SPDX tag is used as defined in license/README.
> > Reduce separator to single space.
> > Use parenthesis and uppercased "OR" when a second license is applied.
>
> Upper-case or is fine, I suppose, but I'm not convinced we need the
> parentheses. However, I see other drivers tend to have it, so let's
> standardize on that.
I'm not convinced as well.
Looking at https://spdx.dev/learn/handling-license-info/
it seems we don't need parentheses in general.
Also we should improve our script to check SPDX tag.
Stephen has a patch already in this area.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] license: standardize SPDX tag for 3-Clause BSD
2025-11-12 9:38 ` Thomas Monjalon
@ 2025-11-12 9:41 ` Bruce Richardson
2025-11-12 9:43 ` Thomas Monjalon
0 siblings, 1 reply; 5+ messages in thread
From: Bruce Richardson @ 2025-11-12 9:41 UTC (permalink / raw)
To: Thomas Monjalon; +Cc: dev, Hemant Agrawal, Sachin Saxena, Stephen Hemminger
On Wed, Nov 12, 2025 at 10:38:44AM +0100, Thomas Monjalon wrote:
> 12/11/2025 10:31, Bruce Richardson:
> > On Wed, Nov 12, 2025 at 10:13:35AM +0100, Thomas Monjalon wrote:
> > > Make sure the SPDX tag is used as defined in license/README.
> > > Reduce separator to single space.
> > > Use parenthesis and uppercased "OR" when a second license is applied.
> >
> > Upper-case or is fine, I suppose, but I'm not convinced we need the
> > parentheses. However, I see other drivers tend to have it, so let's
> > standardize on that.
>
> I'm not convinced as well.
>
> Looking at https://spdx.dev/learn/handling-license-info/
> it seems we don't need parentheses in general.
>
Shall we just avoid fixing the parens until we definitively decide on that.
Just standardize on spacing and upper case "OR"? Whatever approach you
decide for this release, you can keep my ack.
/Bruce
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] license: standardize SPDX tag for 3-Clause BSD
2025-11-12 9:41 ` Bruce Richardson
@ 2025-11-12 9:43 ` Thomas Monjalon
0 siblings, 0 replies; 5+ messages in thread
From: Thomas Monjalon @ 2025-11-12 9:43 UTC (permalink / raw)
To: Bruce Richardson; +Cc: dev, Hemant Agrawal, Sachin Saxena, Stephen Hemminger
12/11/2025 10:41, Bruce Richardson:
> On Wed, Nov 12, 2025 at 10:38:44AM +0100, Thomas Monjalon wrote:
> > 12/11/2025 10:31, Bruce Richardson:
> > > On Wed, Nov 12, 2025 at 10:13:35AM +0100, Thomas Monjalon wrote:
> > > > Make sure the SPDX tag is used as defined in license/README.
> > > > Reduce separator to single space.
> > > > Use parenthesis and uppercased "OR" when a second license is applied.
> > >
> > > Upper-case or is fine, I suppose, but I'm not convinced we need the
> > > parentheses. However, I see other drivers tend to have it, so let's
> > > standardize on that.
> >
> > I'm not convinced as well.
> >
> > Looking at https://spdx.dev/learn/handling-license-info/
> > it seems we don't need parentheses in general.
> >
> Shall we just avoid fixing the parens until we definitively decide on that.
> Just standardize on spacing and upper case "OR"? Whatever approach you
> decide for this release, you can keep my ack.
I plan to rework this patch by standardizing without parentheses,
and add more checks.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-11-12 9:43 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-12 9:13 [PATCH] license: standardize SPDX tag for 3-Clause BSD Thomas Monjalon
2025-11-12 9:31 ` Bruce Richardson
2025-11-12 9:38 ` Thomas Monjalon
2025-11-12 9:41 ` Bruce Richardson
2025-11-12 9:43 ` Thomas Monjalon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).