* [PATCH] powerpc/legacy_serial: fix incorrect placement of __initdata tag
@ 2013-09-30 13:11 Bartlomiej Zolnierkiewicz
2013-10-01 6:13 ` Michael Ellerman
0 siblings, 1 reply; 5+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2013-09-30 13:11 UTC (permalink / raw)
To: Benjamin Herrenschmidt
Cc: linuxppc-dev, Kyungmin Park, Paul Mackerras, linux-kernel
__initdata tag should be placed between the variable name and equal
sign for the variable to be placed in the intended .init.data section.
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
arch/powerpc/kernel/legacy_serial.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/powerpc/kernel/legacy_serial.c b/arch/powerpc/kernel/legacy_serial.c
index 22e88dd..40bd7bd 100644
--- a/arch/powerpc/kernel/legacy_serial.c
+++ b/arch/powerpc/kernel/legacy_serial.c
@@ -35,7 +35,7 @@ static struct legacy_serial_info {
phys_addr_t taddr;
} legacy_serial_infos[MAX_LEGACY_SERIAL_PORTS];
-static struct __initdata of_device_id legacy_serial_parents[] = {
+static struct of_device_id legacy_serial_parents[] __initdata = {
{.type = "soc",},
{.type = "tsi-bridge",},
{.type = "opb", },
--
1.8.2.3
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] powerpc/legacy_serial: fix incorrect placement of __initdata tag
2013-09-30 13:11 [PATCH] powerpc/legacy_serial: fix incorrect placement of __initdata tag Bartlomiej Zolnierkiewicz
@ 2013-10-01 6:13 ` Michael Ellerman
2013-10-03 11:51 ` Bartlomiej Zolnierkiewicz
0 siblings, 1 reply; 5+ messages in thread
From: Michael Ellerman @ 2013-10-01 6:13 UTC (permalink / raw)
To: Bartlomiej Zolnierkiewicz
Cc: Kyungmin Park, linuxppc-dev, linux-kernel, Paul Mackerras
On Mon, Sep 30, 2013 at 03:11:42PM +0200, Bartlomiej Zolnierkiewicz wrote:
> __initdata tag should be placed between the variable name and equal
> sign for the variable to be placed in the intended .init.data section.
I see lots of other occurences of that in arch/powerpc. Why not send a
single patch to update them all?
cheers
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] powerpc/legacy_serial: fix incorrect placement of __initdata tag
2013-10-01 6:13 ` Michael Ellerman
@ 2013-10-03 11:51 ` Bartlomiej Zolnierkiewicz
2013-10-08 3:56 ` Michael Ellerman
0 siblings, 1 reply; 5+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2013-10-03 11:51 UTC (permalink / raw)
To: Michael Ellerman
Cc: Kyungmin Park, linuxppc-dev, linux-kernel, Paul Mackerras
On Tuesday, October 01, 2013 04:13:25 PM Michael Ellerman wrote:
> On Mon, Sep 30, 2013 at 03:11:42PM +0200, Bartlomiej Zolnierkiewicz wrote:
> > __initdata tag should be placed between the variable name and equal
> > sign for the variable to be placed in the intended .init.data section.
>
> I see lots of other occurences of that in arch/powerpc. Why not send a
> single patch to update them all?
The other occurences while not following the preferred kernel coding style
are (probably) working OK with gcc. This particular occurence just doesn't
work as it should.
Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] powerpc/legacy_serial: fix incorrect placement of __initdata tag
2013-10-03 11:51 ` Bartlomiej Zolnierkiewicz
@ 2013-10-08 3:56 ` Michael Ellerman
2013-10-08 9:33 ` Bartlomiej Zolnierkiewicz
0 siblings, 1 reply; 5+ messages in thread
From: Michael Ellerman @ 2013-10-08 3:56 UTC (permalink / raw)
To: Bartlomiej Zolnierkiewicz
Cc: Kyungmin Park, linuxppc-dev, linux-kernel, Paul Mackerras
On Thu, Oct 03, 2013 at 01:51:27PM +0200, Bartlomiej Zolnierkiewicz wrote:
> On Tuesday, October 01, 2013 04:13:25 PM Michael Ellerman wrote:
> > On Mon, Sep 30, 2013 at 03:11:42PM +0200, Bartlomiej Zolnierkiewicz wrote:
> > > __initdata tag should be placed between the variable name and equal
> > > sign for the variable to be placed in the intended .init.data section.
> >
> > I see lots of other occurences of that in arch/powerpc. Why not send a
> > single patch to update them all?
>
> The other occurences while not following the preferred kernel coding style
> are (probably) working OK with gcc. This particular occurence just doesn't
> work as it should.
Why would the other occurrences work but not this one?
Regardless, why don't we just do a single patch to clean them all up to
match coding style and (probably) do what they're intended.
cheers
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] powerpc/legacy_serial: fix incorrect placement of __initdata tag
2013-10-08 3:56 ` Michael Ellerman
@ 2013-10-08 9:33 ` Bartlomiej Zolnierkiewicz
0 siblings, 0 replies; 5+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2013-10-08 9:33 UTC (permalink / raw)
To: Michael Ellerman
Cc: Kyungmin Park, linuxppc-dev, linux-kernel, Paul Mackerras
On Tuesday, October 08, 2013 02:56:23 PM Michael Ellerman wrote:
> On Thu, Oct 03, 2013 at 01:51:27PM +0200, Bartlomiej Zolnierkiewicz wrote:
> > On Tuesday, October 01, 2013 04:13:25 PM Michael Ellerman wrote:
> > > On Mon, Sep 30, 2013 at 03:11:42PM +0200, Bartlomiej Zolnierkiewicz wrote:
> > > > __initdata tag should be placed between the variable name and equal
> > > > sign for the variable to be placed in the intended .init.data section.
> > >
> > > I see lots of other occurences of that in arch/powerpc. Why not send a
> > > single patch to update them all?
> >
> > The other occurences while not following the preferred kernel coding style
> > are (probably) working OK with gcc. This particular occurence just doesn't
> > work as it should.
>
> Why would the other occurrences work but not this one?
Because gcc seems to generate the correct code for things like i.e. this one:
struct of_device_id __initdata legacy_serial_parents[]
but not for ones like this:
struct __initdata of_device_id legacy_serial_parents[]
> Regardless, why don't we just do a single patch to clean them all up to
> match coding style and (probably) do what they're intended.
Because:
- fixing this occurence changes runtime, fixing others won't
- there were no such request from powerpc Maintainers
Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-10-08 9:33 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-30 13:11 [PATCH] powerpc/legacy_serial: fix incorrect placement of __initdata tag Bartlomiej Zolnierkiewicz
2013-10-01 6:13 ` Michael Ellerman
2013-10-03 11:51 ` Bartlomiej Zolnierkiewicz
2013-10-08 3:56 ` Michael Ellerman
2013-10-08 9:33 ` Bartlomiej Zolnierkiewicz
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).