All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marek.vasut@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [BREAKAGE] gplugd board / armada100_fec
Date: Mon, 31 Oct 2011 12:33:25 +0100	[thread overview]
Message-ID: <201110311233.25610.marek.vasut@gmail.com> (raw)
In-Reply-To: <1451501677.280874.1320040341365.JavaMail.root@ahm.einfochips.com>

> ----- "Marek Vasut" <marek.vasut@gmail.com> wrote:
> > Dear Ajay Bhargav,
> > 
> > I compiled the "gplugd" board and I got the following warnings, please
> > fix.
> > 
> > Configuring for gplugd board...
> > armada100_fec.c: In function 'armdfec_init':
> > armada100_fec.c:483:2: warning: dereferencing type-punned pointer will
> > break
> > strict-aliasing rules
> > armada100_fec.c:484:2: warning: dereferencing type-punned pointer will
> > break
> > strict-aliasing rules
> > armada100_fec.c: In function 'armdfec_recv':
> > armada100_fec.c:670:2: warning: dereferencing type-punned pointer will
> > break
> > strict-aliasing rules
> > gplugd.c: In function 'board_init':
> > gplugd.c:95:27: error: 'MACH_TYPE_SHEEVAD' undeclared (first use in
> > this
> > function)
> > gplugd.c:95:27: note: each undeclared identifier is reported only once
> > for each
> > function it appears in
> > 
> > Cheers
> 
> Hi Marek,
> 
> May I know what version of gcc are you using?

ELDK4.2 and ELDK5.0

so gcc4.2 and 4.6, but I include you a testcase (edit path to armada100_fec.h).

gcc -m32 -Wall -fstrict-aliasing -o test2 test2.c ; ./test2

> 
> I will fix the MACH_TYPE_SHEEVAD as suggested by Albert.
> 
> Regards,
> Ajay Bhargav
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test2.c
Type: text/x-csrc
Size: 504 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20111031/76e373d7/attachment.c 

  reply	other threads:[~2011-10-31 11:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1666782535.280872.1320040324338.JavaMail.root@ahm.einfochips.com>
2011-10-31  5:52 ` [U-Boot] [BREAKAGE] gplugd board / armada100_fec Ajay Bhargav
2011-10-31 11:33   ` Marek Vasut [this message]
2011-10-31 11:29     ` Ajay Bhargav
2011-10-28 23:44 Marek Vasut

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=201110311233.25610.marek.vasut@gmail.com \
    --to=marek.vasut@gmail.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.