rv1126-uboot/common/spl
Masahiro Yamada 90aa625c9a treewide: replace with error() with pr_err()
U-Boot widely uses error() as a bit noisier variant of printf().

This macro causes name conflict with the following line in
include/linux/compiler-gcc.h:

  # define __compiletime_error(message) __attribute__((error(message)))

This prevents us from using __compiletime_error(), and makes it
difficult to fully sync BUILD_BUG macros with Linux.  (Notice
Linux's BUILD_BUG_ON_MSG is implemented by using compiletime_assert().)

Let's convert error() into now treewide-available pr_err().

Done with the help of Coccinelle, excluing tools/ directory.

The semantic patch I used is as follows:

// <smpl>
@@@@
-error
+pr_err
 (...)
// </smpl>

Change-Id: I921807c1770d36a91e692c48ab477558bb2ed0b8
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
[trini: Re-run Coccinelle]
Signed-off-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
(cherry picked from commit 9b643e312d528f291966c1f30b0d90bf3b1d43dc)
2018-01-17 15:27:28 +08:00
..
Kconfig spl: set SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR to 0x4000 for rockchip 2017-11-07 11:06:46 +08:00
Makefile spl: add support to booting with OP-TEE 2017-09-12 16:04:32 +08:00
spl.c UPSTREAM: spl: add newline in debug output 2018-01-16 18:14:05 +08:00
spl_atf.c spl: atf: pass NULL for bl32_ep pc 2017-12-21 14:46:57 +08:00
spl_bootrom.c spl: add a 'return to bootrom' boot method 2017-08-13 17:12:19 +02:00
spl_dfu.c treewide: replace with error() with pr_err() 2018-01-17 15:27:28 +08:00
spl_ext.c env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
spl_fat.c env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
spl_fit.c UPSTREAM: spl: Fix compiling warning on gunzip argument 2018-01-16 18:16:48 +08:00
spl_mmc.c UPSTREAM: spl: spl_mmc: add __maybe_unused to mmc_load_image_raw_sector() 2018-01-16 18:17:07 +08:00
spl_nand.c spl: Add a name to the SPL load-image methods 2016-12-09 08:40:13 -05:00
spl_net.c env: Rename setenv() to env_set() 2017-08-16 08:22:18 -04:00
spl_nor.c spl: make image arg or fdt blob address reconfigurable 2017-05-08 11:38:40 -04:00
spl_onenand.c spl: Add a name to the SPL load-image methods 2016-12-09 08:40:13 -05:00
spl_optee.S spl: optee: add support for Rockchip customize optee 2017-09-12 17:12:05 +08:00
spl_ram.c spl: move RAM boot support in separate file 2017-01-14 16:46:26 -05:00
spl_sata.c dm: scsi: Document and rename the scsi_scan() parameter 2017-07-11 10:08:19 -06:00
spl_sdp.c treewide: replace with error() with pr_err() 2018-01-17 15:27:28 +08:00
spl_spi.c spl: spi: override CONFIG_SYS_SPI_U_BOOT_OFFS via /config-property 2017-05-11 22:03:39 -04:00
spl_ubi.c spl: Make UBI fastmap support Kconfig selectable 2017-07-06 13:09:37 -04:00
spl_usb.c spl: Add a name to the SPL load-image methods 2016-12-09 08:40:13 -05:00
spl_xip.c SPL: Add XIP booting support 2017-06-09 11:23:59 -04:00
spl_ymodem.c spl: Add a name to the SPL load-image methods 2016-12-09 08:40:13 -05:00