diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2019-07-26 10:44:25 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-07-29 10:35:41 -0700 |
commit | 171a9bae68c72f2d1260c3825203760856e6793b (patch) | |
tree | 2b74f9cac42643c57506b86ae56bc018b6468bdc /drivers/staging/octeon/ethernet-mem.c | |
parent | net: ag71xx: use resource_size for the ioremap size (diff) | |
download | linux-dev-171a9bae68c72f2d1260c3825203760856e6793b.tar.xz linux-dev-171a9bae68c72f2d1260c3825203760856e6793b.zip |
staging/octeon: Allow test build on !MIPS
Add compile test support by moving all includes of files under
asm/octeon into octeon-ethernet.h, and if we're not on MIPS,
stub out all the calls into the octeon support code in octeon-stubs.h
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/staging/octeon/ethernet-mem.c')
-rw-r--r-- | drivers/staging/octeon/ethernet-mem.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/staging/octeon/ethernet-mem.c b/drivers/staging/octeon/ethernet-mem.c index 0d26c4a93ec1..532594957ebc 100644 --- a/drivers/staging/octeon/ethernet-mem.c +++ b/drivers/staging/octeon/ethernet-mem.c @@ -9,13 +9,10 @@ #include <linux/netdevice.h> #include <linux/slab.h> -#include <asm/octeon/octeon.h> - +#include "octeon-ethernet.h" #include "ethernet-mem.h" #include "ethernet-defines.h" -#include <asm/octeon/cvmx-fpa.h> - /** * cvm_oct_fill_hw_skbuff - fill the supplied hardware pool with skbuffs * @pool: Pool to allocate an skbuff for |