watchdog: sb_wdog: add missing SPDX license identifier
PATCH 1/1 watchdog: sb_wdog: add missing SPDX license identifier
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.
--- drivers/watchdog/sb_wdog.c | 1 + 1 file changed, 1 insertion(+)
drivers/watchdog/sb_wdog.c +1 -0
@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-only /* * Watchdog driver for SiByte SB1 SoCs *
Signature · 1 line
2.34.1
Quoted 9 lines · 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 <[email protected]>
Applied.
Guenter
[email protected]
AI reviewThank 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…
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 <[email protected]>
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.
drivers/watchdog/sb_wdog.c line 4
Quoted 9 lines
drivers/watchdog/sb_wdog.c +1
-0@@ -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?
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Guenter Roeck
maintainerQuoted 33 lines · On 5/11/26 14:44, [email protected] 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 <[email protected]>watchdog:
sb_wdog: add missing SPDX license identifierThis 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.
drivers/watchdog/sb_wdog.c line 4
Quoted 9 lines
drivers/watchdog/sb_wdog.c +1
-0@@ -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.
Quoted 6 lines
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