From: NeilBrown <neilb@suse.de>
To: Chris Ball <cjb@laptop.org>
Cc: "werner" <w.landgraf@ru.ru>, linux-kernel@vger.kernel.org
Subject: Re: 3.6-rc1: twl4030 don't compile :(
Date: Fri, 3 Aug 2012 15:55:52 +1000 [thread overview]
Message-ID: <20120803155552.486622d7@notabene.brown> (raw)
In-Reply-To: <87hask8sph.fsf@octavius.laptop.org>
[-- 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 --]
prev parent reply other threads:[~2012-08-03 5:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
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=20120803155552.486622d7@notabene.brown \
--to=neilb@suse.de \
--cc=cjb@laptop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=w.landgraf@ru.ru \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox