commit | bdebff0caabb96b6910c795e4f20f8201a7b63af | [log] [tgz] |
---|---|---|
author | Marti Bolivar <marti.bolivar@linaro.org> | Wed Jul 26 10:00:36 2017 -0400 |
committer | Kumar Gala <kumar.gala@gmail.com> | Wed Jul 26 09:49:45 2017 -0500 |
tree | 408663d9a670fb787e6a2c5f3ab669915de6d41a | |
parent | e75b71ff0a94d84d49804aab54f777fbf541e5e3 [diff] |
drivers: ethernet: mcux: fix build warning The ethernet HAL has a different uint32_t typedef than Zephyr's u32_t: uint32_t in the HAL is long unsigned int, while in Zephyr it's unsigned int. This is causing a build warning on GCC ("warning: passing argument 2 of ‘ENET_GetRxFrameSize’ from incompatible pointer type") when passing a u32_t* where ENET_GetRxFrameSize expects a uint32_t*. Add a cast to silence the warning. Signed-off-by: Marti Bolivar <marti.bolivar@linaro.org>