git: ddc0ed5836ea - main - loop(4): make interface methods static

From: Gleb Smirnoff <glebius_at_FreeBSD.org>
Date: Mon, 05 Sep 2022 17:29:29 UTC
The branch main has been updated by glebius:

URL: https://cgit.FreeBSD.org/src/commit/?id=ddc0ed5836ea4c380d56512a28d25787eefb47e9

commit ddc0ed5836ea4c380d56512a28d25787eefb47e9
Author:     Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2022-09-05 17:29:10 +0000
Commit:     Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2022-09-05 17:29:10 +0000

    loop(4): make interface methods static
---
 sys/net/if_loop.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/sys/net/if_loop.c b/sys/net/if_loop.c
index 643ef2240fe1..4f0b236f7f5e 100644
--- a/sys/net/if_loop.c
+++ b/sys/net/if_loop.c
@@ -90,8 +90,8 @@
 				    CSUM_IP_CHECKED | CSUM_IP_VALID | \
 				    CSUM_SCTP_VALID)
 
-int		loioctl(struct ifnet *, u_long, caddr_t);
-int		looutput(struct ifnet *ifp, struct mbuf *m,
+static int	loioctl(struct ifnet *, u_long, caddr_t);
+static int	looutput(struct ifnet *ifp, struct mbuf *m,
 		    const struct sockaddr *dst, struct route *ro);
 static int	lo_clone_create(struct if_clone *, int, caddr_t);
 static void	lo_clone_destroy(struct ifnet *);
@@ -200,7 +200,7 @@ static moduledata_t loop_mod = {
 
 DECLARE_MODULE(if_lo, loop_mod, SI_SUB_PROTO_IFATTACHDOMAIN, SI_ORDER_ANY);
 
-int
+static int
 looutput(struct ifnet *ifp, struct mbuf *m, const struct sockaddr *dst,
     struct route *ro)
 {
@@ -369,8 +369,7 @@ if_simloop(struct ifnet *ifp, struct mbuf *m, int af, int hlen)
 /*
  * Process an ioctl request.
  */
-/* ARGSUSED */
-int
+static int
 loioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
 {
 	struct ifreq *ifr = (struct ifreq *)data;