Date: Tue, 4 Jan 2022 23:02:01 GMT From: Warner Losh <imp@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: b4dda138e8f7 - main - neta: clk code ifdef'd aarch64 Message-ID: <202201042302.204N21DE027871@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202201042302.204N21DE027871>