Thread (8 messages) 8 messages, 3 authors, 2017-12-28

AW: [PATCH v2 4/5] ARM: dts: Add support for emtrion emCON-MX6 series

From: Türk, Jan <Jan.Tuerk-BU0Y/NROKIiELgA04lAiVw@public.gmane.org>
Date: 2017-12-22 11:44:33
Also in: dri-devel, linux-arm-kernel, lkml

 Hi,
On 22/12/2017 at 11:43:33 +0100, Andreas Färber wrote:
quoted
quoted
quoted
I'll change it for v3 of this patch however it will end up like this:
//SPDX-License...
That should be /* SPDX-License */, // is for c files.
Got any reference for that? Since we're using the C preprocessor
before feeding them to dtc, we can use the same // style for both, builds fine.

Only for my private DT overlay files that I use directly with dtc I
couldn't adopt that style.
The doc states:

If a specific tool cannot handle the standard comment style, then the
appropriate comment mechanism which the tool accepts shall be used. This is
the reason for having the "/\* \*/" style comment in C header files.

I interpreted that as dtc doesn't handle // comments, use /**/

But I agree it also states:
.dts{i}:	  // SPDX-License-Identifier: <SPDX License Expression>

So I think we will end up with a mix of both.
after some regexp on arch/arm/boot/dts, the current state is:
216 SPDX identifiers total
	184 by GregKH in b24413180f5600bcb3bb70fbed5cf186b60864bd starting with //
	2 times /*  also by GregKH in the commit above (in .h files)
	27 occurrences of  "* SPDX"

However, the de-facto comment style in the arm devicetrees seems to be /* */
So with the current information I would prepare v3 with:

// SPDX-License-Identifier
/* Copyright-text + Header
*/
[...]

Jan

---
emtrion GmbH
Alter Schlachthof 45
76131 Karlsruhe
GERMANY
https://www.emtrion.de

Amtsgericht Mannheim
HRB 110 300
Geschäftsführer: Dieter Baur, Ramona Maurer
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help