public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Eugen.Hristev at microchip.com <Eugen.Hristev@microchip.com>
To: u-boot@lists.denx.de
Subject: [PATCH] board: atmel: Fix compiler warning 'board_usb_hw_init()' not used
Date: Wed, 6 May 2020 13:20:45 +0000	[thread overview]
Message-ID: <8f0e4e30-b02b-a7ff-4b59-7ec15965b9ca@microchip.com> (raw)
In-Reply-To: <20200417073225.30458-1-josef@lusticky.cz>

On 17.04.2020 10:32, Josef Lusticky wrote:
> Wrap definition of board_usb_hw_init() around with #ifdef CONFIG_CMD_USB
> to avoid warning: 'board_usb_hw_init' defined but not used
> [-Wunused-function] when compiling without CONFIG_CMD_USB.
> 
> This patch makes sama5d27_som1_ek, sama5d2_ptc_ek and sama5d2_xplained
> consistent with other boards that use the same #ifdef to avoid the warning.
> 
> Cc: Eugen Hristev <eugen.hristev@microchip.com>
> Cc: Ludovic Desroches <ludovic.desroches@microchip.com>
> Signed-off-by: Josef Lusticky <josef@lusticky.cz>
> ---
Reviewed-by: Eugen Hristev <eugen.hristev@microchip.com>

Applied to u-boot-atmel/master

Thanks !

      reply	other threads:[~2020-05-06 13:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-17  7:32 [PATCH] board: atmel: Fix compiler warning 'board_usb_hw_init()' not used Josef Lusticky
2020-05-06 13:20 ` Eugen.Hristev at microchip.com [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=8f0e4e30-b02b-a7ff-4b59-7ec15965b9ca@microchip.com \
    --to=eugen.hristev@microchip.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox