[U-Boot] [PATCH] fsl_sata: Fix compiler warnings shown by gcc-4.4
Wolfgang Denk
wd at denx.de
Mon Jul 20 23:44:00 CEST 2009
Dear Kumar Gala,
In message <1247000001-22858-1-git-send-email-galak at kernel.crashing.org> you wrote:
> From: galak <galak at ducky.am.freescale.net>
>
> Update fsl_sata to use common structures instead of casting
> back and forth between the fsl specific ones and the common ones
> (which are identical).
>
> fsl_sata.c: In function 'scan_sata':
> fsl_sata.c:550: warning: dereferencing pointer 'cfis' does break strict-aliasing rules
> fsl_sata.c:549: warning: dereferencing pointer 'cfis' does break strict-aliasing rules
> fsl_sata.c:548: warning: dereferencing pointer 'cfis' does break strict-aliasing rules
> fsl_sata.c:545: note: initialized from here
> fsl_sata.c:592: warning: dereferencing pointer 'cfis' does break strict-aliasing rules
> fsl_sata.c:590: warning: dereferencing pointer 'cfis' does break strict-aliasing rules
> fsl_sata.c:588: warning: dereferencing pointer 'cfis' does break strict-aliasing rules
> fsl_sata.c:586: warning: dereferencing pointer 'cfis' does break strict-aliasing rules
> fsl_sata.c:579: warning: dereferencing pointer 'cfis' does break strict-aliasing rules
> ...
>
> Signed-off-by: Kumar Gala <galak at kernel.crashing.org>
> ---
> drivers/block/fsl_sata.c | 54 ++++++++++++++++-----------------------------
> drivers/block/fsl_sata.h | 46 ---------------------------------------
> 2 files changed, 19 insertions(+), 81 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Violence in reality is quite different from theory.
-- Spock, "The Cloud Minders", stardate 5818.4
More information about the U-Boot
mailing list