From patchwork Thu Jul 10 21:27:50 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeroen Hofstee X-Patchwork-Id: 368796 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 216751400DD for ; Fri, 11 Jul 2014 07:28:08 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2894AA75BE; Thu, 10 Jul 2014 23:28: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 QIpEU-D6WZuQ; Thu, 10 Jul 2014 23:28:05 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A005EA7607; Thu, 10 Jul 2014 23:28:04 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0F49AA7607 for ; Thu, 10 Jul 2014 23:28:00 +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 vdU4euFxytdE for ; Thu, 10 Jul 2014 23:27:57 +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 orange.myspectrum.nl (orange.myspectrum.nl [149.210.134.247]) by theia.denx.de (Postfix) with ESMTP id 109ACA75BE for ; Thu, 10 Jul 2014 23:27:52 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by orange.myspectrum.nl (Postfix) with ESMTP id 4A9F78DAF5; Thu, 10 Jul 2014 23:27:52 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at myspectrum.nl Received: from orange.myspectrum.nl ([127.0.0.1]) by localhost (orange.myspectrum.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lLcU-8-ZCOdn; Thu, 10 Jul 2014 23:27:52 +0200 (CEST) Received: from yellow (ip136-5-208-87.adsl2.static.versatel.nl [87.208.5.136]) (Authenticated sender: jeroen@myspectrum.nl) by orange.myspectrum.nl (Postfix) with ESMTPSA id 071EF8DAF4; Thu, 10 Jul 2014 23:27:52 +0200 (CEST) Received: by yellow (Postfix, from userid 1000) id B712E742FB9; Thu, 10 Jul 2014 23:27:51 +0200 (CEST) From: Jeroen Hofstee To: u-boot@lists.denx.de Date: Thu, 10 Jul 2014 23:27:50 +0200 Message-Id: <1405027670-28516-1-git-send-email-jeroen@myspectrum.nl> X-Mailer: git-send-email 1.8.3.2 Cc: Jeroen Hofstee Subject: [U-Boot] [PATCH] common: env_common: make env_get_char_spec __weak 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 --- yup another clang warning: common/env_common.c:30:14: warning: unused function '__env_get_char_spec' [-Wunused-function] static uchar __env_get_char_spec(int index) ^ --- common/env_common.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/common/env_common.c b/common/env_common.c index cd7b4cd..3b979bc 100644 --- a/common/env_common.c +++ b/common/env_common.c @@ -27,12 +27,10 @@ struct hsearch_data env_htab = { .change_ok = env_flags_validate, }; -static uchar __env_get_char_spec(int index) +__weak uchar env_get_char_spec(int index) { return *((uchar *)(gd->env_addr + index)); } -uchar env_get_char_spec(int) - __attribute__((weak, alias("__env_get_char_spec"))); static uchar env_get_char_init(int index) {