Linux kernel staging patches
 help / color / mirror / Atom feed
* [PATCH] staging: greybus: camera: Fix function declaration alignment
@ 2026-09-08 17:10 S Tarun Kumar Lywait
  2026-09-09  7:42 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: S Tarun Kumar Lywait @ 2026-09-08 17:10 UTC (permalink / raw)
  To: johan, elder, gregkh
  Cc: greybus-dev, linux-staging, linux-kernel, S Tarun Kumar Lywait

Adhere to Linux kernel coding style. Reported by checkpatch:
CHECK: Alignment should match open parenthesis

Signed-off-by: S Tarun Kumar Lywait <tarun.k.lywait@gmail.com>
---
 drivers/staging/greybus/camera.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/greybus/camera.c b/drivers/staging/greybus/camera.c
index 62b55bb28408..9853bd60ff27 100644
--- a/drivers/staging/greybus/camera.c
+++ b/drivers/staging/greybus/camera.c
@@ -263,9 +263,10 @@ static int gb_camera_get_max_pkt_size(struct gb_camera *gcam,
  * Validate the stream configuration response verifying padding is correctly
  * set and the returned number of streams is supported
  */
-static const int gb_camera_configure_streams_validate_response(struct gb_camera *gcam,
-		struct gb_camera_configure_streams_response *resp,
-		unsigned int nstreams)
+static const int gb_camera_configure_streams_validate_response
+	(struct gb_camera *gcam,
+	 struct gb_camera_configure_streams_response *resp,
+	 unsigned int nstreams)
 {
 	unsigned int i;
 
-- 
2.47.3


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

* Re: [PATCH] staging: greybus: camera: Fix function declaration alignment
  2026-09-08 17:10 [PATCH] staging: greybus: camera: Fix function declaration alignment S Tarun Kumar Lywait
@ 2026-09-09  7:42 ` Greg KH
  2026-09-10 15:03   ` S Tarun Kumar Lywait
  0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2026-09-09  7:42 UTC (permalink / raw)
  To: S Tarun Kumar Lywait
  Cc: johan, elder, greybus-dev, linux-staging, linux-kernel

On Tue, Sep 08, 2026 at 10:40:11PM +0530, S Tarun Kumar Lywait wrote:
> Adhere to Linux kernel coding style. Reported by checkpatch:
> CHECK: Alignment should match open parenthesis
> 
> Signed-off-by: S Tarun Kumar Lywait <tarun.k.lywait@gmail.com>
> ---
>  drivers/staging/greybus/camera.c | 7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/staging/greybus/camera.c b/drivers/staging/greybus/camera.c
> index 62b55bb28408..9853bd60ff27 100644
> --- a/drivers/staging/greybus/camera.c
> +++ b/drivers/staging/greybus/camera.c
> @@ -263,9 +263,10 @@ static int gb_camera_get_max_pkt_size(struct gb_camera *gcam,
>   * Validate the stream configuration response verifying padding is correctly
>   * set and the returned number of streams is supported
>   */
> -static const int gb_camera_configure_streams_validate_response(struct gb_camera *gcam,
> -		struct gb_camera_configure_streams_response *resp,
> -		unsigned int nstreams)
> +static const int gb_camera_configure_streams_validate_response
> +	(struct gb_camera *gcam,

That does not look correct at all, what tool asked you to make this type
of change?

thanks,

greg k-h

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

* Re: [PATCH] staging: greybus: camera: Fix function declaration alignment
  2026-09-09  7:42 ` Greg KH
@ 2026-09-10 15:03   ` S Tarun Kumar Lywait
  0 siblings, 0 replies; 3+ messages in thread
From: S Tarun Kumar Lywait @ 2026-09-10 15:03 UTC (permalink / raw)
  To: Greg KH; +Cc: johan, elder, greybus-dev, linux-staging, linux-kernel

> That does not look correct at all, what tool asked you to make this type
> of change?

I used the checkpatch script itself (./scripts/checkpatch.pl). At first, it showed me the following issue:

CHECK: Alignment should match open parenthesis
#267: FILE: drivers/staging/greybus/camera.c:267:
+static const int gb_camera_configure_streams_validate_response(struct gb_camera *gcam,
+               struct gb_camera_configure_streams_response *resp,

So I fixed the alignment as follows:

static const int gb_camera_configure_streams_validate_response(struct gb_camera *gcam,
                                                               struct gb_camera_configure_streams_response *resp,
                                                               unsigned int nstreams)

But after making this change, I ran the script again and found another issue popping up, replacing the earlier issue:

CHECK: line length of 113 exceeds 100 columns
#267: FILE: drivers/staging/greybus/camera.c:267:
+                                                             struct gb_camera_configure_streams_response *resp,

So, I finally ended up with the current patch, that didn't raise any issue pertaining to this, when running the checkpatch script.

Please let me know in case of further queries.

Thanks,
Tarun Lywait

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

end of thread, other threads:[~2026-09-10 15:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-08 17:10 [PATCH] staging: greybus: camera: Fix function declaration alignment S Tarun Kumar Lywait
2026-09-09  7:42 ` Greg KH
2026-09-10 15:03   ` S Tarun Kumar Lywait

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