[PATCH] soc: qcom: cmd-db: use C-style SPDX comment for source file

Mayur Kumar posted 1 patch 1 month ago
drivers/soc/qcom/cmd-db.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] soc: qcom: cmd-db: use C-style SPDX comment for source file
Posted by Mayur Kumar 1 month ago
checkpatch.pl reports an improper SPDX comment style for this file:

WARNING: Improper SPDX comment style for 'drivers/soc/qcom/cmd-db.c',
please use '//' instead

Per Documentation/process/license-rules.rst, C source files must use the
'// SPDX-License-Identifier: ...' form instead of the '/* ... */' form.
Fix it.

Signed-off-by: Mayur Kumar <kmayur809@gmail.com>
---
 drivers/soc/qcom/cmd-db.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/soc/qcom/cmd-db.c b/drivers/soc/qcom/cmd-db.c
index 84a75d8c4b7..3f1eee78438 100644
--- a/drivers/soc/qcom/cmd-db.c
+++ b/drivers/soc/qcom/cmd-db.c
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-2.0 */
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Copyright (c) 2016-2018, 2020, The Linux Foundation. All rights reserved.
  * Copyright (c) 2024, Qualcomm Innovation Center, Inc. All rights reserved.
-- 
2.34.1
Re: [PATCH] soc: qcom: cmd-db: use C-style SPDX comment for source file
Posted by Sneh Mankad 1 month ago
On 11-May-26 1:08 AM, Mayur Kumar wrote:
> checkpatch.pl reports an improper SPDX comment style for this file:
>
> WARNING: Improper SPDX comment style for 'drivers/soc/qcom/cmd-db.c',
> please use '//' instead
>
> Per Documentation/process/license-rules.rst, C source files must use the
> '// SPDX-License-Identifier: ...' form instead of the '/* ... */' form.
> Fix it.
>
> Signed-off-by: Mayur Kumar <kmayur809@gmail.com>

Reviewed-by: Sneh Mankad <sneh.mankad@oss.qualcomm.com>

Thanks
Sneh