Re: [PATCH 1/1] SPI: dw_spi, fix PPC build

From: Grant Likely
Date: Fri Mar 18 2011 - 11:51:17 EST


On Fri, Mar 18, 2011 at 10:41:17AM +0100, Jiri Slaby wrote:
> Currently, build on PPC dies with:
> In file included from drivers/spi/dw_spi_mmio.c:16:
> include/linux/spi/dw_spi.h:147: error: field âtx_sglâ has incomplete type
> include/linux/spi/dw_spi.h:149: error: field ârx_sglâ has incomplete type
>
> Add linux/scatterlist.h include to dw_spi.h, because we need to know
> the contents of the structure.
>
> Signed-off-by: Jiri Slaby <jslaby@xxxxxxx>
> Cc: David Brownell <dbrownell@xxxxxxxxxxxxxxxxxxxxx>
> Cc: Grant Likely <grant.likely@xxxxxxxxxxxx>
> Cc: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>
> Cc: Paul Mackerras <paulus@xxxxxxxxx>

Applied, thanks.

g.

> ---
> include/linux/spi/dw_spi.h | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/include/linux/spi/dw_spi.h b/include/linux/spi/dw_spi.h
> index 6cd10f6..fb0bce5 100644
> --- a/include/linux/spi/dw_spi.h
> +++ b/include/linux/spi/dw_spi.h
> @@ -2,6 +2,7 @@
> #define DW_SPI_HEADER_H
>
> #include <linux/io.h>
> +#include <linux/scatterlist.h>
>
> /* Bit fields in CTRLR0 */
> #define SPI_DFS_OFFSET 0
> --
> 1.7.4.1
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/