Skip to contentSkip to conversation

staging: greybus: Prefer 'unsigned long long' over 'unsigned long long int'

PATCH In review Tomasz Unger 2 participants 2 messages Mar 5 – Mar 9 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 20260305-greybus-unsigned-long-long-v1-1-e912b6023fcd.ref@yahoo.pl

#1 lore raw

PATCH 1/1 staging: greybus: Prefer 'unsigned long long' over 'unsigned long long int'

Remove redundant 'int' keyword from 'unsigned long long int' type cast. 'unsigned long long' and 'unsigned long long int' are identical types in C. Prefer the shorter form as suggested by checkpatch.pl --strict.

---
 drivers/staging/greybus/Documentation/firmware/authenticate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/greybus/Documentation/firmware/authenticate.c +1 -1
index 3d2c6f88a138..0ef88b7d24de 100644
@@ -58,7 +58,7 @@ int main(int argc, char *argv[])
 		goto close_fd;
 	}
 
-	printf("UID received: 0x%llx\n", *(unsigned long long int *)(uid.uid));
+	printf("UID received: 0x%llx\n", *(unsigned long long *)(uid.uid));
 
 	/* Get certificate */
 	printf("Get IMS certificate\n");

---
base-commit: 6ae79e7736ee6a5f920867e5346d8a106cd1db74
change-id: 20260305-greybus-unsigned-long-long-e7465302d3fa

Best regards,

Signature · 1 line
Tomasz Unger <[email protected]>
#2 lore raw
Quoted 27 lines · Tomasz Unger

Remove redundant 'int' keyword from 'unsigned long long int' type cast. 'unsigned long long' and 'unsigned long long int' are identical types in C. Prefer the shorter form as suggested by checkpatch.pl --strict.

---
 drivers/staging/greybus/Documentation/firmware/authenticate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/greybus/Documentation/firmware/authenticate.c +1 -2
index 3d2c6f88a138..0ef88b7d24de 100644
@@ -58,7 +58,7 @@ int main(int argc, char *argv[])
 		goto close_fd;
 	}
 
-	printf("UID received: 0x%llx\n", *(unsigned long long int *)(uid.uid));
+	printf("UID received: 0x%llx\n", *(unsigned long long *)(uid.uid));
 
 	/* Get certificate */
 	printf("Get IMS certificate\n");
 
---

base-commit: 6ae79e7736ee6a5f920867e5346d8a106cd1db74
change-id: 20260305-greybus-unsigned-long-long-e7465302d3fa

Quoted 4 lines

Best regards,

Signature · 1 line
Tomasz Unger <[email protected]>

Someone sent this just before you did:

	https://lore.kernel.org/r/[email protected]

sorry,

greg k-h