* PLEASE FIX: lack of trailing , on structure initializers
@ 2011-11-05 16:48 Russell King - ARM Linux
2011-11-07 11:36 ` Nicolas Ferre
0 siblings, 1 reply; 3+ messages in thread
From: Russell King - ARM Linux @ 2011-11-05 16:48 UTC (permalink / raw)
To: linux-arm-kernel
The lack of trailing ','s on initializers is causing me quite an amount
of grief while trying to prepare the set of patches for arch_reset.
It's really annoying to add a new initializer at the end of a structure,
not notice the lack of trailing ',' on the last entry, and then end up
having to rework the patches because of that. E.g.:
arch/arm/mach-orion5x/mv2120-setup.c:238: error: request for member ?restart? in something not a structure or union
caused by the lack of trailing comma for the .fixup initializer on the
preceding line.
We have around 778 of these in arch/arm, and it's about time that number
started to be reduced. This will cause a lot of conflicts, so the
earlier it can be done in the cycle (and merged into each platform tree)
the less (hopefully) it'll conflict with other work that goes through
the appropriate maintainer tree.
^ permalink raw reply [flat|nested] 3+ messages in thread
* PLEASE FIX: lack of trailing , on structure initializers
2011-11-05 16:48 PLEASE FIX: lack of trailing , on structure initializers Russell King - ARM Linux
@ 2011-11-07 11:36 ` Nicolas Ferre
2011-11-09 21:49 ` Tony Lindgren
0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Ferre @ 2011-11-07 11:36 UTC (permalink / raw)
To: linux-arm-kernel
On 11/05/2011 05:48 PM, Russell King - ARM Linux :
> The lack of trailing ','s on initializers is causing me quite an amount
> of grief while trying to prepare the set of patches for arch_reset.
> It's really annoying to add a new initializer at the end of a structure,
> not notice the lack of trailing ',' on the last entry, and then end up
> having to rework the patches because of that. E.g.:
>
> arch/arm/mach-orion5x/mv2120-setup.c:238: error: request for member ?restart? in something not a structure or union
>
> caused by the lack of trailing comma for the .fixup initializer on the
> preceding line.
>
> We have around 778 of these in arch/arm, and it's about time that number
> started to be reduced. This will cause a lot of conflicts, so the
> earlier it can be done in the cycle (and merged into each platform tree)
> the less (hopefully) it'll conflict with other work that goes through
> the appropriate maintainer tree.
Hi Russell,
We have a dozen of those missing trailing ',' in mach-at91.
But as you mentioned in your other email, we may need to wait for
another change in the concerned files to fix this. Am I right?
So we keep this in mind...
Best regards,
--
Nicolas Ferre
^ permalink raw reply [flat|nested] 3+ messages in thread
* PLEASE FIX: lack of trailing , on structure initializers
2011-11-07 11:36 ` Nicolas Ferre
@ 2011-11-09 21:49 ` Tony Lindgren
0 siblings, 0 replies; 3+ messages in thread
From: Tony Lindgren @ 2011-11-09 21:49 UTC (permalink / raw)
To: linux-arm-kernel
* Nicolas Ferre <nicolas.ferre@atmel.com> [111107 03:06]:
> On 11/05/2011 05:48 PM, Russell King - ARM Linux :
> > The lack of trailing ','s on initializers is causing me quite an amount
> > of grief while trying to prepare the set of patches for arch_reset.
> > It's really annoying to add a new initializer at the end of a structure,
> > not notice the lack of trailing ',' on the last entry, and then end up
> > having to rework the patches because of that. E.g.:
> >
> > arch/arm/mach-orion5x/mv2120-setup.c:238: error: request for member ?restart? in something not a structure or union
> >
> > caused by the lack of trailing comma for the .fixup initializer on the
> > preceding line.
> >
> > We have around 778 of these in arch/arm, and it's about time that number
> > started to be reduced. This will cause a lot of conflicts, so the
> > earlier it can be done in the cycle (and merged into each platform tree)
> > the less (hopefully) it'll conflict with other work that goes through
> > the appropriate maintainer tree.
>
> Hi Russell,
>
> We have a dozen of those missing trailing ',' in mach-at91.
> But as you mentioned in your other email, we may need to wait for
> another change in the concerned files to fix this. Am I right?
>
> So we keep this in mind...
FYI, I think I got most of them fixed for all ARM subarchs. Please
feel free to pick these changes as needed and integrate them into
other patches so we can slowly fix the issue.
I've pushed it into a git branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap formatting:
Web interface at:
http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap.git;a=shortlog;h=refs/heads/formatting
Regards,
Tony
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-11-09 21:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-05 16:48 PLEASE FIX: lack of trailing , on structure initializers Russell King - ARM Linux
2011-11-07 11:36 ` Nicolas Ferre
2011-11-09 21:49 ` Tony Lindgren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).