From patchwork Wed Sep 13 11:45:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 112439 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp848169qgf; Wed, 13 Sep 2017 04:47:30 -0700 (PDT) X-Google-Smtp-Source: ADKCNb5/X9ITt53BvWF9htALVz91JwFpFVHsgq0zbHEs4k6uLKHPfIz03tvR++9xi4VEY2vADqFE X-Received: by 10.80.202.202 with SMTP id f10mr15345247edi.14.1505303249933; Wed, 13 Sep 2017 04:47:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505303249; cv=none; d=google.com; s=arc-20160816; b=TfHGKIGNRCg8N8TTbz6MWNp/l/dL4iAiMoaCuhTujnmauSpKip2c9hwPhGHjH/AZ3y bZdXo/Sf4BtlxuDdRab9VyELaUILfRH27xGS5+5nV4wtf8EjKXnXmrx0blHJgNZ+21Np 3q9gwN8b/tpevR2Ul/v9j+uTTnDYkTp9r7SnGN8JmwhcUJl6zX5yu3obM68rK/ajHoR5 G8AV6SjlAItSaTEcR1AgyLn8wsAOt6gyX3YVJI6owwNW6f0SaiH1Esx/l38Ik6SEgjQi yP8KuYTeG9mJTgq+UVGsWXB3x1pKCL60CokhBvokle/3KCrmu+cFRdRT3qgKwFqceIPY KAiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:dkim-filter:arc-authentication-results; bh=ynE9QCshC5+UzS701blLOF0iqzU8dufnRqnSBCgvEVw=; b=mfoJYgPj7a3qhUzYxjcZ1JFb+25k6DMFUyvUHYl4lb5B3VCZ6aOBqVyXEz1kak0CLT gojgsXn812ENRvlZ9LhK/icxMPRIQoo4fxGc8Wl/IWLqd/RzXCRBNfI5loC/pZXd6maL qGeNte4x7G1czB8I59/hT9xfgx0O8o5rcUlnNq4t/05dcgKRkQRWd88263oTcvyqzvOP BtqaH0BUZ/wfNRHYk4vaAxyjq9WBYkDQOm75JBre/2CAEjONkeONIYzaEPVHQu5ITI6+ cjyHFB+3sCoLwu62juGcKMS6A2fM9llQjU/1TAjDT8sWvejVq4EkhsFI3S5PU8kcSC8S 617g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=jw96YYmY; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id q50si12682048edd.143.2017.09.13.04.47.29; Wed, 13 Sep 2017 04:47:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=jw96YYmY; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id 603E7C2256E; Wed, 13 Sep 2017 11:46:31 +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 AF6B5C2259B; Wed, 13 Sep 2017 11:45:43 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id CDC3DC2246F; Wed, 13 Sep 2017 11:45:32 +0000 (UTC) Received: from conuserg-10.nifty.com (conuserg-10.nifty.com [210.131.2.77]) by lists.denx.de (Postfix) with ESMTPS id C9260C2246F for ; Wed, 13 Sep 2017 11:45:31 +0000 (UTC) Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-10.nifty.com with ESMTP id v8DBjE4q018351; Wed, 13 Sep 2017 20:45:18 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com v8DBjE4q018351 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1505303118; bh=b8No5ktuEeZGrIlQF3DvEbH4Es22F+/dIvoyf9ffOK8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jw96YYmYWSWRH4nMlE9VPk7gciI3yzJPbEhVeMYzYQhTLUv2Se1ybVDST7tpxmPcI i4JXawEW3vEViTk3WoNbh6gc/W0T47F+Zuk0Mt+Oi3Ja1X89Q89jj3KPKmdiia7noc xbPGFhQgQdSPuxgKO9x7EkJePJBLMMSUiEMK1NDeQ7BXw/sRfBoFRfzRGn4bbC9EDU 1DCfUtUSNF4rOcNRubpCeXRaS1UViU0PjX9Q2CujfyHeZ3DBEL1L/1D3M3C33w7WJy MVbBWxQ9ATVGgFOS2Ecav6y6G1XW51e7xAgbFPOqQ9WOyRzvoL370QdckHmaRwRkVm jbCLEynG0X/kA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Wed, 13 Sep 2017 20:45:03 +0900 Message-Id: <1505303106-9780-4-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1505303106-9780-1-git-send-email-yamada.masahiro@socionext.com> References: <1505303106-9780-1-git-send-email-yamada.masahiro@socionext.com> Subject: [U-Boot] [PATCH 3/6] 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 has prevented us from using compiletime_error/assert in . Now we can remove it, then we will be able to import more BUILD_BUG macros from Linux. Signed-off-by: Masahiro Yamada --- include/common.h | 5 ----- 1 file changed, 5 deletions(-) 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__); \