git: 1e3ca25d9296 - main - ifnet: make if_alloc_domain() static
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 23 Nov 2021 03:52:14 UTC
The branch main has been updated by glebius:
URL: https://cgit.FreeBSD.org/src/commit/?id=1e3ca25d92966ca2d288821179f03f9140185db8
commit 1e3ca25d92966ca2d288821179f03f9140185db8
Author: Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2021-11-23 03:49:57 +0000
Commit: Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2021-11-23 03:49:57 +0000
ifnet: make if_alloc_domain() static
---
sys/net/if.c | 2 +-
sys/net/if_var.h | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/sys/net/if.c b/sys/net/if.c
index 0d6aa10d64dc..f840fa369474 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -602,7 +602,7 @@ if_grow(void)
* common structure will also be allocated if an allocation routine is
* registered for the passed type.
*/
-struct ifnet *
+static struct ifnet *
if_alloc_domain(u_char type, int numa_domain)
{
struct ifnet *ifp;
diff --git a/sys/net/if_var.h b/sys/net/if_var.h
index c7e20edc537f..a0739fd6b76b 100644
--- a/sys/net/if_var.h
+++ b/sys/net/if_var.h
@@ -649,7 +649,6 @@ int if_addmulti(struct ifnet *, struct sockaddr *, struct ifmultiaddr **);
int if_allmulti(struct ifnet *, int);
struct ifnet* if_alloc(u_char);
struct ifnet* if_alloc_dev(u_char, device_t dev);
-struct ifnet* if_alloc_domain(u_char, int numa_domain);
void if_attach(struct ifnet *);
void if_dead(struct ifnet *);
int if_delmulti(struct ifnet *, struct sockaddr *);