All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julia Lawall <julia.lawall@lip6.fr>
To: Namrata A Shettar <namrataashettar@gmail.com>
Cc: outreachy-kernel <outreachy-kernel@googlegroups.com>
Subject: Re: [Outreachy kernel] [PATCH 3/6] staging: vt6656: main_usb: Replace data type declaration with variable of same type
Date: Thu, 15 Sep 2016 21:24:06 +0200 (CEST)	[thread overview]
Message-ID: <alpine.DEB.2.10.1609152123290.3364@hadrien> (raw)
In-Reply-To: <CAFrQyDFZ92oTmzrW1k62uyjRowFKbkhmX6jzzcX334kJCzjbuA@mail.gmail.com>

[-- Attachment #1: Type: TEXT/PLAIN, Size: 3494 bytes --]



On Thu, 15 Sep 2016, Namrata A Shettar wrote:

> On Thu, Sep 15, 2016 at 07:19:23AM +0200, Julia Lawall wrote:
> >
> >
> > On Thu, 15 Sep 2016, Namrata A Shettar wrote:
> >
> > > This patch fixes checkpatch issue:
> > > -Replacing sizeof(struct vnt_usb_send_context) with sizeof(*tx_context)
> > > -Replacing sizeof(struct vnt_rcb) with sizeof(*priv->rcb[ii])
> > > The replacements are of the type they are replaced with hence size
> > > remains same.
> > >
> > > Signed-off-by: Namrata A Shettar <namrataashettar@gmail.com>
> > > ---
> > >  drivers/staging/vt6656/main_usb.c | 4 ++--
> > >  1 file changed, 2 insertions(+), 2 deletions(-)
> > >
> > >         for (ii = 0; ii < priv->num_tx_context; ii++) {
> > > -               tx_context = kmalloc(sizeof(struct
> vnt_usb_send_context),
> > > +               tx_context = kmalloc(sizeof(*tx_context),
> > >                                                                
> GFP_KERNEL);
> >
> > The GFP_KERNEL argument should not be left way out on the right like that.
> > Now it could be on the sam line as the kmalloc.
> >
> > julia
> >
>
> Will that change come in the same patch? or should I create a new patch
> for the same?

I think you could put the whole thing in one patch. The need to move the
GFP_KERNEL comes because you changed the sizeof argument.

julia

>
> Thanks,
> Namrata
>
> On Thu, Sep 15, 2016 at 11:38 PM, Namrata A Shettar
> <namrataashettar@gmail.com> wrote:
>       On Thu, Sep 15, 2016 at 07:19:23AM +0200, Julia Lawall wrote:
>       >
>       >
>       > On Thu, 15 Sep 2016, Namrata A Shettar wrote:
>       >
>       > > This patch fixes checkpatch issue:
>       > > -Replacing sizeof(struct vnt_usb_send_context) with
>       sizeof(*tx_context)
>       > > -Replacing sizeof(struct vnt_rcb) with
>       sizeof(*priv->rcb[ii])
>       > > The replacements are of the type they are replaced with
>       hence size
>       > > remains same.
>       > >
>       > > Signed-off-by: Namrata A Shettar <namrataashettar@gmail.com>
>       > > ---
>       > >  drivers/staging/vt6656/main_usb.c | 4 ++--
>       > >  1 file changed, 2 insertions(+), 2 deletions(-)
>       > >
>       > >         for (ii = 0; ii < priv->num_tx_context; ii++) {
>       > > -               tx_context = kmalloc(sizeof(struct
>       vnt_usb_send_context),
>       > > +               tx_context = kmalloc(sizeof(*tx_context),
>       > >                                                            
>           GFP_KERNEL);
>       >
>       > The GFP_KERNEL argument should not be left way out on the
>       right like that.
>       > Now it could be on the sam line as the kmalloc.
>       >
>       > julia
>       >
>
>       Will that change come in the same patch? or should I create a
>       new patch
>       for the same?
>
>       Thanks,
>       Namrata
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "outreachy-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to outreachy-kernel+unsubscribe@googlegroups.com.
> To post to this group, send email to outreachy-kernel@googlegroups.com.
> To view this discussion on the web visithttps://groups.google.com/d/msgid/outreachy-kernel/CAFrQyDFZ92oTmzrW1k62uyj
> RowFKbkhmX6jzzcX334kJCzjbuA%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.
>
>

      reply	other threads:[~2016-09-15 19:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-14 22:16 [PATCH 3/6] staging: vt6656: main_usb: Replace data type declaration with variable of same type Namrata A Shettar
2016-09-15  5:19 ` [Outreachy kernel] " Julia Lawall
     [not found]   ` <20160915180849.GA6416@namrata-HP-Pavilion-g6-Notebook-PC>
2016-09-15 18:10     ` Namrata A Shettar
2016-09-15 19:24       ` Julia Lawall [this message]

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=alpine.DEB.2.10.1609152123290.3364@hadrien \
    --to=julia.lawall@lip6.fr \
    --cc=namrataashettar@gmail.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.