aboutsummaryrefslogtreecommitdiff
path: root/src/rtos
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2022-08-30 17:01:12 +0200
committerAntonio Borneo <borneo.antonio@gmail.com>2022-09-18 08:22:01 +0000
commit382148e4dd437978997d668f6ec715ddcec1c46e (patch)
tree553bd10c7ebe78167cf19b06d5d21c9af4b8e241 /src/rtos
parent5be78fafa9b7c9354956fa72c69dbb82338f6e4a (diff)
downloadriscv-openocd-382148e4dd437978997d668f6ec715ddcec1c46e.zip
riscv-openocd-382148e4dd437978997d668f6ec715ddcec1c46e.tar.gz
riscv-openocd-382148e4dd437978997d668f6ec715ddcec1c46e.tar.bz2
openocd: fix SPDX tag format for files .c
With the old checkpatch we cannot use the correct format for the SPDX tags in the file .c, in fact the C99 comments are not allowed and we had to use the block comment. With the new checkpatch, let's switch to the correct SPDX format. Change created automatically through the command: sed -i \ 's,^/\* *\(SPDX-License-Identifier: .*[^ ]\) *\*/$,// \1,' \ $(find src/ contrib/ -name \*.c) Change-Id: I6da16506baa7af718947562505dd49606d124171 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/7153 Tested-by: jenkins
Diffstat (limited to 'src/rtos')
-rw-r--r--src/rtos/FreeRTOS.c2
-rw-r--r--src/rtos/ThreadX.c2
-rw-r--r--src/rtos/chibios.c2
-rw-r--r--src/rtos/chromium-ec.c2
-rw-r--r--src/rtos/eCos.c2
-rw-r--r--src/rtos/embKernel.c2
-rw-r--r--src/rtos/hwthread.c2
-rw-r--r--src/rtos/linux.c2
-rw-r--r--src/rtos/mqx.c2
-rw-r--r--src/rtos/nuttx.c2
-rw-r--r--src/rtos/riot.c2
-rw-r--r--src/rtos/rtos.c2
-rw-r--r--src/rtos/rtos_chibios_stackings.c2
-rw-r--r--src/rtos/rtos_ecos_stackings.c2
-rw-r--r--src/rtos/rtos_embkernel_stackings.c2
-rw-r--r--src/rtos/rtos_mqx_stackings.c2
-rw-r--r--src/rtos/rtos_riot_stackings.c2
-rw-r--r--src/rtos/rtos_standard_stackings.c2
-rw-r--r--src/rtos/rtos_ucos_iii_stackings.c2
-rw-r--r--src/rtos/uCOS-III.c2
-rw-r--r--src/rtos/zephyr.c2
21 files changed, 21 insertions, 21 deletions
diff --git a/src/rtos/FreeRTOS.c b/src/rtos/FreeRTOS.c
index 583e2f7..8403a48 100644
--- a/src/rtos/FreeRTOS.c
+++ b/src/rtos/FreeRTOS.c
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-2.0-or-later */
+// SPDX-License-Identifier: GPL-2.0-or-later
/***************************************************************************
* Copyright (C) 2011 by Broadcom Corporation *
diff --git a/src/rtos/ThreadX.c b/src/rtos/ThreadX.c
index a60d5f8..7b76fb6 100644
--- a/src/rtos/ThreadX.c
+++ b/src/rtos/ThreadX.c
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-2.0-or-later */
+// SPDX-License-Identifier: GPL-2.0-or-later
/***************************************************************************
* Copyright (C) 2011 by Broadcom Corporation *
diff --git a/src/rtos/chibios.c b/src/rtos/chibios.c
index 001abfa..8319cc8 100644
--- a/src/rtos/chibios.c
+++ b/src/rtos/chibios.c
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-2.0-or-later */
+// SPDX-License-Identifier: GPL-2.0-or-later
/***************************************************************************
* Copyright (C) 2012 by Matthias Blaicher *
diff --git a/src/rtos/chromium-ec.c b/src/rtos/chromium-ec.c
index 782a462..a95969e 100644
--- a/src/rtos/chromium-ec.c
+++ b/src/rtos/chromium-ec.c
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
+// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2018 National Instruments Corp
diff --git a/src/rtos/eCos.c b/src/rtos/eCos.c
index 8e982da..3f813ac 100644
--- a/src/rtos/eCos.c
+++ b/src/rtos/eCos.c
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-2.0-or-later */
+// SPDX-License-Identifier: GPL-2.0-or-later
/***************************************************************************
***************************************************************************/
diff --git a/src/rtos/embKernel.c b/src/rtos/embKernel.c
index 23e7bc6..c1b5723 100644
--- a/src/rtos/embKernel.c
+++ b/src/rtos/embKernel.c
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-2.0-or-later */
+// SPDX-License-Identifier: GPL-2.0-or-later
/***************************************************************************
* Copyright (C) 2011 by Broadcom Corporation *
diff --git a/src/rtos/hwthread.c b/src/rtos/hwthread.c
index db44b00..e5eaf42 100644
--- a/src/rtos/hwthread.c
+++ b/src/rtos/hwthread.c
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-2.0-or-later */
+// SPDX-License-Identifier: GPL-2.0-or-later
#ifdef HAVE_CONFIG_H
#include "config.h"
diff --git a/src/rtos/linux.c b/src/rtos/linux.c
index 3fdcb43..f9edabc 100644
--- a/src/rtos/linux.c
+++ b/src/rtos/linux.c
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-2.0-or-later */
+// SPDX-License-Identifier: GPL-2.0-or-later
/***************************************************************************
* Copyright (C) 2011 by STEricsson *
diff --git a/src/rtos/mqx.c b/src/rtos/mqx.c
index a724db0..8d483ed 100644
--- a/src/rtos/mqx.c
+++ b/src/rtos/mqx.c
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-2.0-or-later */
+// SPDX-License-Identifier: GPL-2.0-or-later
/***************************************************************************
* Copyright (C) 2014 by Marian Cingel *
diff --git a/src/rtos/nuttx.c b/src/rtos/nuttx.c
index 6b20ed3..87b28c6 100644
--- a/src/rtos/nuttx.c
+++ b/src/rtos/nuttx.c
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-2.0-or-later */
+// SPDX-License-Identifier: GPL-2.0-or-later
/***************************************************************************
* Copyright 2016,2017 Sony Video & Sound Products Inc. *
diff --git a/src/rtos/riot.c b/src/rtos/riot.c
index 6717085..be5452e 100644
--- a/src/rtos/riot.c
+++ b/src/rtos/riot.c
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-2.0-or-later */
+// SPDX-License-Identifier: GPL-2.0-or-later
/***************************************************************************
* Copyright (C) 2015 by Daniel Krebs *
diff --git a/src/rtos/rtos.c b/src/rtos/rtos.c
index 31fd057..2e76b50 100644
--- a/src/rtos/rtos.c
+++ b/src/rtos/rtos.c
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-2.0-or-later */
+// SPDX-License-Identifier: GPL-2.0-or-later
/***************************************************************************
* Copyright (C) 2011 by Broadcom Corporation *
diff --git a/src/rtos/rtos_chibios_stackings.c b/src/rtos/rtos_chibios_stackings.c
index 38a2889..e2fe0a2 100644
--- a/src/rtos/rtos_chibios_stackings.c
+++ b/src/rtos/rtos_chibios_stackings.c
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-2.0-or-later */
+// SPDX-License-Identifier: GPL-2.0-or-later
/***************************************************************************
* Copyright (C) 2012 by Matthias Blaicher *
diff --git a/src/rtos/rtos_ecos_stackings.c b/src/rtos/rtos_ecos_stackings.c
index b159150..0f54e86 100644
--- a/src/rtos/rtos_ecos_stackings.c
+++ b/src/rtos/rtos_ecos_stackings.c
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-2.0-or-later */
+// SPDX-License-Identifier: GPL-2.0-or-later
#ifdef HAVE_CONFIG_H
#include "config.h"
diff --git a/src/rtos/rtos_embkernel_stackings.c b/src/rtos/rtos_embkernel_stackings.c
index bf02cb7..809b622 100644
--- a/src/rtos/rtos_embkernel_stackings.c
+++ b/src/rtos/rtos_embkernel_stackings.c
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-2.0-or-later */
+// SPDX-License-Identifier: GPL-2.0-or-later
/***************************************************************************
* Copyright (C) 2011 by Broadcom Corporation *
diff --git a/src/rtos/rtos_mqx_stackings.c b/src/rtos/rtos_mqx_stackings.c
index 087591b..8c8fd20 100644
--- a/src/rtos/rtos_mqx_stackings.c
+++ b/src/rtos/rtos_mqx_stackings.c
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-2.0-or-later */
+// SPDX-License-Identifier: GPL-2.0-or-later
/***************************************************************************
* Copyright (C) 2014 by Marian Cingel *
diff --git a/src/rtos/rtos_riot_stackings.c b/src/rtos/rtos_riot_stackings.c
index bcf14e5..e717e8c 100644
--- a/src/rtos/rtos_riot_stackings.c
+++ b/src/rtos/rtos_riot_stackings.c
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-2.0-or-later */
+// SPDX-License-Identifier: GPL-2.0-or-later
/***************************************************************************
* Copyright (C) 2015 by Daniel Krebs *
diff --git a/src/rtos/rtos_standard_stackings.c b/src/rtos/rtos_standard_stackings.c
index 059bfc5..5945117 100644
--- a/src/rtos/rtos_standard_stackings.c
+++ b/src/rtos/rtos_standard_stackings.c
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-2.0-or-later */
+// SPDX-License-Identifier: GPL-2.0-or-later
/***************************************************************************
* Copyright (C) 2011 by Broadcom Corporation *
diff --git a/src/rtos/rtos_ucos_iii_stackings.c b/src/rtos/rtos_ucos_iii_stackings.c
index aa98cc7..9ba5288 100644
--- a/src/rtos/rtos_ucos_iii_stackings.c
+++ b/src/rtos/rtos_ucos_iii_stackings.c
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-2.0-or-later */
+// SPDX-License-Identifier: GPL-2.0-or-later
/***************************************************************************
* Copyright (C) 2017 by Square, Inc. *
diff --git a/src/rtos/uCOS-III.c b/src/rtos/uCOS-III.c
index 754fe06..21be8ff 100644
--- a/src/rtos/uCOS-III.c
+++ b/src/rtos/uCOS-III.c
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-2.0-or-later */
+// SPDX-License-Identifier: GPL-2.0-or-later
/***************************************************************************
* Copyright (C) 2017 by Square, Inc. *
diff --git a/src/rtos/zephyr.c b/src/rtos/zephyr.c
index 5f77953..b00b4b3 100644
--- a/src/rtos/zephyr.c
+++ b/src/rtos/zephyr.c
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-2.0-or-later */
+// SPDX-License-Identifier: GPL-2.0-or-later
/***************************************************************************
* Copyright (C) 2017 by Intel Corporation