All of lore.kernel.org
 help / color / mirror / Atom feed
From: Minkyu Kang <mk7.kang@samsung.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/2] spi: exynos: Fix compiler warnings for non-dt systems
Date: Fri, 29 Mar 2013 11:28:24 +0900	[thread overview]
Message-ID: <5154FC48.4040509@samsung.com> (raw)
In-Reply-To: <1362491397-14562-2-git-send-email-gautam.vivek@samsung.com>

On 05/03/13 22:49, Vivek Gautam wrote:
> Enclosing process_nodes() and spi_get_config() inside
> CONFIG_OF_CONTROL, since they are compiled only for DT systems.
> 
> This fixes following warning:
> exynos_spi.c:391:12: warning: 'process_nodes' defined but not used [-Wunused-function]
> 
> Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
> ---
>  drivers/spi/exynos_spi.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/spi/exynos_spi.c b/drivers/spi/exynos_spi.c
> index be60ada..2260d59 100644
> --- a/drivers/spi/exynos_spi.c
> +++ b/drivers/spi/exynos_spi.c
> @@ -360,6 +360,7 @@ static inline struct exynos_spi *get_spi_base(int dev_index)
>   * @param bus   SPI bus structure to fill with information
>   * @return 0 if ok, or -FDT_ERR_NOTFOUND if something was missing
>   */
> +#ifdef CONFIG_OF_CONTROL
>  static int spi_get_config(const void *blob, int node, struct spi_bus *bus)
>  {
>  	bus->node = node;
> @@ -415,6 +416,7 @@ static int process_nodes(const void *blob, int node_list[], int count)
>  
>  	return 0;
>  }
> +#endif
>  
>  /* Sadly there is no error return from this function */
>  void spi_init(void)
> 


applied to u-boot-samsung.

Thanks,
Minkyu Kang.

  parent reply	other threads:[~2013-03-29  2:28 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-05 13:49 [U-Boot] [PATCH 1/2] SMDK5250: Fix compiler warning for non-dt systems Vivek Gautam
2013-03-05 13:49 ` [U-Boot] [PATCH 2/2] spi: exynos: Fix compiler warnings " Vivek Gautam
2013-03-06  1:52   ` Simon Glass
2013-03-29  2:28   ` Minkyu Kang [this message]
2013-03-06  1:52 ` [U-Boot] [PATCH 1/2] SMDK5250: Fix compiler warning " Simon Glass
2013-03-29  2:28 ` Minkyu Kang
  -- strict thread matches above, loose matches on Subject: below --
2013-02-13  6:42 Vivek Gautam
2013-02-13  6:42 ` [U-Boot] [PATCH 2/2] spi: exynos: Fix compiler warnings " Vivek Gautam
2013-02-14  4:48   ` Simon Glass

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=5154FC48.4040509@samsung.com \
    --to=mk7.kang@samsung.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.