OSDN Git Service

staging/octeon: Allow test build on !MIPS
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 26 Jul 2019 17:44:25 +0000 (10:44 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Jul 2019 17:35:41 +0000 (10:35 -0700)
commit171a9bae68c72f2d1260c3825203760856e6793b
tree2b74f9cac42643c57506b86ae56bc018b6468bdc
parentc51ab067c5312695331129806cb9a42791903305
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>
14 files changed:
drivers/staging/octeon/Kconfig
drivers/staging/octeon/ethernet-defines.h
drivers/staging/octeon/ethernet-mdio.c
drivers/staging/octeon/ethernet-mem.c
drivers/staging/octeon/ethernet-rgmii.c
drivers/staging/octeon/ethernet-rx.c
drivers/staging/octeon/ethernet-rx.h
drivers/staging/octeon/ethernet-sgmii.c
drivers/staging/octeon/ethernet-spi.c
drivers/staging/octeon/ethernet-tx.c
drivers/staging/octeon/ethernet-util.h
drivers/staging/octeon/ethernet.c
drivers/staging/octeon/octeon-ethernet.h
drivers/staging/octeon/octeon-stubs.h [new file with mode: 0644]