outreachy.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [RESEND PATCH] staging: most: fix line ending with '(' in video
@ 2023-03-23 12:54 Khadija Kamran
  2023-03-23 15:04 ` Greg Kroah-Hartman
  2023-03-24 22:21 ` Ira Weiny
  0 siblings, 2 replies; 3+ messages in thread
From: Khadija Kamran @ 2023-03-23 12:54 UTC (permalink / raw)
  To: outreachy
  Cc: Parthiban Veerasooran, Christian Gromm, Greg Kroah-Hartman,
	linux-staging, linux-kernel

Splitting function header to multiple lines because of 80 characters per
line limit, results in ending the function call line with '('.
This leads to CHECK reported by checkpatch.pl

Move the function parameters right after the '(' in the function call
line.

Signed-off-by: Khadija Kamran <kamrankhadijadj@gmail.com>
---
 drivers/staging/most/video/video.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/staging/most/video/video.c b/drivers/staging/most/video/video.c
index ffa97ef21ea5..6254a5df2502 100644
--- a/drivers/staging/most/video/video.c
+++ b/drivers/staging/most/video/video.c
@@ -365,8 +365,7 @@ static const struct video_device comp_videodev_template = {
 
 /**************************************************************************/
 
-static struct most_video_dev *get_comp_dev(
-	struct most_interface *iface, int channel_idx)
+static struct most_video_dev *get_comp_dev(struct most_interface *iface, int channel_idx)
 {
 	struct most_video_dev *mdev;
 	unsigned long flags;
-- 
2.34.1


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

* Re: [RESEND PATCH] staging: most: fix line ending with '(' in video
  2023-03-23 12:54 [RESEND PATCH] staging: most: fix line ending with '(' in video Khadija Kamran
@ 2023-03-23 15:04 ` Greg Kroah-Hartman
  2023-03-24 22:21 ` Ira Weiny
  1 sibling, 0 replies; 3+ messages in thread
From: Greg Kroah-Hartman @ 2023-03-23 15:04 UTC (permalink / raw)
  To: Khadija Kamran
  Cc: outreachy, Parthiban Veerasooran, Christian Gromm, linux-staging,
	linux-kernel

On Thu, Mar 23, 2023 at 05:54:23PM +0500, Khadija Kamran wrote:
> Splitting function header to multiple lines because of 80 characters per
> line limit, results in ending the function call line with '('.
> This leads to CHECK reported by checkpatch.pl
> 
> Move the function parameters right after the '(' in the function call
> line.
> 
> Signed-off-by: Khadija Kamran <kamrankhadijadj@gmail.com>
> ---
>  drivers/staging/most/video/video.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)

Why is this a RESEND?

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

* Re: [RESEND PATCH] staging: most: fix line ending with '(' in video
  2023-03-23 12:54 [RESEND PATCH] staging: most: fix line ending with '(' in video Khadija Kamran
  2023-03-23 15:04 ` Greg Kroah-Hartman
@ 2023-03-24 22:21 ` Ira Weiny
  1 sibling, 0 replies; 3+ messages in thread
From: Ira Weiny @ 2023-03-24 22:21 UTC (permalink / raw)
  To: Khadija Kamran, outreachy
  Cc: Parthiban Veerasooran, Christian Gromm, Greg Kroah-Hartman,
	linux-staging, linux-kernel

Khadija Kamran wrote:
> Splitting function header to multiple lines because of 80 characters per
> line limit, results in ending the function call line with '('.
> This leads to CHECK reported by checkpatch.pl
> 
> Move the function parameters right after the '(' in the function call
> line.
> 
> Signed-off-by: Khadija Kamran <kamrankhadijadj@gmail.com>
> ---
>  drivers/staging/most/video/video.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/drivers/staging/most/video/video.c b/drivers/staging/most/video/video.c
> index ffa97ef21ea5..6254a5df2502 100644
> --- a/drivers/staging/most/video/video.c
> +++ b/drivers/staging/most/video/video.c
> @@ -365,8 +365,7 @@ static const struct video_device comp_videodev_template = {
>  
>  /**************************************************************************/
>  
> -static struct most_video_dev *get_comp_dev(
> -	struct most_interface *iface, int channel_idx)
> +static struct most_video_dev *get_comp_dev(struct most_interface *iface, int channel_idx)

I know the 80 char limit is not strictly enforced anymore but I, and some
other maintainers, like to see it adhered to unless there is a really good
reason to violate it.  How about?

static struct most_video_dev *get_comp_dev(struct most_interface *iface,
					   int channel_idx)

Ira

>  {
>  	struct most_video_dev *mdev;
>  	unsigned long flags;
> -- 
> 2.34.1
> 
> 



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

end of thread, other threads:[~2023-03-24 22:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-23 12:54 [RESEND PATCH] staging: most: fix line ending with '(' in video Khadija Kamran
2023-03-23 15:04 ` Greg Kroah-Hartman
2023-03-24 22:21 ` Ira Weiny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).