Linux Watchdog driver development
 help / color / mirror / Atom feed
* [PATCH] watchdog: sb_wdog: add missing SPDX license identifier
@ 2026-05-10 19:18 Mayur Kumar
  2026-05-11 14:24 ` Guenter Roeck
  2026-05-11 21:44 ` sashiko-bot
  0 siblings, 2 replies; 4+ messages in thread
From: Mayur Kumar @ 2026-05-10 19:18 UTC (permalink / raw)
  To: wim, linux; +Cc: linux-watchdog, linux-kernel, Mayur Kumar

checkpatch.pl reports the following warning:

WARNING: Missing or malformed SPDX-License-Identifier tag in line 1

Per Documentation/process/license-rules.rst, add the appropriate SPDX
license identifier to the first line of the C source file using the
'//' style comment. Default to GPL-2.0-only.

Signed-off-by: Mayur Kumar <kmayur809@gmail.com>
---
 drivers/watchdog/sb_wdog.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/watchdog/sb_wdog.c b/drivers/watchdog/sb_wdog.c
index eaa68b54cf5..03db71a43d6 100644
--- a/drivers/watchdog/sb_wdog.c
+++ b/drivers/watchdog/sb_wdog.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * Watchdog driver for SiByte SB1 SoCs
  *
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] watchdog: sb_wdog: add missing SPDX license identifier
  2026-05-10 19:18 [PATCH] watchdog: sb_wdog: add missing SPDX license identifier Mayur Kumar
@ 2026-05-11 14:24 ` Guenter Roeck
  2026-05-11 21:44 ` sashiko-bot
  1 sibling, 0 replies; 4+ messages in thread
From: Guenter Roeck @ 2026-05-11 14:24 UTC (permalink / raw)
  To: Mayur Kumar; +Cc: wim, linux-watchdog, linux-kernel

On Mon, May 11, 2026 at 12:48:47AM +0530, Mayur Kumar wrote:
> checkpatch.pl reports the following warning:
> 
> WARNING: Missing or malformed SPDX-License-Identifier tag in line 1
> 
> Per Documentation/process/license-rules.rst, add the appropriate SPDX
> license identifier to the first line of the C source file using the
> '//' style comment. Default to GPL-2.0-only.
> 
> Signed-off-by: Mayur Kumar <kmayur809@gmail.com>

Applied.

Guenter

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] watchdog: sb_wdog: add missing SPDX license identifier
  2026-05-10 19:18 [PATCH] watchdog: sb_wdog: add missing SPDX license identifier Mayur Kumar
  2026-05-11 14:24 ` Guenter Roeck
@ 2026-05-11 21:44 ` sashiko-bot
  2026-05-11 22:07   ` Guenter Roeck
  1 sibling, 1 reply; 4+ messages in thread
From: sashiko-bot @ 2026-05-11 21:44 UTC (permalink / raw)
  To: Mayur Kumar; +Cc: linux-watchdog

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The applied SPDX-License-Identifier (GPL-2.0-only) contradicts the explicit license boilerplate already present in the file.
--

commit 64e66089a6e522c77284fd01a8849e12869d23c7
Author: Mayur Kumar <kmayur809@gmail.com>

watchdog: sb_wdog: add missing SPDX license identifier

This patch resolves a checkpatch warning by adding an SPDX license
identifier to the driver source file. It defaults the license to
GPL-2.0-only.

> diff --git a/drivers/watchdog/sb_wdog.c b/drivers/watchdog/sb_wdog.c
> index eaa68b54cf567..03db71a43d6fe 100644
> --- a/drivers/watchdog/sb_wdog.c
> +++ b/drivers/watchdog/sb_wdog.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-only
>  /*
>   * Watchdog driver for SiByte SB1 SoCs
>   *

Does the GPL-2.0-only SPDX identifier contradict the explicit license
boilerplate already present in this file?

Looking at the existing header comment block:

drivers/watchdog/sb_wdog.c:
 *	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.

Applying GPL-2.0-only restricts the file to GPLv2 only, which strips the
explicitly granted GPLv1 permission and creates a licensing ambiguity for
downstream users.

Should the SPDX identifier be updated to match the existing boilerplate text?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260510191847.50499-1-kmayur809@gmail.com?part=1

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] watchdog: sb_wdog: add missing SPDX license identifier
  2026-05-11 21:44 ` sashiko-bot
@ 2026-05-11 22:07   ` Guenter Roeck
  0 siblings, 0 replies; 4+ messages in thread
From: Guenter Roeck @ 2026-05-11 22:07 UTC (permalink / raw)
  To: sashiko, Mayur Kumar; +Cc: linux-watchdog

On 5/11/26 14:44, sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
> - [Medium] The applied SPDX-License-Identifier (GPL-2.0-only) contradicts the explicit license boilerplate already present in the file.
> --
> 
> commit 64e66089a6e522c77284fd01a8849e12869d23c7
> Author: Mayur Kumar <kmayur809@gmail.com>
> 
> watchdog: sb_wdog: add missing SPDX license identifier
> 
> This patch resolves a checkpatch warning by adding an SPDX license
> identifier to the driver source file. It defaults the license to
> GPL-2.0-only.
> 
>> diff --git a/drivers/watchdog/sb_wdog.c b/drivers/watchdog/sb_wdog.c
>> index eaa68b54cf567..03db71a43d6fe 100644
>> --- a/drivers/watchdog/sb_wdog.c
>> +++ b/drivers/watchdog/sb_wdog.c
>> @@ -1,3 +1,4 @@
>> +// SPDX-License-Identifier: GPL-2.0-only
>>   /*
>>    * Watchdog driver for SiByte SB1 SoCs
>>    *
> 
> Does the GPL-2.0-only SPDX identifier contradict the explicit license
> boilerplate already present in this file?
> 
> Looking at the existing header comment block:
> 
> drivers/watchdog/sb_wdog.c:
>   *	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.
> 
> Applying GPL-2.0-only restricts the file to GPLv2 only, which strips the
> explicitly granted GPLv1 permission and creates a licensing ambiguity for
> downstream users.
> 
> Should the SPDX identifier be updated to match the existing boilerplate text?
> 

Sashiko has a point here. I don't know how to handle this without effectively
changing the license. I'll drop this patch.

Guenter


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-05-11 22:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-10 19:18 [PATCH] watchdog: sb_wdog: add missing SPDX license identifier Mayur Kumar
2026-05-11 14:24 ` Guenter Roeck
2026-05-11 21:44 ` sashiko-bot
2026-05-11 22:07   ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox