9b643e312d
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> 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> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
yaffs_allocator.c | ||
yaffs_allocator.h | ||
yaffs_attribs.c | ||
yaffs_attribs.h | ||
yaffs_bitmap.c | ||
yaffs_bitmap.h | ||
yaffs_checkptrw.c | ||
yaffs_checkptrw.h | ||
yaffs_ecc.c | ||
yaffs_ecc.h | ||
yaffs_error.c | ||
yaffs_flashif2.h | ||
yaffs_flashif.h | ||
yaffs_getblockinfo.h | ||
yaffs_guts.c | ||
yaffs_guts.h | ||
yaffs_mtdif2.c | ||
yaffs_mtdif2.h | ||
yaffs_mtdif.c | ||
yaffs_mtdif.h | ||
yaffs_nameval.c | ||
yaffs_nameval.h | ||
yaffs_nand.c | ||
yaffs_nand.h | ||
yaffs_nandemul2k.h | ||
yaffs_nandif.c | ||
yaffs_nandif.h | ||
yaffs_osglue.h | ||
yaffs_packedtags1.c | ||
yaffs_packedtags1.h | ||
yaffs_packedtags2.c | ||
yaffs_packedtags2.h | ||
yaffs_qsort.c | ||
yaffs_summary.c | ||
yaffs_summary.h | ||
yaffs_tagscompat.c | ||
yaffs_tagscompat.h | ||
yaffs_trace.h | ||
yaffs_uboot_glue.c | ||
yaffs_verify.c | ||
yaffs_verify.h | ||
yaffs_yaffs1.c | ||
yaffs_yaffs1.h | ||
yaffs_yaffs2.c | ||
yaffs_yaffs2.h | ||
yaffscfg.h | ||
yaffsfs.c | ||
yaffsfs.h | ||
ydirectenv.h | ||
yportenv.h |