From patchwork Sat Sep 16 05:10:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 814470 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=nifty.com header.i=@nifty.com header.b="imbg2Hwz"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3xvL5K3rrCz9sRV for ; Sat, 16 Sep 2017 15:13:25 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 23450C21F7B; Sat, 16 Sep 2017 05:11:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 30CDDC21F8B; Sat, 16 Sep 2017 05:11:21 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 8C22DC21C93; Sat, 16 Sep 2017 05:11:18 +0000 (UTC) Received: from conuserg-09.nifty.com (conuserg-09.nifty.com [210.131.2.76]) by lists.denx.de (Postfix) with ESMTPS id D58C5C21E10 for ; Sat, 16 Sep 2017 05:11:16 +0000 (UTC) Received: from grover.sesame (FL1-122-131-185-176.osk.mesh.ad.jp [122.131.185.176]) (authenticated) by conuserg-09.nifty.com with ESMTP id v8G5Asoo028761; Sat, 16 Sep 2017 14:10:58 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com v8G5Asoo028761 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1505538658; bh=ji/xVK2hcYyZFkFV1LPq/yG2wbXQgVjQU1gaR+ayHy4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=imbg2HwzqFPtK1aSKAwMBMKhc5os5NyAm4+zX8CAd3LlCbba71PlkRr2kEFMxK4fZ XH2NmsqFagIZDKZ9xUjKj5TjgdEakKi6lLJ/nZxqbZIS1SbbBH8uVIqtLUzt4JHnQQ NcfKVnssAbU1YYceAnEiOF0UbT3jkXIMQV52J2NuZ5+WCQJwr6rGgaFcAagEUkr8nP G+wyo3NqaP6XeAzJaPkq9I3FkRA4T4/ofJpp5TkP0Dbfuq0kd8RLYg7STdGCvDxF54 PNGbf/5RdqqSIAXWkNTzM/hYAMifwPbGOVG+artaTbO+3WVyDsbXe8QdmZn4dvtXJm bQVlTIL0WPdVg== X-Nifty-SrcIP: [122.131.185.176] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Sat, 16 Sep 2017 14:10:42 +0900 Message-Id: <1505538646-19191-5-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1505538646-19191-1-git-send-email-yamada.masahiro@socionext.com> References: <1505538646-19191-1-git-send-email-yamada.masahiro@socionext.com> Subject: [U-Boot] [PATCH v2 4/8] common.h: remove error() X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This macro prevents us from using compiletime_error/assert defined in . Now we can remove it, then we will be able to import more BUILD_BUG macros from Linux. Signed-off-by: Masahiro Yamada --- Changes in v2: None include/common.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/include/common.h b/include/common.h index 4eb92298a207..7ea78bde83f7 100644 --- a/include/common.h +++ b/include/common.h @@ -90,11 +90,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__); \