public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Jeroen Hofstee <jeroen@myspectrum.nl>
To: u-boot@lists.denx.de
Subject: [U-Boot] am335x: board.c: clang warning
Date: Thu, 19 Jun 2014 22:30:12 +0200	[thread overview]
Message-ID: <1403209812.2418.11.camel@yellow> (raw)

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.

             reply	other threads:[~2014-06-19 20:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-19 20:30 Jeroen Hofstee [this message]
2014-06-20 15:36 ` [U-Boot] am335x: board.c: clang warning Tom Rini

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=1403209812.2418.11.camel@yellow \
    --to=jeroen@myspectrum.nl \
    --cc=u-boot@lists.denx.de \
    /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