netmap: fix kernel build on GCC-using architectures
GCC produced a multiple declaration warning from the SYSCTL_DECL(_dev_netmap).
This commit is contained in:
parent
b8835a8a6b
commit
984ff0d910
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user