All of lore.kernel.org
 help / color / mirror / Atom feed
From: gregkh at linuxfoundation.org (Greg KH)
Subject: [Linux-kernel-mentees] [PATCH] Staging: kpc2000: kpc_dma: resolve checkpath errors and warnings
Date: Sat, 11 May 2019 08:04:20 +0200	[thread overview]
Message-ID: <20190511060420.GA18755@kroah.com> (raw)
In-Reply-To: <20190510193833.1051-1-bnvandana@gmail.com>

On Sat, May 11, 2019 at 01:08:33AM +0530, Vandana BN wrote:
> This patch resolves coding style errors and warnings reported by chechpatch
> 
> ERROR: "(foo*)" should be "(foo *)"
> ERROR: trailing whitespace
> ERROR: space required before the open brace '{'
> ERROR: "foo * bar" should be "foo *bar"
> ERROR: space prohibited after that '!' (ctx:BxW)
> ERROR: space prohibited after that open parenthesis '('
> ERROR: switch and case should be at the same indent
> ERROR: trailing statements should be on next line
> ERROR: Macros with complex values should be enclosed in parentheses
> ERROR: "foo __init  bar" should be "foo __init bar"
> ERROR: "foo __exit  bar" should be "foo __exit bar"
> WARNING: Missing a blank line after declarations
> WARNING: Prefer using '"%s...", __func__' to using function's name, in a string
> WARNING: braces {} are not necessary for any arm of this statement
> WARNING: unnecessary cast may hide bugs
> WARNING: braces {} are not necessary for single statement
> WARNING: struct file_operations should normally be const
> WARNING: labels should not be indented
> Signed-off-by: Vandana BN <bnvandana at gmail.com>
> ---
>  drivers/staging/kpc2000/kpc_dma/dma.c         | 137 +++++------
>  drivers/staging/kpc2000/kpc_dma/fileops.c     | 220 +++++++++---------
>  .../staging/kpc2000/kpc_dma/kpc_dma_driver.c  | 121 +++++-----
>  .../staging/kpc2000/kpc_dma/kpc_dma_driver.h  |  32 +--
>  4 files changed, 265 insertions(+), 245 deletions(-)
> 

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:

- Your patch did many different things all at once, making it difficult
  to review.  All Linux kernel patches need to only do one thing at a
  time.  If you need to do multiple things (such as clean up all coding
  style issues in a file/driver), do it in a sequence of patches, each
  one doing only one thing.  This will make it easier to review the
  patches to ensure that they are correct, and to help alleviate any
  merge issues that larger patches can cause.

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

WARNING: multiple messages have this Message-ID (diff)
From: gregkh@linuxfoundation.org (Greg KH)
Subject: [Linux-kernel-mentees] [PATCH] Staging: kpc2000: kpc_dma: resolve checkpath errors and warnings
Date: Sat, 11 May 2019 08:04:20 +0200	[thread overview]
Message-ID: <20190511060420.GA18755@kroah.com> (raw)
Message-ID: <20190511060420.PNy-1CWh9qMRJmCDfW_6-NlFcxOaz2iPc3DbnsEwdWw@z> (raw)
In-Reply-To: <20190510193833.1051-1-bnvandana@gmail.com>

On Sat, May 11, 2019 at 01:08:33AM +0530, Vandana BN wrote:
> This patch resolves coding style errors and warnings reported by chechpatch
> 
> ERROR: "(foo*)" should be "(foo *)"
> ERROR: trailing whitespace
> ERROR: space required before the open brace '{'
> ERROR: "foo * bar" should be "foo *bar"
> ERROR: space prohibited after that '!' (ctx:BxW)
> ERROR: space prohibited after that open parenthesis '('
> ERROR: switch and case should be at the same indent
> ERROR: trailing statements should be on next line
> ERROR: Macros with complex values should be enclosed in parentheses
> ERROR: "foo __init  bar" should be "foo __init bar"
> ERROR: "foo __exit  bar" should be "foo __exit bar"
> WARNING: Missing a blank line after declarations
> WARNING: Prefer using '"%s...", __func__' to using function's name, in a string
> WARNING: braces {} are not necessary for any arm of this statement
> WARNING: unnecessary cast may hide bugs
> WARNING: braces {} are not necessary for single statement
> WARNING: struct file_operations should normally be const
> WARNING: labels should not be indented
> Signed-off-by: Vandana BN <bnvandana at gmail.com>
> ---
>  drivers/staging/kpc2000/kpc_dma/dma.c         | 137 +++++------
>  drivers/staging/kpc2000/kpc_dma/fileops.c     | 220 +++++++++---------
>  .../staging/kpc2000/kpc_dma/kpc_dma_driver.c  | 121 +++++-----
>  .../staging/kpc2000/kpc_dma/kpc_dma_driver.h  |  32 +--
>  4 files changed, 265 insertions(+), 245 deletions(-)
> 

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:

- Your patch did many different things all at once, making it difficult
  to review.  All Linux kernel patches need to only do one thing at a
  time.  If you need to do multiple things (such as clean up all coding
  style issues in a file/driver), do it in a sequence of patches, each
  one doing only one thing.  This will make it easier to review the
  patches to ensure that they are correct, and to help alleviate any
  merge issues that larger patches can cause.

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

WARNING: multiple messages have this Message-ID (diff)
From: Greg KH <gregkh@linuxfoundation.org>
To: Vandana BN <bnvandana@gmail.com>
Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org,
	linux-kernel-mentees@lists.linuxfoundation.org,
	skhan@linuxfoundation.org
Subject: Re: [PATCH] Staging: kpc2000: kpc_dma: resolve checkpath errors and warnings
Date: Sat, 11 May 2019 08:04:20 +0200	[thread overview]
Message-ID: <20190511060420.GA18755@kroah.com> (raw)
In-Reply-To: <20190510193833.1051-1-bnvandana@gmail.com>

On Sat, May 11, 2019 at 01:08:33AM +0530, Vandana BN wrote:
> This patch resolves coding style errors and warnings reported by chechpatch
> 
> ERROR: "(foo*)" should be "(foo *)"
> ERROR: trailing whitespace
> ERROR: space required before the open brace '{'
> ERROR: "foo * bar" should be "foo *bar"
> ERROR: space prohibited after that '!' (ctx:BxW)
> ERROR: space prohibited after that open parenthesis '('
> ERROR: switch and case should be at the same indent
> ERROR: trailing statements should be on next line
> ERROR: Macros with complex values should be enclosed in parentheses
> ERROR: "foo __init  bar" should be "foo __init bar"
> ERROR: "foo __exit  bar" should be "foo __exit bar"
> WARNING: Missing a blank line after declarations
> WARNING: Prefer using '"%s...", __func__' to using function's name, in a string
> WARNING: braces {} are not necessary for any arm of this statement
> WARNING: unnecessary cast may hide bugs
> WARNING: braces {} are not necessary for single statement
> WARNING: struct file_operations should normally be const
> WARNING: labels should not be indented
> Signed-off-by: Vandana BN <bnvandana@gmail.com>
> ---
>  drivers/staging/kpc2000/kpc_dma/dma.c         | 137 +++++------
>  drivers/staging/kpc2000/kpc_dma/fileops.c     | 220 +++++++++---------
>  .../staging/kpc2000/kpc_dma/kpc_dma_driver.c  | 121 +++++-----
>  .../staging/kpc2000/kpc_dma/kpc_dma_driver.h  |  32 +--
>  4 files changed, 265 insertions(+), 245 deletions(-)
> 

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:

- Your patch did many different things all at once, making it difficult
  to review.  All Linux kernel patches need to only do one thing at a
  time.  If you need to do multiple things (such as clean up all coding
  style issues in a file/driver), do it in a sequence of patches, each
  one doing only one thing.  This will make it easier to review the
  patches to ensure that they are correct, and to help alleviate any
  merge issues that larger patches can cause.

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

  parent reply	other threads:[~2019-05-11  6:04 UTC|newest]

Thread overview: 96+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-10 19:38 [Linux-kernel-mentees] [PATCH] Staging: kpc2000: kpc_dma: resolve checkpath errors and warnings bnvandana
2019-05-10 19:38 ` Vandana BN
2019-05-10 19:38 ` [Linux-kernel-mentees] " Vandana BN
2019-05-10 20:34 ` lukas.bulwahn
2019-05-10 20:34   ` Lukas Bulwahn
2019-05-10 20:34   ` Lukas Bulwahn
2019-05-12 15:48   ` bnvandana
2019-05-12 15:48     ` Vandana BN
2019-05-12 15:48     ` Vandana BN
2019-05-11  6:04 ` gregkh [this message]
2019-05-11  6:04   ` Greg KH
2019-05-11  6:04   ` [Linux-kernel-mentees] " Greg KH
2019-05-12 23:39 ` [Linux-kernel-mentees] [PATCH v2 1/8] Staging: kpc2000: kpc_dma: resolve trailing whitespace error reported by checkpatch bnvandana
2019-05-12 23:39   ` Vandana BN
2019-05-12 23:39   ` [Linux-kernel-mentees] " Vandana BN
2019-05-12 23:39   ` [Linux-kernel-mentees] [PATCH v2 2/8] Staging: kpc2000: kpc_dma: Resolve coding style errors " bnvandana
2019-05-12 23:39     ` Vandana BN
2019-05-12 23:39     ` [Linux-kernel-mentees] " Vandana BN
2019-05-13  8:42     ` gregkh
2019-05-13  8:42       ` Greg KH
2019-05-13  8:42       ` [Linux-kernel-mentees] " Greg KH
2019-05-13 10:43       ` bnvandana
2019-05-13 10:43         ` Vandana BN
2019-05-13 10:43         ` [Linux-kernel-mentees] " Vandana BN
2019-05-12 23:39   ` [Linux-kernel-mentees] [PATCH v2 3/8] " bnvandana
2019-05-12 23:39     ` Vandana BN
2019-05-12 23:39     ` [Linux-kernel-mentees] " Vandana BN
2019-05-12 23:39   ` [Linux-kernel-mentees] [PATCH v2 4/8] Staging: kpc2000: kpc_dma: Resolve code indent error " bnvandana
2019-05-12 23:39     ` Vandana BN
2019-05-12 23:39     ` [Linux-kernel-mentees] " Vandana BN
2019-05-12 23:39   ` [Linux-kernel-mentees] [PATCH v2 5/8] Staging: kpc2000: kpc_dma: Resolve coding style " bnvandana
2019-05-12 23:39     ` Vandana BN
2019-05-12 23:39     ` [Linux-kernel-mentees] " Vandana BN
2019-05-12 23:39   ` [Linux-kernel-mentees] [PATCH v2 6/8] Staging: kpc2000: kpc_dma: Resolve coding style warning " bnvandana
2019-05-12 23:39     ` Vandana BN
2019-05-12 23:39     ` [Linux-kernel-mentees] " Vandana BN
2019-05-12 23:39   ` [Linux-kernel-mentees] [PATCH v2 7/8] " bnvandana
2019-05-12 23:39     ` Vandana BN
2019-05-12 23:39     ` [Linux-kernel-mentees] " Vandana BN
2019-05-12 23:40   ` [Linux-kernel-mentees] [PATCH v2 8/8] " bnvandana
2019-05-12 23:40     ` Vandana BN
2019-05-12 23:40     ` [Linux-kernel-mentees] " Vandana BN
2019-05-13 10:26 ` [Linux-kernel-mentees] [PATCH v3 1/8] Staging: kpc2000: kpc_dma: Resolve trailing whitespace error " bnvandana
2019-05-13 10:26   ` Vandana BN
2019-05-13 10:26   ` [Linux-kernel-mentees] " Vandana BN
2019-05-13 10:26   ` [Linux-kernel-mentees] [PATCH v3 2/8] Staging: kpc2000: kpc_dma: Resolve space errors around pointers and function declarations " bnvandana
2019-05-13 10:26     ` Vandana BN
2019-05-13 10:26     ` [Linux-kernel-mentees] " Vandana BN
2019-05-13 10:26   ` [Linux-kernel-mentees] [PATCH v3 3/8] Staging: kpc2000: kpc_dma: Resolve checkpatch space errors around brace '{', '!' and open paranthesis '(' bnvandana
2019-05-13 10:26     ` [PATCH v3 3/8] Staging: kpc2000: kpc_dma: Resolve checkpatch space errors around brace '{','!' " Vandana BN
2019-05-13 10:26     ` [Linux-kernel-mentees] [PATCH v3 3/8] Staging: kpc2000: kpc_dma: Resolve checkpatch space errors around brace '{', '!' " Vandana BN
2019-05-13 10:26   ` [Linux-kernel-mentees] [PATCH v3 4/8] Staging: kpc2000: kpc_dma: Resolve code indent and trailing statements on next line errors reported by checkpatch bnvandana
2019-05-13 10:26     ` Vandana BN
2019-05-13 10:26     ` [Linux-kernel-mentees] " Vandana BN
2019-05-13 10:26   ` [Linux-kernel-mentees] [PATCH v3 5/8] Staging: kpc2000: kpc_dma: Resolve checkpath errors Macros in paranthesis & trailing statements on next line bnvandana
2019-05-13 10:26     ` Vandana BN
2019-05-13 10:26     ` [Linux-kernel-mentees] " Vandana BN
2019-05-13 10:26   ` [Linux-kernel-mentees] [PATCH v3 6/8] Staging: kpc2000: kpc_dma: Resolve warning Missing blank line after declarations & labels not to be indented bnvandana
2019-05-13 10:26     ` Vandana BN
2019-05-13 10:26     ` [Linux-kernel-mentees] " Vandana BN
2019-05-13 10:26   ` [Linux-kernel-mentees] [PATCH v3 7/8] Staging: kpc2000: kpc_dma: Resolve warning to use __func__ insted of funtion name reported by checkpatch bnvandana
2019-05-13 10:26     ` Vandana BN
2019-05-13 10:26     ` [Linux-kernel-mentees] " Vandana BN
2019-05-13 10:26   ` [Linux-kernel-mentees] [PATCH v3 8/8] Staging: kpc2000: kpc_dma: Resolve cast warning and use const for file_operation bnvandana
2019-05-13 10:26     ` Vandana BN
2019-05-13 10:26     ` [Linux-kernel-mentees] " Vandana BN
2019-05-13 10:49   ` [Linux-kernel-mentees] [PATCH v3 1/8] Staging: kpc2000: kpc_dma: Resolve trailing whitespace error reported by checkpatch dan.carpenter
2019-05-13 10:49     ` Dan Carpenter
2019-05-13 10:49     ` [Linux-kernel-mentees] " Dan Carpenter
2019-05-13 12:00     ` bnvandana
2019-05-13 12:00       ` Vandana BN
2019-05-13 12:00       ` [Linux-kernel-mentees] " Vandana BN
2019-05-13 13:43 ` [Linux-kernel-mentees] [PATCH v4 " bnvandana
2019-05-13 13:43   ` Vandana BN
2019-05-13 13:43   ` [Linux-kernel-mentees] " Vandana BN
2019-05-13 13:43   ` [Linux-kernel-mentees] [PATCH v4 2/8] Staging: kpc2000: kpc_dma: Resolve space errors around pointers and function declarations " bnvandana
2019-05-13 13:43     ` Vandana BN
2019-05-13 13:43     ` [Linux-kernel-mentees] " Vandana BN
2019-05-13 13:43   ` [Linux-kernel-mentees] [PATCH v4 3/8] Staging: kpc2000: kpc_dma: Resolve checkpatch space errors around brace '{', '!' and open paranthesis '(' bnvandana
2019-05-13 13:43     ` [PATCH v4 3/8] Staging: kpc2000: kpc_dma: Resolve checkpatch space errors around brace '{','!' " Vandana BN
2019-05-13 13:43     ` [Linux-kernel-mentees] [PATCH v4 3/8] Staging: kpc2000: kpc_dma: Resolve checkpatch space errors around brace '{', '!' " Vandana BN
2019-05-13 13:43   ` [Linux-kernel-mentees] [PATCH v4 4/8] Staging: kpc2000: kpc_dma: Resolve code indent and trailing statements on next line errors reported by checkpatch bnvandana
2019-05-13 13:43     ` Vandana BN
2019-05-13 13:43     ` [Linux-kernel-mentees] " Vandana BN
2019-05-13 13:43   ` [Linux-kernel-mentees] [PATCH v4 5/8] Staging: kpc2000: kpc_dma: Resolve checkpath errors Macros in paranthesis & trailing statements on next line bnvandana
2019-05-13 13:43     ` Vandana BN
2019-05-13 13:43     ` [Linux-kernel-mentees] " Vandana BN
2019-05-13 13:43   ` [Linux-kernel-mentees] [PATCH v4 6/8] Staging: kpc2000: kpc_dma: Resolve warning Missing blank line after declarations & labels not to be indented bnvandana
2019-05-13 13:43     ` Vandana BN
2019-05-13 13:43     ` [Linux-kernel-mentees] " Vandana BN
2019-05-13 13:43   ` [Linux-kernel-mentees] [PATCH v4 7/8] Staging: kpc2000: kpc_dma: Resolve warning to use __func__ insted of funtion name reported by checkpatch bnvandana
2019-05-13 13:43     ` Vandana BN
2019-05-13 13:43     ` [Linux-kernel-mentees] " Vandana BN
2019-05-13 13:43   ` [Linux-kernel-mentees] [PATCH v4 8/8] Staging: kpc2000: kpc_dma: Resolve cast warning and use const for file_operation bnvandana
2019-05-13 13:43     ` Vandana BN
2019-05-13 13:43     ` [Linux-kernel-mentees] " Vandana BN

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190511060420.GA18755@kroah.com \
    --to=unknown@example.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.