From: Jeroen Hofstee <dasuboot@myspectrum.nl>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] common: env_common: make env_get_char_spec __weak
Date: Thu, 10 Jul 2014 23:51:56 +0200 [thread overview]
Message-ID: <53BF0AFC.9040409@myspectrum.nl> (raw)
In-Reply-To: <1405027670-28516-1-git-send-email-jeroen@myspectrum.nl>
Hi Jeroen,
On 10-07-14 23:27, Jeroen Hofstee wrote:
> ---
> 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)
> {
signed-off is missing?
Regards,
Jeroen
next prev parent reply other threads:[~2014-07-10 21:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-10 21:27 [U-Boot] [PATCH] common: env_common: make env_get_char_spec __weak Jeroen Hofstee
2014-07-10 21:51 ` Jeroen Hofstee [this message]
2014-07-11 4:26 ` Wolfgang Denk
2014-07-11 17:16 ` Jeroen Hofstee
2014-07-11 19:14 ` Wolfgang Denk
2014-07-12 13:22 ` [U-Boot] [PATCH v2] " Jeroen Hofstee
2014-07-21 20:43 ` [U-Boot] [U-Boot, " Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53BF0AFC.9040409@myspectrum.nl \
--to=dasuboot@myspectrum.nl \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.