Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net Mark vlan_safe_ifpromisc_locked() as "__unused" to a...



details:   https://anonhg.NetBSD.org/src/rev/da026b6304cb
branches:  trunk
changeset: 984695:da026b6304cb
user:      hannken <hannken%NetBSD.org@localhost>
date:      Sat Jul 17 15:37:04 2021 +0000

description:
Mark vlan_safe_ifpromisc_locked() as "__unused" to appease LLVM.

Maybe completely remove this short helper?

diffstat:

 sys/net/if_vlan.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 63f9cbcd8234 -r da026b6304cb sys/net/if_vlan.c
--- a/sys/net/if_vlan.c Sat Jul 17 14:03:35 2021 +0000
+++ b/sys/net/if_vlan.c Sat Jul 17 15:37:04 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_vlan.c,v 1.160 2021/07/15 04:05:47 yamaguchi Exp $  */
+/*     $NetBSD: if_vlan.c,v 1.161 2021/07/17 15:37:04 hannken Exp $    */
 
 /*
  * Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
@@ -78,7 +78,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_vlan.c,v 1.160 2021/07/15 04:05:47 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vlan.c,v 1.161 2021/07/17 15:37:04 hannken Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -246,7 +246,7 @@
        return e;
 }
 
-static inline int
+__unused static inline int
 vlan_safe_ifpromisc_locked(struct ifnet *ifp, int pswitch)
 {
        int e;



Home | Main Index | Thread Index | Old Index