[U-Boot-Users] [PATCH] docecc.c include line

Eisenhut, Daniel (MED) Daniel.Eisenhut at med.ge.com
Thu Jul 1 21:35:02 CEST 2004


The file common/docecc.c includes linux/mtd/doc2000.h prior to checking if
CFG_CMD_DOC is used.  This defines SECTORSIZE, ADDR_COLUMN, etc that is also
being defined by various include/configs/* files for use with NAND.  This
causes an annoying compiler warning due to redefinition.

Attached patch moves the #include line until after the check for CFG_CMD_DOC
to prevent warning message.

* Patch by Dan Eisenhut, 01 Jul 2004:
  Moved docecc.c include line to prevent compiler warning on some boards.


Probably a bigger issue here with conflicting macro variables, just no one
has used CMD_DOC and CMD_NAND at the same time yet.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: docecc-patch.diff
Type: application/octet-stream
Size: 408 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20040701/21841492/attachment.obj 


More information about the U-Boot mailing list