From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] cmd_nand: Fix warning: dereferencing type-punned pointer will break strict-aliasing rules
Date: Wed, 2 Apr 2008 16:34:09 +0200 [thread overview]
Message-ID: <200804021634.09334.sr@denx.de> (raw)
In-Reply-To: <1207136270-19315-1-git-send-email-plagnioj@jcrosoft.com>
On Wednesday 02 April 2008, Jean-Christophe PLAGNIOL-VILLARD wrote:
> cmd_nand.c:353: warning: dereferencing type-punned pointer will break
> strict-aliasing rules cmd_nand.c:356: warning: dereferencing type-punned
> pointer will break strict-aliasing rules
>
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
NAK.
Patch doesn't work. After applying I get the following messages on Kilauea:
=> nand write 100000 0 100000
NAND write: device 0 offset 0x0, size 0x0
0 bytes written: OK
=> nand read 200000 0 100000
NAND read: device 0 offset 0x0, size 0x0
0 bytes read: OK
So nothing is read/written at all. This is how it behaves without this patch:
=> nand write 100000 0 100000
NAND write: device 0 offset 0x0, size 0x100000
1048576 bytes written: OK
=> nand read 200000 0 100000
NAND read: device 0 offset 0x0, size 0x100000
1048576 bytes read: OK
Best regards,
Stefan
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
next prev parent reply other threads:[~2008-04-02 14:34 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-02 6:03 [U-Boot-Users] [PATCH 0/2] MPC8xx: Fix libfdt support introduced in commit 77ff7b74 Jean-Christophe PLAGNIOL-VILLARD
2008-04-02 6:03 ` [U-Boot-Users] [PATCH 1/2] cmd_log.c: Fix assignment differ in signedness Jean-Christophe PLAGNIOL-VILLARD
2008-04-02 6:03 ` [U-Boot-Users] [PATCH 2/2] ds174x: Fix warning on return in rtc_get and rtc_set function Jean-Christophe PLAGNIOL-VILLARD
2008-04-02 11:37 ` [U-Boot-Users] [PATCH] cmd_nand: Fix warning: dereferencing type-punned pointer will break strict-aliasing rules Jean-Christophe PLAGNIOL-VILLARD
2008-04-02 11:41 ` [U-Boot-Users] [PATCH] mpc837xerdb: Fix warning: implicit declaration of function 'fdt_fixup_dr_usb' Jean-Christophe PLAGNIOL-VILLARD
2008-04-02 17:50 ` Kim Phillips
2008-04-08 14:40 ` [U-Boot-Users] unassigned-patches/13: " u-boot at bugs.denx.de
2008-04-02 14:34 ` Stefan Roese [this message]
2008-04-02 14:39 ` [U-Boot-Users] [PATCH] cmd_nand: Fix warning: dereferencing type-punned pointer will break strict-aliasing rules Wolfgang Denk
2008-04-02 14:50 ` Jean-Christophe PLAGNIOL-VILLARD
2008-04-08 14:40 ` [U-Boot-Users] unassigned-patches/11: " u-boot at bugs.denx.de
2008-04-08 20:49 ` [U-Boot-Users] [U-boot] " Wolfgang Denk
2008-04-08 14:40 ` [U-Boot-Users] unassigned-patches/12: [PATCH 2/2] ds174x: Fix warning on return in rtc_get and rtc_set function u-boot at bugs.denx.de
2008-04-08 21:01 ` [U-Boot-Users] [U-boot] " Wolfgang Denk
2008-04-09 8:46 ` Jean-Christophe PLAGNIOL-VILLARD
2008-04-09 10:42 ` Wolfgang Denk
2008-04-18 4:14 ` [U-Boot-Users] " Wolfgang Denk
2008-04-08 14:40 ` [U-Boot-Users] unassigned-patches/10: [PATCH 1/2] cmd_log.c: Fix assignment differ in signedness u-boot at bugs.denx.de
2008-04-18 4:14 ` [U-Boot-Users] " Wolfgang Denk
2008-04-02 12:11 ` [U-Boot-Users] [PATCH 0/2] MPC8xx: Fix libfdt support introduced in commit 77ff7b74 Jerry Van Baren
2008-04-08 14:40 ` [U-Boot-Users] unassigned-patches/9: " u-boot at bugs.denx.de
2008-04-08 20:47 ` [U-Boot-Users] [U-boot] " Wolfgang Denk
2008-04-09 0:04 ` Jerry Van Baren
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=200804021634.09334.sr@denx.de \
--to=sr@denx.de \
--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.