The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=25adbd0b8c3f282b8bdf252379eace8ce57bc927
commit 25adbd0b8c3f282b8bdf252379eace8ce57bc927 Author: Bjoern A. Zeeb <[email protected]> AuthorDate: 2021-09-29 12:37:16 +0000 Commit: Bjoern A. Zeeb <[email protected]> CommitDate: 2021-09-29 12:37:16 +0000 neta: cleanup warning mvneta_find_ethernet_prop_switch() is file-local static to if_mvneta_fdt.c. Normally we would not need a function declararion but in case MVNETA_DEBUG is set it becomes public. Move the function declaration from if_mvneta.c to if_mvneta_fdt.c to avoid a warning during each compile. --- sys/dev/neta/if_mvneta.c | 1 - sys/dev/neta/if_mvneta_fdt.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/neta/if_mvneta.c b/sys/dev/neta/if_mvneta.c index fe86f4a5effe..1ddd95cced78 100644 --- a/sys/dev/neta/if_mvneta.c +++ b/sys/dev/neta/if_mvneta.c @@ -186,7 +186,6 @@ STATIC uint64_t mvneta_read_mib(struct mvneta_softc *, int); STATIC void mvneta_update_mib(struct mvneta_softc *); /* Switch */ -STATIC boolean_t mvneta_find_ethernet_prop_switch(phandle_t, phandle_t); STATIC boolean_t mvneta_has_switch(device_t); #define mvneta_sc_lock(sc) mtx_lock(&sc->mtx) diff --git a/sys/dev/neta/if_mvneta_fdt.c b/sys/dev/neta/if_mvneta_fdt.c index bedf4b253a45..85948adb69d4 100644 --- a/sys/dev/neta/if_mvneta_fdt.c +++ b/sys/dev/neta/if_mvneta_fdt.c @@ -69,6 +69,7 @@ __FBSDID("$FreeBSD$"); static int mvneta_fdt_probe(device_t); static int mvneta_fdt_attach(device_t); +STATIC boolean_t mvneta_find_ethernet_prop_switch(phandle_t, phandle_t); static device_method_t mvneta_fdt_methods[] = { /* Device interface */ _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all To unsubscribe, send any mail to "[email protected]"
