Skip to contentSkip to conversation

Staging: vchi: Add license id and change int type

PATCH Superseded andrealmeid at riseup.net 2 participants 5 messages Nov 13, 2018 – Nov 14, 2018

Subsystems (2)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

v2 cover Staging: vchi: Add license id and change int type

From: Andr? Almeida <[email protected]>

Fix the following checkpatch issues:

WARNING: Missing or malformed SPDX-License-Identifier tag in line 1
CHECK: Prefer kernel type 's32' over 'int32_t'

Changes in v2:
- Splits commits in a patch set
- Fixes licenses in SPDX identifier
- Adds a more descriptive commit message

v1: https://www.spinics.net/lists/arm-kernel/msg685603.html

Andr? Almeida (2):
staging: vchi: change type 'int32_t' to 's32'
stagin: vchi: Add SPDX-License-Identifier

 drivers/staging/vc04_services/interface/vchi/vchi_mh.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Signature · 1 line
2.19.1
#1 lore raw

PATCH v2 1/2 staging: vchi: change type 'int32_t' to 's32'

From: Andr? Almeida <[email protected]>

As one can see in a typedef at linux/types.h:103, s32 and int32_t are both a 32 bits signed integer. s32 is preferred because it is defined by the kernel maintainers and it prevents portability issues. Changed to meet checkpatch criteria.

---
 drivers/staging/vc04_services/interface/vchi/vchi_mh.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/vc04_services/interface/vchi/vchi_mh.h +1 -1
index 198bd076b666..40c760d493a1 100644
@@ -36,7 +36,7 @@
 
 #include <linux/types.h>
 
-typedef int32_t VCHI_MEM_HANDLE_T;
+typedef s32 VCHI_MEM_HANDLE_T;
 #define VCHI_MEM_HANDLE_INVALID 0
 
 #endif
Signature · 1 line
2.19.1
#2 lore raw

PATCH v2 2/2 stagin: vchi: Add SPDX-License-Identifier

In reply to andrealmeid at riseup.net

From: Andr? Almeida <[email protected]>

As pointed by Stefan Wahren in v1, this file is dual licensed as GPL-2 and BSD-3.

Using multiple license representation as shown here [1].

[1] https://spdx.org/sites/cpstandard/files/pages/files/using_spdx_license_list_short_identifiers.pdf

---

 drivers/staging/vc04_services/interface/vchi/vchi_mh.h | 1 +
 1 file changed, 1 insertion(+)
drivers/staging/vc04_services/interface/vchi/vchi_mh.h +1 -0
index 40c760d493a1..5c780ec49ff7 100644
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0) */
 /**
  * Copyright (c) 2010-2012 Broadcom. All rights reserved.
  *
Signature · 1 line
2.19.1
#3 lore raw

PATCH v2 2/2 stagin: vchi: Add SPDX-License-Identifier

Hi Andre,

Am 13.11.2018 um 01:37 schrieb andrealmeid at riseup.net:

Quoted 4 lines

From: Andr? Almeida <[email protected]>

As pointed by Stefan Wahren in v1, this file is dual licensed as GPL-2 and BSD-3.

please avoid references to old versions in the commit log, because after applying this patch the context get lost.

Looks like you missed my comment about removal of the license text. Please look at this example:

https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?h=next-20181113&id=bb1e67793f3ee42449f60c2288096da01199443e

Best regards

Quoted 21 lines

Using multiple license representation as shown here [1].

[1] https://spdx.org/sites/cpstandard/files/pages/files/using_spdx_license_list_short_identifiers.pdf

---

 drivers/staging/vc04_services/interface/vchi/vchi_mh.h | 1 +
 1 file changed, 1 insertion(+)
drivers/staging/vc04_services/interface/vchi/vchi_mh.h +1 -0
index 40c760d493a1..5c780ec49ff7 100644
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0) */
 /**
  * Copyright (c) 2010-2012 Broadcom. All rights reserved.
  *
#4 lore raw

v2 cover Staging: vchi: Add license id and change int type

In reply to andrealmeid at riseup.net

Hi Andre,

Am 13.11.2018 um 01:37 schrieb andrealmeid at riseup.net:

Quoted 12 lines

From: Andr? Almeida <[email protected]>

Fix the following checkpatch issues:

WARNING: Missing or malformed SPDX-License-Identifier tag in line 1
CHECK: Prefer kernel type 's32' over 'int32_t'

Changes in v2:
- Splits commits in a patch set
- Fixes licenses in SPDX identifier
- Adds a more descriptive commit message

Quoted 9 lines

v1: https://www.spinics.net/lists/arm-kernel/msg685603.html

Andr? Almeida (2):
staging: vchi: change type 'int32_t' to 's32'
stagin: vchi: Add SPDX-License-Identifier

 drivers/staging/vc04_services/interface/vchi/vchi_mh.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

sorry i didn't noticed this before my Ack, but Nicolas wants to remove the whole file in his patch series.

Stefan