From patchwork Mon Oct 29 15:23:47 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 195046 X-Patchwork-Delegate: trini@ti.com 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 C0FFE2C008A for ; Tue, 30 Oct 2012 02:31:10 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 67B0A4A260; Mon, 29 Oct 2012 16:28:17 +0100 (CET) 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 HRnPyajwYP4p; Mon, 29 Oct 2012 16:28:17 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 007144A0A8; Mon, 29 Oct 2012 16:25:17 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0D9844A041 for ; Mon, 29 Oct 2012 16:25:04 +0100 (CET) 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 n8nbazwn6IxV for ; Mon, 29 Oct 2012 16:25:02 +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-ee0-f74.google.com (mail-ee0-f74.google.com [74.125.83.74]) by theia.denx.de (Postfix) with ESMTPS id 9D34B4A023 for ; Mon, 29 Oct 2012 16:24:25 +0100 (CET) Received: by mail-ee0-f74.google.com with SMTP id b57so328374eek.3 for ; Mon, 29 Oct 2012 08:24:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=MwY3Hw66zwSPd8FLDqle97AlBmNtv4ji0Py2zKXfn5A=; b=Vjx9sZaE/pLEoTNyJ4b43PCeqNO6EQl/jp9RVsAX8mFve9YRuzylcgp03wbv18No6l ss4E4ZrpTgD/NBDpUJw4cEKWoE+zLV6xpRcAI4oH7nj53BzdGS9Y44ZbTTjtLK7T3Z3Z swDTiClgUANNhIBaPEs5lv6vk7CtdmPeRvh780xWlXJ4YWs4d/XG/4GOsLsWCRYa6Kzv ZWGzIgQF4NUpOjQ175uuhTccgIwRMdJ+glFZg6vXDKGiVPvweKDmPf2zB8V9ES1QW+o4 KZwZP7+7xeiPGc9PoEzG0bPDpZGnxN+r7D3sQ1YoFXbwXrPG514P8TIAfXyoxi0Kkame MqUw== Received: by 10.181.12.101 with SMTP id ep5mr2223582wid.1.1351524260619; Mon, 29 Oct 2012 08:24:20 -0700 (PDT) Received: from hpza9.eem.corp.google.com ([74.125.121.33]) by gmr-mx.google.com with ESMTPS id z47si2263450eel.0.2012.10.29.08.24.20 (version=TLSv1/SSLv3 cipher=AES128-SHA); Mon, 29 Oct 2012 08:24:20 -0700 (PDT) Received: from kaka.mtv.corp.google.com (kaka.mtv.corp.google.com [172.22.73.79]) by hpza9.eem.corp.google.com (Postfix) with ESMTP id 420885C0060; Mon, 29 Oct 2012 08:24:20 -0700 (PDT) Received: by kaka.mtv.corp.google.com (Postfix, from userid 121222) id 98D07160CB6; Mon, 29 Oct 2012 08:24:19 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Date: Mon, 29 Oct 2012 08:23:47 -0700 Message-Id: <1351524245-19584-5-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 1.7.7.3 In-Reply-To: <1351524245-19584-1-git-send-email-sjg@chromium.org> References: <1351524245-19584-1-git-send-email-sjg@chromium.org> X-Gm-Message-State: ALoCoQmbdvfwzrvYP6NV22OO6bF8UalOTCUpuhYeZLT+JG3xx0HnkqSsNRLJ3ShnrJ9nuDRrzcGdkuImjD169m1ARbtrhdbmPIW4tDuKWi5rPbz1BKoyi4vjay19aAbUWOfcrhSlZxtUm5FBXmOAIAj+lWjCVcGGhmtTbRt24s2ks695d6v/xSyxP14FV5o7Q1hgsclczclR Cc: Tom Rini Subject: [U-Boot] [PATCH v3 04/22] Support setenv_ulong() and setenv_addr() for powerpc 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 This includes were outside an #ifdef CONFIG_PPC, but there is not reason to exclude powerpc from using them. Move the declaration outside the #ifdef. Signed-off-by: Simon Glass --- Changes in v3: - Add new patch to enable setenv_ulong/addr() for powerpc include/common.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/common.h b/include/common.h index b23e90b..12b3e03 100644 --- a/include/common.h +++ b/include/common.h @@ -345,9 +345,9 @@ int saveenv (void); int inline setenv (const char *, const char *); #else int setenv (const char *, const char *); +#endif /* CONFIG_PPC */ int setenv_ulong(const char *varname, ulong value); int setenv_addr(const char *varname, const void *addr); -#endif /* CONFIG_PPC */ #ifdef CONFIG_ARM # include # include