From 984ff0d910acfb671aea1e66eeade13644885d87 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Fri, 21 Oct 2016 13:51:47 +0000 Subject: [PATCH] netmap: fix kernel build on GCC-using architectures GCC produced a multiple declaration warning from the SYSCTL_DECL(_dev_netmap). --- sys/dev/netmap/netmap_mem2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/netmap/netmap_mem2.c b/sys/dev/netmap/netmap_mem2.c index b54c9813c33..bb0f9c8b6f3 100644 --- a/sys/dev/netmap/netmap_mem2.c +++ b/sys/dev/netmap/netmap_mem2.c @@ -502,7 +502,6 @@ static const struct netmap_mem_d nm_blueprint = { #define DECLARE_SYSCTLS(id, name) \ SYSBEGIN(mem2_ ## name); \ - SYSCTL_DECL(_dev_netmap); /* leave it here, easier for porting */ \ SYSCTL_INT(_dev_netmap, OID_AUTO, name##_size, \ CTLFLAG_RW, &netmap_params[id].size, 0, "Requested size of netmap " STRINGIFY(name) "s"); \ SYSCTL_INT(_dev_netmap, OID_AUTO, name##_curr_size, \ @@ -519,6 +518,7 @@ static const struct netmap_mem_d nm_blueprint = { "Default number of private netmap " STRINGIFY(name) "s"); \ SYSEND +SYSCTL_DECL(_dev_netmap); DECLARE_SYSCTLS(NETMAP_IF_POOL, if); DECLARE_SYSCTLS(NETMAP_RING_POOL, ring); DECLARE_SYSCTLS(NETMAP_BUF_POOL, buf);