Skip to content

Commit 382148e

Browse files
committed
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 <[email protected]> Reviewed-on: https://review.openocd.org/c/openocd/+/7153 Tested-by: jenkins
1 parent 5be78fa commit 382148e

File tree

366 files changed

+366
-366
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

366 files changed

+366
-366
lines changed

contrib/itmdump.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* SPDX-License-Identifier: GPL-3.0-or-later */
1+
// SPDX-License-Identifier: GPL-3.0-or-later
22

33
/* Copyright (C) 2010 by David Brownell */
44

contrib/libdcc/dcc_stdio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* SPDX-License-Identifier: GPL-2.0-or-later */
1+
// SPDX-License-Identifier: GPL-2.0-or-later
22

33
/***************************************************************************
44
* Copyright (C) 2008 by Dominic Rath *

contrib/libdcc/example.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* SPDX-License-Identifier: GPL-2.0-or-later */
1+
// SPDX-License-Identifier: GPL-2.0-or-later
22

33
/***************************************************************************
44
* Copyright (C) 2008 by Spencer Oliver *

contrib/list_example.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* SPDX-License-Identifier: GPL-2.0-or-later */
1+
// SPDX-License-Identifier: GPL-2.0-or-later
22
/* Copyright (C) 2021 by Andreas Fritiofson <[email protected]> */
33

44
/*

contrib/loaders/checksum/riscv_crc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* SPDX-License-Identifier: GPL-2.0-or-later */
1+
// SPDX-License-Identifier: GPL-2.0-or-later
22

33
/* Copyright (C) 2009-2021 Free Software Foundation, Inc. */
44

contrib/loaders/flash/at91sam7x/dcc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* SPDX-License-Identifier: GPL-2.0-or-later */
1+
// SPDX-License-Identifier: GPL-2.0-or-later
22

33
/***************************************************************************
44
* Copyright (C) 2007 by Pavel Chromy *

contrib/loaders/flash/at91sam7x/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* SPDX-License-Identifier: GPL-2.0-or-later */
1+
// SPDX-License-Identifier: GPL-2.0-or-later
22

33
/***************************************************************************
44
* Copyright (C) 2007 by Pavel Chromy *

contrib/loaders/flash/at91sam7x/samflash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* SPDX-License-Identifier: GPL-2.0-or-later */
1+
// SPDX-License-Identifier: GPL-2.0-or-later
22

33
/***************************************************************************
44
* Copyright (C) 2007 by Pavel Chromy *

contrib/loaders/flash/bluenrg-x/bluenrg-x_write.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* SPDX-License-Identifier: GPL-2.0-or-later */
1+
// SPDX-License-Identifier: GPL-2.0-or-later
22

33
/* To be built with arm-none-eabi-gcc -c -mthumb -mcpu=cortex-m0 -O3 bluenrgx.c */
44
/* Then postprocess output of command "arm-none-eabi-objdump -d bluenrgx.o" to make a C array of bytes */

contrib/loaders/flash/cc26xx/flash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* SPDX-License-Identifier: BSD-3-Clause */
1+
// SPDX-License-Identifier: BSD-3-Clause
22

33
/******************************************************************************
44
*

0 commit comments

Comments
 (0)