All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jagan Teki <jagan@amarulasolutions.com>
To: u-boot@lists.denx.de
Subject: [PATCH] sunxi: Silence warning about non-static inline function
Date: Mon, 1 Jun 2020 22:26:16 +0530	[thread overview]
Message-ID: <CAMty3ZDZiJJ8cQV9uoXrcLA+ar-F763b5AKJnxQ7Ho3LWUZHZg@mail.gmail.com> (raw)
In-Reply-To: <20200507230233.21395-1-samuel@sholland.org>

On Fri, May 8, 2020 at 4:31 AM Samuel Holland <samuel@sholland.org> wrote:
>
> When compiling with CONFIG_SPL_SERIAL=n, gcc warns about
> mbus_configure_port not being marked as static:
>
> In file included from include/common.h:34,
>                  from arch/arm/mach-sunxi/dram_sunxi_dw.c:11:
> include/log.h:185:4: warning: 'printf' is static but used in inline function 'mbus_configure_port' which is not static
>   185 |    printf(pr_fmt(fmt), ##args); \
>       |    ^~~~~~
> include/log.h:192:2: note: in expansion of macro 'debug_cond'
>   192 |  debug_cond(_DEBUG, fmt, ##args)
>       |  ^~~~~~~~~~
> arch/arm/mach-sunxi/dram_sunxi_dw.c:100:2: note: in expansion of macro 'debug'
>   100 |  debug("MBUS port %d cfg0 %08x cfg1 %08x\n", port, cfg0, cfg1);
>       |  ^~~~~
>
> Fix this by updating the function accordingly.
>
> Signed-off-by: Samuel Holland <samuel@sholland.org>
> ---

Applied to u-boot-sunxi/master

      reply	other threads:[~2020-06-01 16:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-07 23:02 [PATCH] sunxi: Silence warning about non-static inline function Samuel Holland
2020-06-01 16:56 ` Jagan Teki [this message]

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=CAMty3ZDZiJJ8cQV9uoXrcLA+ar-F763b5AKJnxQ7Ho3LWUZHZg@mail.gmail.com \
    --to=jagan@amarulasolutions.com \
    --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.