Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Nov 2021 03:52:14 GMT
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 1e3ca25d9296 - main - ifnet: make if_alloc_domain() static
Message-ID:  <202111230352.1AN3qEgc072580@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 *);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202111230352.1AN3qEgc072580>