[PATCH 3/3] net: macb: fix compiler warning for 64 bit systems

Sascha Hauer s.hauer at pengutronix.de
Mon Oct 19 04:10:03 EDT 2020


On Thu, Oct 15, 2020 at 03:20:48PM +0200, Michael Tretter wrote:
> On arm64 the compiler prints the following warning, when the macb driver
> is enabled:
> 
> 	warning: cast from pointer to integer of different size
> 
> Add the same explicit cast as implemented for all other dma addresses in
> the macb driver.
> 
> Fixes: befd110b5922 ("net: macb: init multiple dummy TX queues")

Well for me this updates the commit befd110b5922 to the state it should
have looked like, so for me this qualifies as a fix.

Anyway, it would be really good if we could at least catch runtime
errors when we truncate pointers.

Sascha

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list