The driver uses dmb(), which we only define on ARM systems, add a stub to allow the driver to build.
Signed-off-by: Ahmad Fatoum <[email protected]> --- drivers/net/fsl_enetc.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/net/fsl_enetc.c b/drivers/net/fsl_enetc.c index df5a9a4c0bf8..174c2ed0451d 100644 --- a/drivers/net/fsl_enetc.c +++ b/drivers/net/fsl_enetc.c @@ -10,11 +10,17 @@ #include <linux/pci.h> #include <linux/io.h> #include <linux/mdio.h> -#include <asm/system.h> #include <of_net.h> #include <asm/unaligned.h> #include <io-64-nonatomic-lo-hi.h> +#ifdef CONFIG_ARM +#include <asm/system.h> +#else +#include <linux/bug.h> +#define dmb() BUG() +#endif + #include "fsl_enetc.h" /* MDIO wrappers, we're using these to drive internal MDIO to get to serdes */ -- 2.47.3
