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) |
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| ali512x.c | ||
| altera_sysid.c | ||
| atsha204a-i2c.c | ||
| cbmem_console.c | ||
| cros_ec.c | ||
| cros_ec_i2c.c | ||
| cros_ec_lpc.c | ||
| cros_ec_sandbox.c | ||
| cros_ec_spi.c | ||
| ds4510.c | ||
| ds4510.h | ||
| fsl_devdis.c | ||
| fsl_ifc.c | ||
| fsl_iim.c | ||
| fsl_sec_mon.c | ||
| gpio_led.c | ||
| i2c_eeprom.c | ||
| i2c_eeprom_emul.c | ||
| mc9sdz60.c | ||
| misc-uclass.c | ||
| mxc_ocotp.c | ||
| mxs_ocotp.c | ||
| ns87308.c | ||
| nuvoton_nct6102d.c | ||
| pca9551_led.c | ||
| pwrseq-uclass.c | ||
| qfw.c | ||
| rockchip-efuse.c | ||
| smsc_lpc47m.c | ||
| smsc_sio1007.c | ||
| spltest_sandbox.c | ||
| status_led.c | ||
| swap_case.c | ||
| syscon_sandbox.c | ||
| tegra186_bpmp.c | ||
| tegra_car.c | ||
| twl4030_led.c | ||
| winbond_w83627.c | ||