Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/xen/xen #if 0 the declaration and definition of xen...



details:   https://anonhg.NetBSD.org/src/rev/79e0835a0e03
branches:  trunk
changeset: 745943:79e0835a0e03
user:      kre <kre%NetBSD.org@localhost>
date:      Tue Mar 17 05:04:10 2020 +0000

description:
#if 0 the declaration and definition of xennetback_tx_free()

Since it is never otherwise referenced, this cannot make any
current operational difference, but should fix the build.
(-Werror=unused-function)

The added #if/#endif lines are /* XXX */ commented, so they will be
easy to remove when needed.

diffstat:

 sys/arch/xen/xen/xennetback_xenbus.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (44 lines):

diff -r 23b98e76543d -r 79e0835a0e03 sys/arch/xen/xen/xennetback_xenbus.c
--- a/sys/arch/xen/xen/xennetback_xenbus.c      Tue Mar 17 01:36:29 2020 +0000
+++ b/sys/arch/xen/xen/xennetback_xenbus.c      Tue Mar 17 05:04:10 2020 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: xennetback_xenbus.c,v 1.78 2020/03/16 20:51:36 jdolecek Exp $      */
+/*      $NetBSD: xennetback_xenbus.c,v 1.79 2020/03/17 05:04:10 kre Exp $      */
 
 /*
  * Copyright (c) 2006 Manuel Bouyer.
@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xennetback_xenbus.c,v 1.78 2020/03/16 20:51:36 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xennetback_xenbus.c,v 1.79 2020/03/17 05:04:10 kre Exp $");
 
 #include "opt_xen.h"
 
@@ -141,7 +141,9 @@
 
 static inline void xennetback_tx_response(struct xnetback_instance *,
     int, int);
+#if 0  /* XXX */
 static void xennetback_tx_free(struct mbuf * , void *, size_t, void *);
+#endif /* XXX */
 
 static SLIST_HEAD(, xnetback_instance) xnetback_instances;
 static kmutex_t xnetback_lock;
@@ -895,6 +897,7 @@
        return 1;
 }
 
+#if 0  /* XXX */
 static void
 xennetback_tx_free(struct mbuf *m, void *va, size_t size, void *arg)
 {
@@ -912,6 +915,7 @@
                pool_cache_put(mb_cache, m);
        splx(s);
 }
+#endif /* XXX */
 
 static int
 xennetback_ifioctl(struct ifnet *ifp, u_long cmd, void *data)



Home | Main Index | Thread Index | Old Index