[PATCH 6/6] atmel_spi: fix warning In function 'atmel_spi_dma_map_xfer'

David Brownell david-b at pacbell.net
Sat Nov 20 17:59:28 EST 2010



--- On Sat, 11/20/10, Uwe Kleine-König <u.kleine-koenig at pengutronix.de> wrote:

> > +        void
> *nonconst_tx = (void *)xfer->tx_buf; /* shut up gcc */

Reads like a bad patch to me. Fix the bug,
don't just silence GCC.  Or at least use
a better comment mentioning a constness
cast problems).

- Dave




More information about the linux-arm-kernel mailing list