Module Name: src
Committed By: kre
Date: Tue Mar 17 05:04:11 UTC 2020
Modified Files:
src/sys/arch/xen/xen: xennetback_xenbus.c
Log Message:
#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.
To generate a diff of this commit:
cvs rdiff -u -r1.78 -r1.79 src/sys/arch/xen/xen/xennetback_xenbus.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/xen/xen/xennetback_xenbus.c
diff -u src/sys/arch/xen/xen/xennetback_xenbus.c:1.78 src/sys/arch/xen/xen/xennetback_xenbus.c:1.79
--- src/sys/arch/xen/xen/xennetback_xenbus.c:1.78 Mon Mar 16 20:51:36 2020
+++ src/sys/arch/xen/xen/xennetback_xenbus.c Tue Mar 17 05:04:10 2020
@@ -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 void xennetback_frontend_changed(
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 @@ xennetback_evthandler(void *arg)
return 1;
}
+#if 0 /* XXX */
static void
xennetback_tx_free(struct mbuf *m, void *va, size_t size, void *arg)
{
@@ -912,6 +915,7 @@ xennetback_tx_free(struct mbuf *m, void
pool_cache_put(mb_cache, m);
splx(s);
}
+#endif /* XXX */
static int
xennetback_ifioctl(struct ifnet *ifp, u_long cmd, void *data)