From owner-dev-commits-src-main@freebsd.org Wed Sep 29 12:43:47 2021 Return-Path: Delivered-To: dev-commits-src-main@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 62A52672DD5; Wed, 29 Sep 2021 12:43:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HKGJg241qz3Pjw; Wed, 29 Sep 2021 12:43:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 2760E17DFC; Wed, 29 Sep 2021 12:43:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 18TChlTr021335; Wed, 29 Sep 2021 12:43:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 18TChlcO021334; Wed, 29 Sep 2021 12:43:47 GMT (envelope-from git) Date: Wed, 29 Sep 2021 12:43:47 GMT Message-Id: <202109291243.18TChlcO021334@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: 25adbd0b8c3f - main - neta: cleanup warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 25adbd0b8c3f282b8bdf252379eace8ce57bc927 Auto-Submitted: auto-generated X-BeenThere: dev-commits-src-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for the main branch of the src repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Sep 2021 12:43:47 -0000 The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=25adbd0b8c3f282b8bdf252379eace8ce57bc927 commit 25adbd0b8c3f282b8bdf252379eace8ce57bc927 Author: Bjoern A. Zeeb AuthorDate: 2021-09-29 12:37:16 +0000 Commit: Bjoern A. Zeeb 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 */