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) |
||
|---|---|---|
| .. | ||
| fm | ||
| fsl-mc | ||
| ldpaa_eth | ||
| phy | ||
| 8390.h | ||
| Kconfig | ||
| Makefile | ||
| ag7xxx.c | ||
| altera_tse.c | ||
| altera_tse.h | ||
| armada100_fec.c | ||
| armada100_fec.h | ||
| at91_emac.c | ||
| ax88180.c | ||
| ax88180.h | ||
| ax88796.c | ||
| ax88796.h | ||
| bcm-sf2-eth-gmac.c | ||
| bcm-sf2-eth-gmac.h | ||
| bcm-sf2-eth.c | ||
| bcm-sf2-eth.h | ||
| calxedaxgmac.c | ||
| cpsw-common.c | ||
| cpsw.c | ||
| cs8900.c | ||
| cs8900.h | ||
| davinci_emac.c | ||
| davinci_emac.h | ||
| dc2114x.c | ||
| designware.c | ||
| designware.h | ||
| dm9000x.c | ||
| dm9000x.h | ||
| dnet.c | ||
| dnet.h | ||
| dwc_eth_qos.c | ||
| e1000.c | ||
| e1000.h | ||
| e1000_spi.c | ||
| eepro100.c | ||
| enc28j60.c | ||
| enc28j60.h | ||
| ep93xx_eth.c | ||
| ep93xx_eth.h | ||
| ethoc.c | ||
| fec_mxc.c | ||
| fec_mxc.h | ||
| fsl_mcdmafec.c | ||
| fsl_mdio.c | ||
| ftgmac100.c | ||
| ftgmac100.h | ||
| ftmac100.c | ||
| ftmac100.h | ||
| ftmac110.c | ||
| ftmac110.h | ||
| gmac_rockchip.c | ||
| keystone_net.c | ||
| ks8851_mll.c | ||
| ks8851_mll.h | ||
| lan91c96.c | ||
| lan91c96.h | ||
| lpc32xx_eth.c | ||
| macb.c | ||
| macb.h | ||
| mcffec.c | ||
| mcfmii.c | ||
| mpc8xx_fec.c | ||
| mvgbe.c | ||
| mvgbe.h | ||
| mvneta.c | ||
| mvpp2.c | ||
| natsemi.c | ||
| ne2000.c | ||
| ne2000.h | ||
| ne2000_base.c | ||
| ne2000_base.h | ||
| netconsole.c | ||
| ns8382x.c | ||
| pch_gbe.c | ||
| pch_gbe.h | ||
| pcnet.c | ||
| pic32_eth.c | ||
| pic32_eth.h | ||
| pic32_mdio.c | ||
| ravb.c | ||
| rtl8139.c | ||
| rtl8169.c | ||
| sandbox-raw.c | ||
| sandbox.c | ||
| sh_eth.c | ||
| sh_eth.h | ||
| smc911x.c | ||
| smc911x.h | ||
| smc91111.c | ||
| smc91111.h | ||
| sun8i_emac.c | ||
| sunxi_emac.c | ||
| tsec.c | ||
| tsi108_eth.c | ||
| uli526x.c | ||
| vsc7385.c | ||
| vsc9953.c | ||
| xilinx_axi_emac.c | ||
| xilinx_emaclite.c | ||
| xilinx_ll_temac.c | ||
| xilinx_ll_temac.h | ||
| xilinx_ll_temac_fifo.c | ||
| xilinx_ll_temac_fifo.h | ||
| xilinx_ll_temac_mdio.c | ||
| xilinx_ll_temac_mdio.h | ||
| xilinx_ll_temac_sdma.c | ||
| xilinx_ll_temac_sdma.h | ||
| zynq_gem.c | ||