[U-Boot,3/6] common.h: remove error()

Message ID 1505303106-9780-4-git-send-email-yamada.masahiro@socionext.com
State Deferred
Delegated to: Masahiro Yamada
Headers show
Series
  • Sync and consolidate Linux-derived printk, BUILD_BUG, BUG, WARN, etc.
Related show

Commit Message

Masahiro Yamada Sept. 13, 2017, 11:45 a.m.
This macro has prevented us from using compiletime_error/assert
in <linux/compiler.h>.

Now we can remove it, then we will be able to import more BUILD_BUG
macros from Linux.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---

 include/common.h | 5 -----
 1 file changed, 5 deletions(-)

Patch

diff --git a/include/common.h b/include/common.h
index ae3b876..e66b8ff 100644
--- a/include/common.h
+++ b/include/common.h
@@ -89,11 +89,6 @@  void __assert_fail(const char *assertion, const char *file, unsigned line,
 	({ if (!(x) && _DEBUG) \
 		__assert_fail(#x, __FILE__, __LINE__, __func__); })
 
-#define error(fmt, args...) do {					\
-		printf("ERROR: " pr_fmt(fmt) "\nat %s:%d/%s()\n",	\
-			##args, __FILE__, __LINE__, __func__);		\
-} while (0)
-
 #ifndef BUG
 #define BUG() do { \
 	printf("BUG: failure at %s:%d/%s()!\n", __FILE__, __LINE__, __FUNCTION__); \