All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: greybus: Align wrapped function parameter
@ 2026-08-03 20:47 Pedro Amorim
  2026-08-04  7:19 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Pedro Amorim @ 2026-08-03 20:47 UTC (permalink / raw)
  To: pure.logic
  Cc: johan, elder, gregkh, greybus-dev, linux-staging, linux-kernel,
	Pedro Amorim

Align the wrapped function parameter declaration with the
kernel coding style to improve readability.

Signed-off-by: Pedro Amorim <pedro.aml.dev@gmail.com>
---
 drivers/staging/greybus/loopback.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/greybus/loopback.c b/drivers/staging/greybus/loopback.c
index ea57b1f5d156..374ff4c4ca15 100644
--- a/drivers/staging/greybus/loopback.c
+++ b/drivers/staging/greybus/loopback.c
@@ -589,7 +589,7 @@ static int gb_loopback_async_sink(struct gb_loopback *gb, u32 len)
 }
 
 static int gb_loopback_async_transfer_complete(
-				struct gb_loopback_async_operation *op_async)
+	struct gb_loopback_async_operation *op_async)
 {
 	struct gb_loopback *gb;
 	struct gb_operation *operation;
-- 
2.55.0


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

* Re: [PATCH] staging: greybus: Align wrapped function parameter
  2026-08-03 20:47 [PATCH] staging: greybus: Align wrapped function parameter Pedro Amorim
@ 2026-08-04  7:19 ` Greg KH
  2026-08-04 12:31   ` [PATCH v2] staging: greybus: fix checkpatch alignment warnings in loopback.c Pedro Amorim
  0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2026-08-04  7:19 UTC (permalink / raw)
  To: Pedro Amorim
  Cc: pure.logic, johan, elder, greybus-dev, linux-staging,
	linux-kernel

On Mon, Aug 03, 2026 at 04:47:43PM -0400, Pedro Amorim wrote:
> Align the wrapped function parameter declaration with the
> kernel coding style to improve readability.

Ok, but:

> 
> Signed-off-by: Pedro Amorim <pedro.aml.dev@gmail.com>
> ---
>  drivers/staging/greybus/loopback.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/staging/greybus/loopback.c b/drivers/staging/greybus/loopback.c
> index ea57b1f5d156..374ff4c4ca15 100644
> --- a/drivers/staging/greybus/loopback.c
> +++ b/drivers/staging/greybus/loopback.c
> @@ -589,7 +589,7 @@ static int gb_loopback_async_sink(struct gb_loopback *gb, u32 len)
>  }
>  
>  static int gb_loopback_async_transfer_complete(
> -				struct gb_loopback_async_operation *op_async)
> +	struct gb_loopback_async_operation *op_async)

You didn't align it here :(

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

* [PATCH v2] staging: greybus: fix checkpatch alignment warnings in loopback.c
  2026-08-04  7:19 ` Greg KH
@ 2026-08-04 12:31   ` Pedro Amorim
  0 siblings, 0 replies; 3+ messages in thread
From: Pedro Amorim @ 2026-08-04 12:31 UTC (permalink / raw)
  To: gregkh; +Cc: johan, elder, greybus-dev, linux-staging, linux-kernel,
	Pedro Amorim

Fix two alignment warnings reported by checkpatch.pl: the wrapped
function declaration for gb_loopback_async_transfer_complete(), and
the continuation line in the gb_operation_response_alloc() call.

Signed-off-by: Pedro Amorim <pedro.aml.dev@gmail.com>
---
v2: Fix remaining checkpatch alignment warnings in the file

 drivers/staging/greybus/loopback.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/greybus/loopback.c b/drivers/staging/greybus/loopback.c
index ea57b1f5d156..87fbeaf0eeb9 100644
--- a/drivers/staging/greybus/loopback.c
+++ b/drivers/staging/greybus/loopback.c
@@ -588,8 +588,7 @@ static int gb_loopback_async_sink(struct gb_loopback *gb, u32 len)
 	return retval;
 }
 
-static int gb_loopback_async_transfer_complete(
-				struct gb_loopback_async_operation *op_async)
+static int gb_loopback_async_transfer_complete(struct gb_loopback_async_operation *op_async)
 {
 	struct gb_loopback *gb;
 	struct gb_operation *operation;
@@ -679,7 +678,7 @@ static int gb_loopback_request_handler(struct gb_operation *operation)
 		}
 
 		if (!gb_operation_response_alloc(operation,
-				len + sizeof(*response), GFP_KERNEL)) {
+						 len + sizeof(*response), GFP_KERNEL)) {
 			dev_err(dev, "error allocating response\n");
 			return -ENOMEM;
 		}
-- 
2.55.0


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

end of thread, other threads:[~2026-08-04 12:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-03 20:47 [PATCH] staging: greybus: Align wrapped function parameter Pedro Amorim
2026-08-04  7:19 ` Greg KH
2026-08-04 12:31   ` [PATCH v2] staging: greybus: fix checkpatch alignment warnings in loopback.c Pedro Amorim

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.