]> git.baikalelectronics.ru Git - kernel.git/commit
net: ena: fix compilation error in xtensa architecture
authorArthur Kiyanovski <akiyano@amazon.com>
Sun, 21 Oct 2018 15:07:14 +0000 (18:07 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Oct 2018 02:48:04 +0000 (19:48 -0700)
commite4d8407a0a4bc47b12fc5b0d5672164ef7a1ee73
tree4f526247024d67430a0961ce1dc7e728bc075c32
parentad9543261eb6bb27628d9c953bc3b6a45c72933d
net: ena: fix compilation error in xtensa architecture

linux/prefetch.h is never explicitly included in ena_com, although
functions from it, such as prefetchw(), are used throughout ena_com.
This is an inclusion bug, and we fix it here by explicitly including
linux/prefetch.h. The bug was exposed when the driver was compiled
for the xtensa architecture.

Fixes: 62336430c9d1 ("net: ena: add functions for handling Low Latency Queues in ena_com")
Fixes: 9142839543c8 ("ena: Fix Kconfig dependency on X86")
Signed-off-by: Arthur Kiyanovski <akiyano@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amazon/ena/ena_com.h