public inbox for linux-staging@lists.linux.dev
 help / color / mirror / Atom feed
* [PATCH] staging: greybus: authenticate: fix alignment and type warning
@ 2026-03-23  3:10 Kosugi Souta
  2026-03-30 15:52 ` Greg KH
  0 siblings, 1 reply; 9+ messages in thread
From: Kosugi Souta @ 2026-03-23  3:10 UTC (permalink / raw)
  To: johan, elder, gregkh
  Cc: greybus-dev, linux-staging, linux-kernel, k.souta0926

Fix the following checkpatch.pl warning and check:
- Warning: Prefer 'unsigned long long' over 'unsigned long long int'
- Check: Alignment should match open parenthesis

Signed-off-by: Kosugi Souta <k.souta0926@gmail.com>
---
 drivers/staging/greybus/Documentation/firmware/authenticate.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/greybus/Documentation/firmware/authenticate.c b/drivers/staging/greybus/Documentation/firmware/authenticate.c
index 3d2c6f88a138..ba4b16b04557 100644
--- a/drivers/staging/greybus/Documentation/firmware/authenticate.c
+++ b/drivers/staging/greybus/Documentation/firmware/authenticate.c
@@ -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");
@@ -85,7 +85,7 @@ int main(int argc, char *argv[])
 	}
 
 	printf("Authenticated, result (%02x), sig-size (%02x)\n",
-		authenticate.result_code, authenticate.signature_size);
+	       authenticate.result_code, authenticate.signature_size);
 
 close_fd:
 	close(fd);
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH] staging: greybus: authenticate: fix alignment and type warning
  2026-03-23  3:10 [PATCH] staging: greybus: authenticate: fix alignment and type warning Kosugi Souta
@ 2026-03-30 15:52 ` Greg KH
  2026-04-02  5:11   ` [PATCH v2 0/2] staging: greybus: fix checkpatch style issues Kosugi Souta
  2026-04-04  0:59   ` [PATCH v3 0/2] staging: greybus: fix checkpatch style issues in authenticate.c Kosugi Souta
  0 siblings, 2 replies; 9+ messages in thread
From: Greg KH @ 2026-03-30 15:52 UTC (permalink / raw)
  To: Kosugi Souta; +Cc: johan, elder, greybus-dev, linux-staging, linux-kernel

On Mon, Mar 23, 2026 at 03:10:17AM +0000, Kosugi Souta wrote:
> Fix the following checkpatch.pl warning and check:
> - Warning: Prefer 'unsigned long long' over 'unsigned long long int'
> - Check: Alignment should match open parenthesis

That is two different things, so this should be two different patches,
right?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH v2 0/2] staging: greybus: fix checkpatch style issues
  2026-03-30 15:52 ` Greg KH
@ 2026-04-02  5:11   ` Kosugi Souta
  2026-04-02  5:11     ` [PATCH v2 1/2] staging: greybus: fix unsigned long long type warning Kosugi Souta
  2026-04-02  5:11     ` [PATCH v2 2/2] staging: greybus: fix alignment to match open parenthesis Kosugi Souta
  2026-04-04  0:59   ` [PATCH v3 0/2] staging: greybus: fix checkpatch style issues in authenticate.c Kosugi Souta
  1 sibling, 2 replies; 9+ messages in thread
From: Kosugi Souta @ 2026-04-02  5:11 UTC (permalink / raw)
  To: gregkh, johan, elder
  Cc: greybus-dev, linux-staging, linux-kernel, k.souta0926

This series splits the previous single patch into two separate patches
to address style issues in authenticate.c, as requested by Greg KH.

Changes in v2:
- Split the single patch into two separate commits: one for type
  warnings and one for alignment checks.

Kosugi (2):
  staging: greybus: fix unsigned long long type warning
  staging: greybus: fix alignment to match open parenthesis

 drivers/staging/greybus/Documentation/firmware/authenticate.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH v2 1/2] staging: greybus: fix unsigned long long type warning
  2026-04-02  5:11   ` [PATCH v2 0/2] staging: greybus: fix checkpatch style issues Kosugi Souta
@ 2026-04-02  5:11     ` Kosugi Souta
  2026-04-02  5:33       ` Greg KH
  2026-04-02  5:11     ` [PATCH v2 2/2] staging: greybus: fix alignment to match open parenthesis Kosugi Souta
  1 sibling, 1 reply; 9+ messages in thread
From: Kosugi Souta @ 2026-04-02  5:11 UTC (permalink / raw)
  To: gregkh, johan, elder
  Cc: greybus-dev, linux-staging, linux-kernel, k.souta0926

Signed-off-by: Kosugi Souta <k.souta0926@gmail.com>
---
 drivers/staging/greybus/Documentation/firmware/authenticate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/greybus/Documentation/firmware/authenticate.c b/drivers/staging/greybus/Documentation/firmware/authenticate.c
index 3d2c6f88a138a..0ef88b7d24de0 100644
--- a/drivers/staging/greybus/Documentation/firmware/authenticate.c
+++ b/drivers/staging/greybus/Documentation/firmware/authenticate.c
@@ -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");
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH v2 2/2] staging: greybus: fix alignment to match open parenthesis
  2026-04-02  5:11   ` [PATCH v2 0/2] staging: greybus: fix checkpatch style issues Kosugi Souta
  2026-04-02  5:11     ` [PATCH v2 1/2] staging: greybus: fix unsigned long long type warning Kosugi Souta
@ 2026-04-02  5:11     ` Kosugi Souta
  1 sibling, 0 replies; 9+ messages in thread
From: Kosugi Souta @ 2026-04-02  5:11 UTC (permalink / raw)
  To: gregkh, johan, elder
  Cc: greybus-dev, linux-staging, linux-kernel, k.souta0926

Signed-off-by: Kosugi Souta <k.souta0926@gmail.com>
---
 drivers/staging/greybus/Documentation/firmware/authenticate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/greybus/Documentation/firmware/authenticate.c b/drivers/staging/greybus/Documentation/firmware/authenticate.c
index 0ef88b7d24de0..ba4b16b045571 100644
--- a/drivers/staging/greybus/Documentation/firmware/authenticate.c
+++ b/drivers/staging/greybus/Documentation/firmware/authenticate.c
@@ -85,7 +85,7 @@ int main(int argc, char *argv[])
 	}
 
 	printf("Authenticated, result (%02x), sig-size (%02x)\n",
-		authenticate.result_code, authenticate.signature_size);
+	       authenticate.result_code, authenticate.signature_size);
 
 close_fd:
 	close(fd);
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH v2 1/2] staging: greybus: fix unsigned long long type warning
  2026-04-02  5:11     ` [PATCH v2 1/2] staging: greybus: fix unsigned long long type warning Kosugi Souta
@ 2026-04-02  5:33       ` Greg KH
  0 siblings, 0 replies; 9+ messages in thread
From: Greg KH @ 2026-04-02  5:33 UTC (permalink / raw)
  To: Kosugi Souta; +Cc: johan, elder, greybus-dev, linux-staging, linux-kernel

On Thu, Apr 02, 2026 at 02:11:23PM +0900, Kosugi Souta wrote:
> Signed-off-by: Kosugi Souta <k.souta0926@gmail.com>
> ---
>  drivers/staging/greybus/Documentation/firmware/authenticate.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/staging/greybus/Documentation/firmware/authenticate.c b/drivers/staging/greybus/Documentation/firmware/authenticate.c
> index 3d2c6f88a138a..0ef88b7d24de0 100644
> --- a/drivers/staging/greybus/Documentation/firmware/authenticate.c
> +++ b/drivers/staging/greybus/Documentation/firmware/authenticate.c
> @@ -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");
> -- 
> 2.43.0
> 
> 

Hi,

This is the friendly patch-bot of Greg Kroah-Hartman.  You have sent him
a patch that has triggered this response.  He used to manually respond
to these common problems, but in order to save his sanity (he kept
writing the same thing over and over, yet to different people), I was
created.  Hopefully you will not take offence and will fix the problem
in your patch and resubmit it so that it can be accepted into the Linux
kernel tree.

You are receiving this message because of the following common error(s)
as indicated below:

- You did not specify a description of why the patch is needed, or
  possibly, any description at all, in the email body.  Please read the
  section entitled "The canonical patch format" in the kernel file,
  Documentation/process/submitting-patches.rst for what is needed in
  order to properly describe the change.

If you wish to discuss this problem further, or you have questions about
how to resolve this issue, please feel free to respond to this email and
Greg will reply once he has dug out from the pending patches received
from other developers.

thanks,

greg k-h's patch email bot

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH v3 0/2] staging: greybus: fix checkpatch style issues in authenticate.c
  2026-03-30 15:52 ` Greg KH
  2026-04-02  5:11   ` [PATCH v2 0/2] staging: greybus: fix checkpatch style issues Kosugi Souta
@ 2026-04-04  0:59   ` Kosugi Souta
  2026-04-04  0:59     ` [PATCH v3 1/2] staging: greybus: fix unsigned long long type warning Kosugi Souta
  2026-04-04  0:59     ` [PATCH v3 2/2] staging: greybus: fix alignment to match open parenthesis Kosugi Souta
  1 sibling, 2 replies; 9+ messages in thread
From: Kosugi Souta @ 2026-04-04  0:59 UTC (permalink / raw)
  To: gregkh, johan, elder
  Cc: greybus-dev, linux-staging, linux-kernel, k.souta0926

This series addresses checkpatch.pl warnings and checks in the
authenticate.c file within the greybus subsystem.

Changes in v3:
- Added detailed commit descriptions to each patch to explain the
  motivation for the changes, as requested by Greg KH's patch bot.
- Ensured Signed-off-by names are consistent and complete.

Changes in v2:
- Split the original single patch into two separate patches: one for
  the 'unsigned long long' type warning and another for the alignment
  check, as requested by Greg KH.

Changes in v1:
- Initial submission with combined fixes.

Kosugi Souta (2):
  staging: greybus: fix unsigned long long type warning
  staging: greybus: fix alignment to match open parenthesis

 drivers/staging/greybus/Documentation/firmware/authenticate.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH v3 1/2] staging: greybus: fix unsigned long long type warning
  2026-04-04  0:59   ` [PATCH v3 0/2] staging: greybus: fix checkpatch style issues in authenticate.c Kosugi Souta
@ 2026-04-04  0:59     ` Kosugi Souta
  2026-04-04  0:59     ` [PATCH v3 2/2] staging: greybus: fix alignment to match open parenthesis Kosugi Souta
  1 sibling, 0 replies; 9+ messages in thread
From: Kosugi Souta @ 2026-04-04  0:59 UTC (permalink / raw)
  To: gregkh, johan, elder
  Cc: greybus-dev, linux-staging, linux-kernel, k.souta0926

Fix the checkpatch.pl warning "Prefer 'unsigned long long' over
'unsigned long long int'". This cleans up the code style in
authenticate.c.

Signed-off-by: Kosugi Souta <k.souta0926@gmail.com>
---
 drivers/staging/greybus/Documentation/firmware/authenticate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/greybus/Documentation/firmware/authenticate.c b/drivers/staging/greybus/Documentation/firmware/authenticate.c
index 3d2c6f88a138a5..0ef88b7d24de02 100644
--- a/drivers/staging/greybus/Documentation/firmware/authenticate.c
+++ b/drivers/staging/greybus/Documentation/firmware/authenticate.c
@@ -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");
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH v3 2/2] staging: greybus: fix alignment to match open parenthesis
  2026-04-04  0:59   ` [PATCH v3 0/2] staging: greybus: fix checkpatch style issues in authenticate.c Kosugi Souta
  2026-04-04  0:59     ` [PATCH v3 1/2] staging: greybus: fix unsigned long long type warning Kosugi Souta
@ 2026-04-04  0:59     ` Kosugi Souta
  1 sibling, 0 replies; 9+ messages in thread
From: Kosugi Souta @ 2026-04-04  0:59 UTC (permalink / raw)
  To: gregkh, johan, elder
  Cc: greybus-dev, linux-staging, linux-kernel, k.souta0926

Fix the checkpatch.pl check "Alignment should match open parenthesis"
by adjusting the indentation in authenticate.c.

Signed-off-by: Kosugi Souta <k.souta0926@gmail.com>
---
 drivers/staging/greybus/Documentation/firmware/authenticate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/greybus/Documentation/firmware/authenticate.c b/drivers/staging/greybus/Documentation/firmware/authenticate.c
index 0ef88b7d24de02..ba4b16b0455717 100644
--- a/drivers/staging/greybus/Documentation/firmware/authenticate.c
+++ b/drivers/staging/greybus/Documentation/firmware/authenticate.c
@@ -85,7 +85,7 @@ int main(int argc, char *argv[])
 	}
 
 	printf("Authenticated, result (%02x), sig-size (%02x)\n",
-		authenticate.result_code, authenticate.signature_size);
+	       authenticate.result_code, authenticate.signature_size);
 
 close_fd:
 	close(fd);
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-04-04  1:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-23  3:10 [PATCH] staging: greybus: authenticate: fix alignment and type warning Kosugi Souta
2026-03-30 15:52 ` Greg KH
2026-04-02  5:11   ` [PATCH v2 0/2] staging: greybus: fix checkpatch style issues Kosugi Souta
2026-04-02  5:11     ` [PATCH v2 1/2] staging: greybus: fix unsigned long long type warning Kosugi Souta
2026-04-02  5:33       ` Greg KH
2026-04-02  5:11     ` [PATCH v2 2/2] staging: greybus: fix alignment to match open parenthesis Kosugi Souta
2026-04-04  0:59   ` [PATCH v3 0/2] staging: greybus: fix checkpatch style issues in authenticate.c Kosugi Souta
2026-04-04  0:59     ` [PATCH v3 1/2] staging: greybus: fix unsigned long long type warning Kosugi Souta
2026-04-04  0:59     ` [PATCH v3 2/2] staging: greybus: fix alignment to match open parenthesis Kosugi Souta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox