Skip to contentSkip to conversation

drivers/mfd/ab3100-core.c

DISCUSSION Andrew Morton 2 participants 3 messages Sep 18, 2009

lore
Share & tools
lore
#0 lore raw

This:

static const struct ab3100_init_setting __initdata ab3100_init_settings[] = {

causes this:

drivers/mfd/ab3100-core.c:651: error: ab3100_init_settings causes a section type conflict

on ppc64.

I keep forgetting why. Did MFD do something wrong or is powerpc borked or did my compiler version expire?

#1 lore raw
Quoted 4 lines · Andrew Morton

This:

static const struct ab3100_init_setting __initdata ab3100_init_settings[] = {

Looks like it should be __initconst, otherwise it's ambiguous.

Quoted 8 lines

causes this:

drivers/mfd/ab3100-core.c:651: error: ab3100_init_settings causes a section type conflict

on ppc64.

I keep forgetting why. Did MFD do something wrong or is powerpc borked or did my compiler version expire?

Thanks,

Signature · 3 lines
Anton Vorontsov
email: [email protected]
irc://irc.freenode.net/bd2
#2 lore raw
Quoted 17 lines · On Fri, 18 Sep 2009 05:22:13 +0400 Anton Vorontsov <[email protected]>…
Quoted 4 lines · Andrew Morton

This:

static const struct ab3100_init_setting __initdata ab3100_init_settings[] = {

Looks like it should be __initconst, otherwise it's ambiguous.

Quoted 8 lines

causes this:

drivers/mfd/ab3100-core.c:651: error: ab3100_init_settings causes a section type conflict

on ppc64.

I keep forgetting why. Did MFD do something wrong or is powerpc borked or did my compiler version expire?

doh, OK, I forgot about initconst. I'll try it..