[U-Boot] [PATCH 0/6] nds32: fix build errors/warnings

Gabor Juhos juhosg at openwrt.org
Sun May 26 12:11:25 CEST 2013


Using 'MAKEALL -a nds32' to build U-Boot images from the master
branch of the git.denx.de/u-boot.git tree, throws the following
errors/warnings:

  $ ./MAKEALL -a nds32
  Configuring for adp-ag101 board...
  ftsdc010_mci.c:178: error: 'FTSDC010_DCR_FIFO_RST' undeclared (first use in this function)
  ftsdc010_mci.c:178: error: (Each undeclared identifier is reported only once
  ftsdc010_mci.c:178: error: for each function it appears in.)
  make[1]: *** [ftsdc010_mci.o] Error 1
  make: *** [drivers/mmc/libmmc.o] Error 2
  size: './u-boot': No such file
  ftsdc010_mci.c: In function 'ftsdc010_clkset':
  ftsdc010_mci.c:118: warning: implicit declaration of function 'setbits_le32'
  ftsdc010_mci.c:123: warning: implicit declaration of function 'clrbits_le32'
  ftsdc010_mci.c: In function 'ftsdc010_request':
  ftsdc010_mci.c:178: error: 'FTSDC010_DCR_FIFO_RST' undeclared (first use in this function)
  ftsdc010_mci.c:178: error: (Each undeclared identifier is reported only once
  ftsdc010_mci.c:178: error: for each function it appears in.)
  make[1]: *** [ftsdc010_mci.o] Error 1
  make: *** [drivers/mmc/libmmc.o] Error 2
  make: *** Waiting for unfinished jobs....
  Configuring for adp-ag101p board...
  ftsdc010_mci.c:178: error: 'FTSDC010_DCR_FIFO_RST' undeclared (first use in this function)
  ftsdc010_mci.c:178: error: (Each undeclared identifier is reported only once
  ftsdc010_mci.c:178: error: for each function it appears in.)
  make[1]: *** [ftsdc010_mci.o] Error 1
  make: *** [drivers/mmc/libmmc.o] Error 2
  size: './u-boot': No such file
  ftsdc010_mci.c: In function 'ftsdc010_clkset':
  ftsdc010_mci.c:118: warning: implicit declaration of function 'setbits_le32'
  ftsdc010_mci.c:123: warning: implicit declaration of function 'clrbits_le32'
  ftsdc010_mci.c: In function 'ftsdc010_request':
  ftsdc010_mci.c:178: error: 'FTSDC010_DCR_FIFO_RST' undeclared (first use in this function)
  ftsdc010_mci.c:178: error: (Each undeclared identifier is reported only once
  ftsdc010_mci.c:178: error: for each function it appears in.)
  make[1]: *** [ftsdc010_mci.o] Error 1
  make: *** [drivers/mmc/libmmc.o] Error 2
  make: *** Waiting for unfinished jobs....
  Configuring for adp-ag102 board...
  make: *** [u-boot] Error 1
  size: './u-boot': No such file
  ftsdc010_mci.c: In function 'ftsdc010_clkset':
  ftsdc010_mci.c:118: warning: implicit declaration of function 'setbits_le32'
  ftsdc010_mci.c:123: warning: implicit declaration of function 'clrbits_le32'
  cmd_ide.c: In function '__ide_output_data':
  cmd_ide.c:548: warning: passing argument 2 of 'ide_write_data' discards qualifiers from pointer target type
  /devel/u-boot.git/include/ide.h:76: note: expected 'ulong *' but argument is of type 'const ulong *'
  adp-ag102.c: In function 'pci_init_board':
  adp-ag102.c:95: warning: function declaration isn't a prototype
  drivers/mmc/libmmc.o: In function `ftsdc010_request':
  /devel/u-boot.git/drivers/mmc/ftsdc010_mci.c:230: undefined reference to `setbits_le32'
  /devel/u-boot.git/drivers/mmc/ftsdc010_mci.c:239: undefined reference to `clrbits_le32'
  /devel/u-boot.git/drivers/mmc/ftsdc010_mci.c:245: undefined reference to `clrbits_le32'
  drivers/mmc/libmmc.o: In function `ftsdc010_clkset':
  /devel/u-boot.git/drivers/mmc/ftsdc010_mci.c:118: undefined reference to `clrbits_le32'
  /devel/u-boot.git/drivers/mmc/ftsdc010_mci.c:118: undefined reference to `clrbits_le32'
  /devel/u-boot.git/drivers/mmc/ftsdc010_mci.c:121: undefined reference to `setbits_le32'
  /devel/u-boot.git/drivers/mmc/ftsdc010_mci.c:121: undefined reference to `setbits_le32'
  /devel/u-boot.git/drivers/mmc/ftsdc010_mci.c:123: undefined reference to `setbits_le32'
  make: *** [u-boot] Error 1

  --------------------- SUMMARY ----------------------------
  Boards compiled: 3
  Boards with errors: 3 ( adp-ag101 adp-ag101p adp-ag102 )
  ----------------------------------------------------------
  $

After the patches are applied, all images can be compiled without
errors/warnings:

  $ ./MAKEALL -a nds32
  Configuring for adp-ag101 board...
     text    data     bss     dec     hex filename
   141801    6104  211752  359657   57ce9 ./u-boot
  Configuring for adp-ag101p board...
     text    data     bss     dec     hex filename
   143897    6104  211752  361753   58519 ./u-boot
  Configuring for adp-ag102 board...
     text    data     bss     dec     hex filename
   177369    6712  291592  475673   74219 ./u-boot

  --------------------- SUMMARY ----------------------------
  Boards compiled: 3
  ----------------------------------------------------------
  $

Cc: Macpaul Lin <macpaul at andestech.com>

Gabor Juhos (6):
  nds32: introduce macros for bit manipulation
  mmc: ftsdc010_mci: fix build error if CONFIG_FTSDC010_SDIO is not defined
  block: constify sect_buf argument of ide_write_data
  pci: add prototype for pci_ftpci_init() function
  pci: move pci_ftpci100.h to include/faraday/ftpci100.h
  nds32: adp-ag102: use 'faraday/ftpci100.h' for pci_ftpci_init

 arch/nds32/include/asm/io.h                        |   37 ++++++++++++++++++++
 board/AndesTech/adp-ag102/adp-ag102.c              |    3 +-
 doc/driver-model/UDM-block.txt                     |    2 +-
 drivers/block/ftide020.c                           |    2 +-
 drivers/mmc/ftsdc010_mci.c                         |    6 +++-
 drivers/pci/pci_ftpci100.c                         |    4 +--
 .../pci_ftpci100.h => include/faraday/ftpci100.h   |    2 ++
 include/ide.h                                      |    2 +-
 8 files changed, 50 insertions(+), 8 deletions(-)
 rename drivers/pci/pci_ftpci100.h => include/faraday/ftpci100.h (98%)

--
1.7.10



More information about the U-Boot mailing list