public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 3.6-rc1:     twl4030  don't compile   :(
@ 2012-08-03  4:17 werner
  2012-08-03  5:12 ` Chris Ball
  0 siblings, 1 reply; 3+ messages in thread
From: werner @ 2012-08-03  4:17 UTC (permalink / raw)
  To: linux-kernel

   CC      drivers/power/twl4030_charger.o
drivers/power/twl4030_charger.c:248:12: error: invalid 
suffix "b1100" on integer constant
drivers/power/twl4030_charger.c:250:12: error: invalid 
suffix "b1000" on integer constant
drivers/power/twl4030_charger.c:252:12: error: invalid 
suffix "b0100" on integer constant
drivers/power/twl4030_charger.c:254:12: error: invalid 
suffix "b0000" on integer constant
drivers/power/twl4030_charger.c:257:12: error: invalid 
suffix "b11" on integer constant
drivers/power/twl4030_charger.c:259:12: error: invalid 
suffix "b10" on integer constant
drivers/power/twl4030_charger.c:261:12: error: invalid 
suffix "b01" on integer constant
drivers/power/twl4030_charger.c:263:12: error: invalid 
suffix "b00" on integer constant
drivers/power/twl4030_charger.c:266:5: error: invalid 
suffix "b1100" on integer constant
drivers/power/twl4030_charger.c:266:26: error: invalid 
suffix "b11" on integer constant
make[2]: [drivers/power/twl4030_charger.o] Error 1 
(ignored)
   CC      drivers/power/lp8727_charger.o
   CC      drivers/power/gpio-charger.o
   CC      drivers/power/charger-manager.o
   LD      drivers/power/avs/built-in.o
   CC      drivers/power/smb347-charger.o
   LD      drivers/power/built-in.o
ld: drivers/power/twl4030_charger.o: No such file: No such 
file or directory
make[2]: [drivers/power/built-in.o] Error 1 (ignored)
   CC [M]  drivers/power/ds2760_battery.o

....  that messed the whole compilation because the kernel 
didn't link   :(  :(
---
Professional hosting for everyone - http://www.host.ru

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 3.6-rc1:     twl4030  don't compile   :(
  2012-08-03  4:17 3.6-rc1: twl4030 don't compile :( werner
@ 2012-08-03  5:12 ` Chris Ball
  2012-08-03  5:55   ` NeilBrown
  0 siblings, 1 reply; 3+ messages in thread
From: Chris Ball @ 2012-08-03  5:12 UTC (permalink / raw)
  To: werner; +Cc: linux-kernel, NeilBrown

Hi,

On Fri, Aug 03 2012, werner wrote:
>   CC      drivers/power/twl4030_charger.o
> drivers/power/twl4030_charger.c:248:12: error: invalid suffix "b1100"
> on integer constant

drivers/power/twl4030_charger.c:
#define TWL4030_BBSEL_3V0       0b0100
#define TWL4030_BBSEL_3V1       0b1000
#define TWL4030_BBSEL_3V2       0b1100

Werner, your gcc version is too old to support the 0b-prefixed binary
constant syntax.  It was introduced in gcc-4.3.  The kernel compiles
fine here, on gcc-4.7.

Neil Brown added this use of the 0b prefix in 210d4bc8a3128e3e61ac3b
("twl4030_charger: Add backup-battery charging").  Neil, I don't think
we can use this syntax yet -- Documentation/Changes says that we still
support from gcc-3.2 onwards.

Thanks,

- Chris.
-- 
Chris Ball   <cjb@laptop.org>   <http://printf.net/>
One Laptop Per Child

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 3.6-rc1:     twl4030  don't compile   :(
  2012-08-03  5:12 ` Chris Ball
@ 2012-08-03  5:55   ` NeilBrown
  0 siblings, 0 replies; 3+ messages in thread
From: NeilBrown @ 2012-08-03  5:55 UTC (permalink / raw)
  To: Chris Ball; +Cc: werner, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 960 bytes --]

On Fri, 03 Aug 2012 01:12:10 -0400 Chris Ball <cjb@laptop.org> wrote:

> Hi,
> 
> On Fri, Aug 03 2012, werner wrote:
> >   CC      drivers/power/twl4030_charger.o
> > drivers/power/twl4030_charger.c:248:12: error: invalid suffix "b1100"
> > on integer constant
> 
> drivers/power/twl4030_charger.c:
> #define TWL4030_BBSEL_3V0       0b0100
> #define TWL4030_BBSEL_3V1       0b1000
> #define TWL4030_BBSEL_3V2       0b1100
> 
> Werner, your gcc version is too old to support the 0b-prefixed binary
> constant syntax.  It was introduced in gcc-4.3.  The kernel compiles
> fine here, on gcc-4.7.
> 
> Neil Brown added this use of the 0b prefix in 210d4bc8a3128e3e61ac3b
> ("twl4030_charger: Add backup-battery charging").  Neil, I don't think
> we can use this syntax yet -- Documentation/Changes says that we still
> support from gcc-3.2 onwards.

I didn't realise that 0b... wasn't universal.
I'll submit a patch.

Thanks,
NeilBrown

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-08-03  5:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-03  4:17 3.6-rc1: twl4030 don't compile :( werner
2012-08-03  5:12 ` Chris Ball
2012-08-03  5:55   ` NeilBrown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox