public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] am335x: board.c: clang warning
@ 2014-06-19 20:30 Jeroen Hofstee
  2014-06-20 15:36 ` Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: Jeroen Hofstee @ 2014-06-19 20:30 UTC (permalink / raw)
  To: u-boot

Hello Tom,

The following clang warnings are not trivial to fix for me,
And since the file in question has many contributers I am not
sure who is responsible nowadays. Can you make sure this end up
at someone who knows about the am335x, since this sound a bit
fishy.. (but likely works somehow...)

Regards,
Jeroen

e.g. make am335x_boneblack_config

board/ti/am335x/board.c:87:44: warning: signed shift result
(0x480000000) requires 36 bits to represent, but 'int' only has 32 bits
[-Wshift-overflow]
        .datardsratio0 = ((MT47H128M16RT25E_RD_DQS<<30) |
                           ~~~~~~~~~~~~~~~~~~~~~~~^ ~~
board/ti/am335x/board.c:103:49: warning: signed shift result
(0x2000000000) requires 39 bits to represent, but 'int' only has 32 bits
[-Wshift-overflow]
        .datafwsratio0 = ((MT47H128M16RT25E_PHY_FIFO_WE<<30) |
                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ ~~
board/ti/am335x/board.c:107:49: warning: signed shift result
(0x1000000000) requires 38 bits to represent, but 'int' only has 32 bits
[-Wshift-overflow]
        .datawrsratio0 = ((MT47H128M16RT25E_PHY_WR_DATA<<30) |
                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ ~~
3 warnings generated.

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

* [U-Boot] am335x: board.c: clang warning
  2014-06-19 20:30 [U-Boot] am335x: board.c: clang warning Jeroen Hofstee
@ 2014-06-20 15:36 ` Tom Rini
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2014-06-20 15:36 UTC (permalink / raw)
  To: u-boot

On Thu, Jun 19, 2014 at 10:30:12PM +0200, Jeroen Hofstee wrote:

> Hello Tom,
> 
> The following clang warnings are not trivial to fix for me,
> And since the file in question has many contributers I am not
> sure who is responsible nowadays. Can you make sure this end up
> at someone who knows about the am335x, since this sound a bit
> fishy.. (but likely works somehow...)

Investigating now, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140620/e01c849b/attachment.pgp>

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

end of thread, other threads:[~2014-06-20 15:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-19 20:30 [U-Boot] am335x: board.c: clang warning Jeroen Hofstee
2014-06-20 15:36 ` Tom Rini

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