* Re: [PATCH 1/1] fix coding style [not found] <1497538323-5043-1-git-send-email-fbihjmeric@gmail.com> @ 2017-06-15 15:05 ` Greg Kroah-Hartman 0 siblings, 0 replies; 2+ messages in thread From: Greg Kroah-Hartman @ 2017-06-15 15:05 UTC (permalink / raw) To: jm Cc: Laura Abbott, Sumit Semwal, Arve Hjønnevåg, Riley Andrews, devel, linux-kernel On Thu, Jun 15, 2017 at 10:52:03PM +0800, jm wrote: > --- > drivers/staging/android/ion/ion.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c > index 43ecb4a..a2d36b3 100644 > --- a/drivers/staging/android/ion/ion.c > +++ b/drivers/staging/android/ion/ion.c > @@ -66,7 +66,7 @@ static void ion_buffer_add(struct ion_device *dev, > p = &(*p)->rb_right; > } else { > pr_err("%s: buffer already found.", __func__); > - BUG(); > + WARN_ON(); > } > } > > @@ -103,7 +103,7 @@ static struct ion_buffer *ion_buffer_create(struct ion_heap *heap, > goto err2; > } > > - if (buffer->sg_table == NULL) { > + if (!buffer->sg_table) { > WARN_ONCE(1, "This heap needs to set the sgtable"); > ret = -EINVAL; > goto err1; > @@ -161,7 +161,7 @@ static void *ion_buffer_kmap_get(struct ion_buffer *buffer) > return buffer->vaddr; > } > vaddr = buffer->heap->ops->map_kernel(buffer->heap, buffer); > - if (WARN_ONCE(vaddr == NULL, > + if (WARN_ONCE(!vaddr, > "heap->ops->map_kernel should return ERR_PTR on error")) > return ERR_PTR(-EINVAL); > if (IS_ERR(vaddr)) > @@ -425,7 +425,7 @@ int ion_alloc(size_t len, unsigned int heap_id_mask, unsigned int flags) > } > up_read(&dev->lock); > > - if (buffer == NULL) > + if (!buffer) > return -ENODEV; > > if (IS_ERR(buffer)) > -- > 2.7.4 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 does not have a Signed-off-by: line. Please read the kernel file, Documentation/SubmittingPatches and resend it after adding that line. Note, the line needs to be in the body of the email, before the patch, not at the bottom of the patch or in the email signature. - 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/SubmittingPatches for what is needed in order to properly describe the change. - You did not write a descriptive Subject: for the patch, allowing Greg, and everyone else, to know what this patch is all about. Please read the section entitled "The canonical patch format" in the kernel file, Documentation/SubmittingPatches for what a proper Subject: line should look like. - You did not use your real name. Signed-off-by: and From: has to have a real name associated with it. Use whatever you sign legal documents with, no anonymous patches are allowed. 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] 2+ messages in thread
[parent not found: <20170616052355.GA4910@jm-toshiba>]
* Re: [PATCH 1/1] fix coding style [not found] <20170616052355.GA4910@jm-toshiba> @ 2017-06-23 17:30 ` Greg Kroah-Hartman 0 siblings, 0 replies; 2+ messages in thread From: Greg Kroah-Hartman @ 2017-06-23 17:30 UTC (permalink / raw) To: Jhih-Ming Hunag Cc: Laura Abbott, Sumit Semwal, Arve Hjønnevåg, Riley Andrews, devel, linux-kernel On Fri, Jun 16, 2017 at 01:23:59PM +0800, Jhih-Ming Hunag wrote: > Hi, > > I fixed some coding style following scripts/checkpatch.pl suggestion. > > Signed-off-by: Jhih-Ming Hunag <fbihjmeric@gmail.com> > --- > drivers/staging/android/ion/ion.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c > index 43ecb4a..a2d36b3 100644 > --- a/drivers/staging/android/ion/ion.c > +++ b/drivers/staging/android/ion/ion.c > @@ -66,7 +66,7 @@ static void ion_buffer_add(struct ion_device *dev, > p = &(*p)->rb_right; > } else { > pr_err("%s: buffer already found.", __func__); > - BUG(); > + WARN_ON(); > } > } > > @@ -103,7 +103,7 @@ static struct ion_buffer *ion_buffer_create(struct ion_heap *heap, > goto err2; > } > > - if (buffer->sg_table == NULL) { > + if (!buffer->sg_table) { > WARN_ONCE(1, "This heap needs to set the sgtable"); > ret = -EINVAL; > goto err1; > @@ -161,7 +161,7 @@ static void *ion_buffer_kmap_get(struct ion_buffer *buffer) > return buffer->vaddr; > } > vaddr = buffer->heap->ops->map_kernel(buffer->heap, buffer); > - if (WARN_ONCE(vaddr == NULL, > + if (WARN_ONCE(!vaddr, > "heap->ops->map_kernel should return ERR_PTR on error")) > return ERR_PTR(-EINVAL); > if (IS_ERR(vaddr)) > @@ -425,7 +425,7 @@ int ion_alloc(size_t len, unsigned int heap_id_mask, unsigned int flags) > } > up_read(&dev->lock); > > - if (buffer == NULL) > + if (!buffer) > return -ENODEV; > > if (IS_ERR(buffer)) > -- > 2.7.4 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. - 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/SubmittingPatches for what is needed in order to properly describe the change. - You did not write a descriptive Subject: for the patch, allowing Greg, and everyone else, to know what this patch is all about. Please read the section entitled "The canonical patch format" in the kernel file, Documentation/SubmittingPatches for what a proper Subject: line should look like. 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] 2+ messages in thread
end of thread, other threads:[~2017-06-23 20:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1497538323-5043-1-git-send-email-fbihjmeric@gmail.com>
2017-06-15 15:05 ` [PATCH 1/1] fix coding style Greg Kroah-Hartman
[not found] <20170616052355.GA4910@jm-toshiba>
2017-06-23 17:30 ` Greg Kroah-Hartman
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox