From patchwork Tue Nov 11 00:16:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 409120 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 768B314010F for ; Tue, 11 Nov 2014 11:19:02 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0F6C54B70A; Tue, 11 Nov 2014 01:18:41 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id P1boUB7vP13E; Tue, 11 Nov 2014 01:18:40 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2A9074B6D8; Tue, 11 Nov 2014 01:18:13 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C47744B694 for ; Tue, 11 Nov 2014 01:17:46 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9auJclVT4Mwq for ; Tue, 11 Nov 2014 01:17:46 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-pd0-f202.google.com (mail-pd0-f202.google.com [209.85.192.202]) by theia.denx.de (Postfix) with ESMTPS id DCAE34B69C for ; Tue, 11 Nov 2014 01:17:40 +0100 (CET) Received: by mail-pd0-f202.google.com with SMTP id ft15so1418817pdb.3 for ; Mon, 10 Nov 2014 16:17:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=/jGo1V7506n/GWcLE9JrCC+5z14DAqu2ikquo6YOja4=; b=ViWBnFWCtfXyR1wYONqIWrBdSPyEh4/MLqnOl/spbhHAu+TWMA2crkCvZRTKnJbuEM SVTmbwwBilYgNeYzKCY7VBWxPMzgaxEEKRKiLLTS3jxymXlvqg3DrNSvly6H1TkPggdE /GOUXZ7ezdLyiZPNX7CLhHZlbUfznNhd50kqnZwTkQ/W0e/gGnLfKZiay9MoVGJFvpwV hxzTWEjWMyiidbndstgzC7gjRhZUog34yAOyWR0GCCGH4bU+RGbnqEwmdHgP+JcnGxRi VPxfA4XCQ3c0B+67wa7FU+qBe5T9+UdDuvPK2a88ZoE+RHvXmRuCwRz3uFGR3VQF8VnA Te9g== X-Gm-Message-State: ALoCoQlkCRK5bVpeAUycqqBd3LE3ALDsC+HeyuOkRB0nJN1JNhrH/8poO381viG402GzyqgM6e/V X-Received: by 10.70.61.130 with SMTP id p2mr27640231pdr.8.1415665059071; Mon, 10 Nov 2014 16:17:39 -0800 (PST) Received: from corpmail-nozzle1-2.hot.corp.google.com ([100.108.1.103]) by gmr-mx.google.com with ESMTPS id s23si746289yhf.0.2014.11.10.16.17.38 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Nov 2014 16:17:39 -0800 (PST) Received: from kaki.bld.corp.google.com ([172.29.216.32]) by corpmail-nozzle1-2.hot.corp.google.com with ESMTP id dxzlyDsW.1; Mon, 10 Nov 2014 16:17:38 -0800 Received: by kaki.bld.corp.google.com (Postfix, from userid 121222) id 7989922110E; Mon, 10 Nov 2014 17:17:37 -0700 (MST) From: Simon Glass To: u-boot@lists.denx.de Date: Mon, 10 Nov 2014 17:16:49 -0700 Message-Id: <1415665015-12651-10-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 2.1.0.rc2.206.gedb03e5 In-Reply-To: <1415665015-12651-1-git-send-email-sjg@chromium.org> References: <1415665015-12651-1-git-send-email-sjg@chromium.org> Cc: Stephen Warren , Tom Warren Subject: [U-Boot] [PATCH v3 09/14] dm: Disable dm_warn() in SPL X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.13 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Since this function can use up quite a bit of space for its strings, disable it by default in SPL. Use CONFIG_DM_WARN to re-enable it. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v3: None Changes in v2: None include/config_defaults.h | 1 + include/dm/util.h | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/include/config_defaults.h b/include/config_defaults.h index f1b225d..4d49315 100644 --- a/include/config_defaults.h +++ b/include/config_defaults.h @@ -21,6 +21,7 @@ #define CONFIG_PARTITIONS 1 #ifndef CONFIG_SPL_BUILD +#define CONFIG_DM_WARN #define CONFIG_DM_DEVICE_REMOVE #define CONFIG_DM_STDIO #endif diff --git a/include/dm/util.h b/include/dm/util.h index 6ac3a38..0cec17b 100644 --- a/include/dm/util.h +++ b/include/dm/util.h @@ -7,7 +7,13 @@ #ifndef __DM_UTIL_H #define __DM_UTIL_H +#ifdef CONFIG_DM_WARN void dm_warn(const char *fmt, ...); +#else +static inline void dm_warn(const char *fmt, ...) +{ +} +#endif #ifdef DEBUG void dm_dbg(const char *fmt, ...);