All of lore.kernel.org
 help / color / mirror / Atom feed
From: Aishwarya Pant <aishpant@gmail.com>
To: Julia Lawall <julia.lawall@lip6.fr>
Cc: outreachy-kernel@googlegroups.com, gregkh@linuxfoundation.org
Subject: Re: [Outreachy kernel] [PATCH 2/2] staging: bcm2835-camera: remove anonymous field declarations
Date: Fri, 10 Mar 2017 22:38:23 +0530	[thread overview]
Message-ID: <20170310170823.GA6474@aishwarya> (raw)
In-Reply-To: <alpine.DEB.2.20.1703101750400.3356@hadrien>

On Fri, Mar 10, 2017 at 05:50:54PM +0100, Julia Lawall wrote:
> On Fri, 10 Mar 2017, Aishwarya Pant wrote:
> 
> > Anonymous field declarations are error prone. This patch replaces
> > anonymous declarations with explicit field declarations for typedef
> > SERVICE_CREATION_T in vchiq_mmal_init(..)
> 
> Were you able to compile this file?

I delete the *.o files from the drivers and compiled them with the
allyesconfig. No errors.

> 
> julia
> 
> >
> > Signed-off-by: Aishwarya Pant <aishpant@gmail.com>
> > ---
> >  .../vc04_services/bcm2835-camera/mmal-vchiq.c        | 20 ++++++++++----------
> >  1 file changed, 10 insertions(+), 10 deletions(-)
> >
> > diff --git a/drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c b/drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c
> > index 803095e..88b379f 100644
> > --- a/drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c
> > +++ b/drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c
> > @@ -1977,16 +1977,16 @@ int vchiq_mmal_init(struct vchiq_mmal_instance **out_instance)
> >  	static VCHI_CONNECTION_T *vchi_connection;
> >  	static VCHI_INSTANCE_T vchi_instance;
> >  	SERVICE_CREATION_T params = {
> > -		VCHI_VERSION_EX(VC_MMAL_VER, VC_MMAL_MIN_VER),
> > -		VC_MMAL_SERVER_NAME,
> > -		vchi_connection,
> > -		0,		/* rx fifo size (unused) */
> > -		0,		/* tx fifo size (unused) */
> > -		service_callback,
> > -		NULL,		/* service callback parameter */
> > -		1,		/* unaligned bulk receives */
> > -		1,		/* unaligned bulk transmits */
> > -		0		/* want crc check on bulk transfers */
> > +		.version		= VCHI_VERSION_EX(VC_MMAL_VER, VC_MMAL_MIN_VER),
> > +		.service_id		= VC_MMAL_SERVER_NAME,
> > +		.connection		= vchi_connection,
> > +		.rx_fifo_size		= 0,
> > +		.tx_fifo_size		= 0,
> > +		.callback		= service_callback,
> > +		.callback_param		= NULL,
> > +		.want_unaligned_bulk_rx = 1,
> > +		.want_unaligned_bulk_tx = 1,
> > +		.want_crc		= 0
> >  	};
> >
> >  	/* compile time checks to ensure structure size as they are
> > --
> > 2.7.4
> >
> > --
> > 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 visit https://groups.google.com/d/msgid/outreachy-kernel/a7acfee24fab685d28cc5bb088b2fe4288a4aa81.1489163547.git.aishpant%40gmail.com.
> > For more options, visit https://groups.google.com/d/optout.
> >


  reply	other threads:[~2017-03-10 17:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-10 16:38 [PATCH 0/2] staging: vc04_services: clean up anonymous field declarations Aishwarya Pant
2017-03-10 16:39 ` [PATCH 1/2] staging: bcm2835-audio: remove " Aishwarya Pant
2017-03-10 16:58   ` [Outreachy kernel] " Julia Lawall
2017-03-10 16:39 ` [PATCH 2/2] staging: bcm2835-camera: " Aishwarya Pant
2017-03-10 16:50   ` [Outreachy kernel] " Julia Lawall
2017-03-10 17:08     ` Aishwarya Pant [this message]
2017-03-10 17:22       ` Julia Lawall
2017-03-10 17:00 ` [Outreachy kernel] [PATCH 0/2] staging: vc04_services: clean up " 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=20170310170823.GA6474@aishwarya \
    --to=aishpant@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=julia.lawall@lip6.fr \
    --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.