[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20160314.130633.1932883457156537338.davem@davemloft.net>
Date: Mon, 14 Mar 2016 13:06:33 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: arnd@...db.de
Cc: nbd@...nwrt.org, blogic@...nwrt.org, matthias.bgg@...il.com,
netdev@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/3] net: mediatek: use dma_addr_t correctly
From: Arnd Bergmann <arnd@...db.de>
Date: Mon, 14 Mar 2016 15:07:10 +0100
> dma_alloc_coherent() expects a dma_addr_t pointer as its argument,
> not an 'unsigned int', and gcc correctly warns about broken
> code in the mtk_init_fq_dma function:
>
> drivers/net/ethernet/mediatek/mtk_eth_soc.c: In function 'mtk_init_fq_dma':
> drivers/net/ethernet/mediatek/mtk_eth_soc.c:463:13: error: passing argument 3 of 'dma_alloc_coherent' from incompatible pointer type [-Werror=incompatible-pointer-types]
>
> This changes the type of the local variable to dma_addr_t.
>
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
Applied.
Powered by blists - more mailing lists