From patchwork Thu Apr 18 02:13:40 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 237416 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 65B032C0195 for ; Thu, 18 Apr 2013 12:18:39 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 896C34A3B9; Thu, 18 Apr 2013 04:17:29 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 KFrHsGSSjHBv; Thu, 18 Apr 2013 04:17:29 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2B85B4A38D; Thu, 18 Apr 2013 04:17:09 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C23AE4A331 for ; Thu, 18 Apr 2013 04:17:06 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 rkNhOOd7w6Dz for ; Thu, 18 Apr 2013 04:17:05 +0200 (CEST) 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-ye0-f201.google.com (mail-ye0-f201.google.com [209.85.213.201]) by theia.denx.de (Postfix) with ESMTPS id 981394A342 for ; Thu, 18 Apr 2013 04:15:39 +0200 (CEST) Received: by mail-ye0-f201.google.com with SMTP id m2so236033yen.4 for ; Wed, 17 Apr 2013 19:15:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=bgv7vShL7i4+fnPxkLf/X76zZDlV90AMTkGKXSzOMCU=; b=EbFMhqNtjnrkTTebyUVUI6pCkyMeplx30DnZOFq77EVBFFKIq7URFKuk7rQXFkuH/J nGf+4JeTuWETfPc/QoGjNzBNgW00km4vzNGL/FDTjUNFsrOb3q3GdrwJqAm7XANs8+9V NGtWZm5B+ROHN1d0CrQiqFb5JeHCtCZ7XTdWtoJwvj1n3rpWGmMDfpQ7PBr55/xXKEBw HmmItHSM+Dr3nr0YI8mHXZyfUF1yvZnwVXr+69mAy9+8oMDpHpA85J65iwyISO32HL0a WO2mLly1v6OIHmLmdrdZDSQpwstiNA3smZjUqvY2Rgnt+eFPsT7g3kjvJMejvFK77VQT GVEA== X-Received: by 10.236.143.177 with SMTP id l37mr4692635yhj.9.1366251337893; Wed, 17 Apr 2013 19:15:37 -0700 (PDT) Received: from corp2gmr1-2.hot.corp.google.com (corp2gmr1-2.hot.corp.google.com [172.24.189.93]) by gmr-mx.google.com with ESMTPS id s27si2107101yhf.7.2013.04.17.19.15.37 (version=TLSv1.1 cipher=AES128-SHA bits=128/128); Wed, 17 Apr 2013 19:15:37 -0700 (PDT) Received: from kaka.mtv.corp.google.com (kaka.mtv.corp.google.com [172.22.83.1]) by corp2gmr1-2.hot.corp.google.com (Postfix) with ESMTP id 1FCEC5AF8EC; Wed, 17 Apr 2013 19:14:11 -0700 (PDT) Received: by kaka.mtv.corp.google.com (Postfix, from userid 121222) id 2ABCA1608C7; Wed, 17 Apr 2013 19:14:11 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Date: Wed, 17 Apr 2013 19:13:40 -0700 Message-Id: <1366251228-19884-12-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 1.8.2.1 In-Reply-To: <1366251228-19884-1-git-send-email-sjg@chromium.org> References: <1366251228-19884-1-git-send-email-sjg@chromium.org> X-Gm-Message-State: ALoCoQlHORQWGgHDVg3hPf6R10vCm3ro4qmG2+5iDBa9KnUEyGaUT7jX9C2P//7mA3OzPqSFDd9jJko8EEiBvt57NAIxNXXI40v+dldZo7iVG/ZalEwACptgqbWptcUHOgz/QV2yjKQA7xbPHpRb6TRJdRpvE2WDov3TxIwQAoaNpTLkEP92uol2lDLe1upxN7xKo+N/HtIg Cc: u-boot-review@google.com Subject: [U-Boot] [PATCH 11/19] bootstage: Add stubs for new bootstage functions X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 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 Some functions don't have a stub for when CONFIG_BOOTSTAGE is not defined. Add one to avoid #ifdefs in the code when this is used in U-Boot. Signed-off-by: Simon Glass Reviewed-by: Che-Liang Chiou Reviewed-by: Tom Wai-Hong Tam --- include/bootstage.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/include/bootstage.h b/include/bootstage.h index 3b2216b..bdda768 100644 --- a/include/bootstage.h +++ b/include/bootstage.h @@ -315,6 +315,12 @@ int bootstage_stash(void *base, int size); int bootstage_unstash(void *base, int size); #else +static inline ulong bootstage_add_record(enum bootstage_id id, + const char *name, int flags, ulong mark) +{ + return 0; +} + /* * This is a dummy implementation which just calls show_boot_progress(), * and won't even do that unless CONFIG_SHOW_BOOT_PROGRESS is defined @@ -337,6 +343,16 @@ static inline ulong bootstage_mark_name(enum bootstage_id id, const char *name) return 0; } +static inline uint32_t bootstage_start(enum bootstage_id id, const char *name) +{ + return 0; +} + +static inline uint32_t bootstage_accum(enum bootstage_id id) +{ + return 0; +} + static inline int bootstage_stash(void *base, int size) { return 0; /* Pretend to succeed */