All of lore.kernel.org
 help / color / mirror / Atom feed
From: Aishwarya Pant <aishpant@gmail.com>
To: Greg KH <greg@kroah.com>
Cc: outreachy-kernel@googlegroups.com
Subject: Re: [Outreachy kernel] [PATCH 1/2] staging: bcm2835-camera: replace get_msg_context() with kzalloc
Date: Thu, 9 Mar 2017 19:50:58 +0530	[thread overview]
Message-ID: <20170309142058.GA13334@aishwarya> (raw)
In-Reply-To: <20170309133651.GA7082@kroah.com>

On Thu, Mar 09, 2017 at 02:36:51PM +0100, Greg KH wrote:
> On Wed, Mar 08, 2017 at 10:14:28AM +0530, Aishwarya Pant wrote:
> > This patch replaces function get_msg_context(..) with a kzalloc at
> > the caller. This is safe as the only usage found in mmal-vchiq.c has been
> > refactored.
> > 
> > Signed-off-by: Aishwarya Pant <aishpant@gmail.com>
> > ---
> >  .../staging/vc04_services/bcm2835-camera/mmal-vchiq.c    | 16 ++--------------
> >  1 file changed, 2 insertions(+), 14 deletions(-)
> 
> This, and the 2/2 patch do not apply at all to my tree :(
> 
> Please fix up and resend.

Hey

I checked this file. The definitions of get_msg_context(..) and
release_msg_context(..) have changed completely, they do more work than
a simple alloc and de-alloc. So these patches don't make sense anymore.

There is still scope to replace kmalloc + memset with a kzalloc, so I'll
do that and send a separate patch.

> 
> thanks,
> 
> greg k-h


  reply	other threads:[~2017-03-09 14:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-08  4:44 [PATCH 0/2] staging: bcm2835-camera: remove get_msg_context() and release_msg_context() Aishwarya Pant
2017-03-08  4:44 ` [PATCH 1/2] staging: bcm2835-camera: replace get_msg_context() with kzalloc Aishwarya Pant
2017-03-09 13:36   ` [Outreachy kernel] " Greg KH
2017-03-09 14:20     ` Aishwarya Pant [this message]
2017-03-08  4:44 ` [PATCH 2/2] staging: bcm2835-camera: replace release_msg_context() with kfree Aishwarya Pant
2017-03-08  7:00   ` [Outreachy kernel] " Julia Lawall
2017-03-08  7:41 ` [Outreachy kernel] [PATCH 0/2] staging: bcm2835-camera: remove get_msg_context() and release_msg_context() Julia Lawall
2017-03-08 11:47   ` Aishwarya Pant
2017-03-08 12:27     ` Julia Lawall

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=20170309142058.GA13334@aishwarya \
    --to=aishpant@gmail.com \
    --cc=greg@kroah.com \
    --cc=outreachy-kernel@googlegroups.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.