git: b4dda138e8f7 - main - neta: clk code ifdef'd aarch64

From: Warner Losh <imp_at_FreeBSD.org>
Date: Tue, 04 Jan 2022 23:02:01 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=b4dda138e8f7352780a75ba77b65e8b0bb230203

commit b4dda138e8f7352780a75ba77b65e8b0bb230203
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-01-04 22:59:00 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-01-04 23:01:14 +0000

    neta: clk code ifdef'd aarch64
    
    So #ifdef the clk.h include aarch64. Otherwise the right kernel options
    aren't always present.
    
    Sponsored by:           Netflix
---
 sys/dev/neta/if_mvneta.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/dev/neta/if_mvneta.c b/sys/dev/neta/if_mvneta.c
index 0ea86330877b..f4a5c9b52c0d 100644
--- a/sys/dev/neta/if_mvneta.c
+++ b/sys/dev/neta/if_mvneta.c
@@ -65,7 +65,9 @@ __FBSDID("$FreeBSD$");
 #include <sys/rman.h>
 #include <machine/resource.h>
 
+#if defined(__aarch64__)
 #include <dev/extres/clk/clk.h>
+#endif
 
 #include <dev/mii/mii.h>
 #include <dev/mii/miivar.h>