Re: Re: [PATCH v2 1/8] mfd: AXP20x: Add mfd driver for AXP20x PMIC

Started by Mark Brown on Mar 22, 2014

open the first message on its own page

Message details and related content
On Sat, Mar 22, 2014 at 08:08:03PM +0100, Carlo Caione wrote:
On Sat, Mar 22, 2014 at 11:42:01AM -0700, Dmitry Torokhov wrote:
quoted
quoted
drivers/mfd/axp20x.c:172:18: warning: assignment makes integer
frompointer without a cast [enabled by default]
quoted
You need to cast to long, otherwise you will get warnings when compiling
on 64 bit arches.
Actually no warning also with (int) cast.
That's because you squashed it to something smaller than a long using
the cast.  The other option is to make the variable you're assigning to
suitable to hold the value - intptr_t or a long.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140322/736dbead/attachment.sig>
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help